-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Sample request/response #204
Comments
The way it could be written in swagger spec is, after the response section in spec we can have a section for sample request/response.
The at the bottom of model definition section we can define these:-
|
@suds123 ReDoc is more focused on Reference documentation and what you suggest is more like tutorials. |
Closing this for now as it's beyond the scope of the project |
Hi,
Thanks for the great work on reDoc!
I have a request if its possible to introduce sample request/response. For example have a look at this url for Shopify's API reference - https://help.shopify.com/api/reference/transaction.
Same endpoint can support one or more request scenarios. Provide samples would provide complete client documentation. This could be a new section below Responses section for each endpoint. The content of samples can be provided as JSON or YAML objects.
A scenario is presented below from above shopify url.
Scenario - Capture a specified amount on a previously authorized order.
POST /admin/orders/#{id}/transactions.json
Hide Response
HTTP/1.1 201 Created
The text was updated successfully, but these errors were encountered: