mirror of
https://github.com/adidas/api-guidelines.git
synced 2025-10-25 15:19:19 +00:00
Updates execution/query-requests-with-large-inputs.md
Auto commit by GitBook Editor
This commit is contained in:
19
execution/query-requests-with-large-inputs.md
Normal file
19
execution/query-requests-with-large-inputs.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# Query Requests with Large Inputs
|
||||
While HTTP doesn't impose any limit on the length of an URI some implementation of server or client might have difficulties handling long URIs (usually URIs with many or large query parameters).
|
||||
|
||||
Every endpoint with such an URI **MUST** use the HTTP **POST** Request Method and send the query string in HTTP Request Message body using the `application/x-www-form-urlencoded` media type.
|
||||
|
||||
|
||||
_NOTE: Since this operation is safe and idempotent, using the POST method is a misuse of HTTP’s uniform interface. A consequence of this implementation is a loss of cache-ability.
|
||||
|
||||
#### Example
|
||||
|
||||
```
|
||||
POST /orders HTTP/1.1
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
|
||||
search=attributes&color=white&size=56&...
|
||||
```
|
||||
|
||||
|
||||
> _NOTE: Since this operation is safe and idempotent, using the POST method violates the HTTP Protocol semantics and results in loss of cache-ability._
|
||||
Reference in New Issue
Block a user