Exemples d'utilisation de The method response en Anglais et leurs traductions en Français
{-}
-
Colloquial
-
Official
In API Gateway you enable CORS by setting up an OPTIONS method with the mock integration type to return the preceding response headers(with static values discussed in the following) as the method response headers.
For the 302 response, the method response returns a Location header whose value is derived from the redirect.
you must also set up the method response and integration response,
If this parameter is defined, it contains the status code to be returned instead of the Method response status that is defined as the Default mapping in the Integration Response pane.
For output, you determine the method response status code, headers, and applicable body as targets to
You can also return headers in a mock integration response by first adding a header to the method response and then setting up a header mapping in the integration response. .
how the resulting integration response data is mapped to the method response.
to transform the integration response data to the method response data if the two have different formats.
payload model are optional unless you map the result from the backend to the method response before returning to the client.
you can leverage API Gateway to set up the required headers using the method response and integration response. .
including the other data, to the method response parameters.
define the data model for output of the method response.
from the integration response to the method response.
similarly, the backend response is passed through the integration response to the method response.
By default, the API Gateway console adds 200 response to the method responses.
you configure the method responses, integration requests,
Repeat until all the method response status are covered.
The method response's status code, which you map to an IntegrationResponse.
Make sure that you also set up the corresponding error code( 400) on the method response.
you must have a compatible response configured as the method response.