...
title | Content Freeze |
---|
...
This example will add an input path parameter to the Hello World Example. If you have not completed the Hello World Example yet go back and complete it first.
...
Info |
---|
Header parametersHeader parameters are included in the request header. Usually, the header just includes authorization parameters that are common across all endpoints. Path parametersPath parameters are part of the endpoint itself and are not optional. For example, in the following endpoint, /service/myresource/user/{user}/bicycles/{bicycleId} Query string parametersQuery string parameters appear after a question mark ( For example: /surfreport/{beachId}?days=3&units=metric&time=1400 and /surfreport/{beachId}?time=1400&units=metric&days=3 would return the same result. Request bodiesFrequently, with POST requests (where you’re creating something), you submit a JSON object in the request body. This is known as a request body, and the format is usually JSON. This JSON object may be a lengthy list of key-value pairs with multiple levels of nesting. For example, the endpoint may be something simple, such as
Note: In OpenAPI v2.0, request bodies were classified as a type of parameter, but in v3.0, they are not considered a parameter but rather a path property. |
...