200 OK
responses often differ across various endpoints due to distinct output data needs, the error responses such as 400 Bad Request
and 404 Not Found
tend to be consistent across different endpoints.Response Component
feature, which allows for the reuse of predefined error responses, making the API documentation process more efficient and the API behavior more consistent.APIs
module, you can navigate to the Components
section, then click on New Response
under Responses
to create a new response component.HTTP status code
, Content type
, Schema
, and Examples
. For detailed guidance, you can refer to the Response section in Specify an endpoint.Response
section of an endpoint, you can reference a pre-defined Response Component.Dereference
it. Dereferencing will turn the Response into a regular editable Response, and changes to the Response Component will no longer affect it.Add
the existing Response Components to selected endpoints, or Remove
this Component in bulk from the selected endpoints.Components
section, you can access and utilize the Default Response Template
feature.