Examples with Valid Request / Response Pairs
See original GitHub issueGoal:
- Be able to define 1…N vaild request / response pairs as examples.
Use
- This pairs could be used to test the final implementation.
- This pairs could be used to generate easy a some mock for the interfaces.
{
"paths": {
"/pets": {
"get": {
"summary": "List all pets",
"operationId": "listPets",
"parameters": "...",
"responses": "...",
"examples": {
"example_one": {
"request": {
"parameters": {
"limit": 10
}
},
"response": {
"status": 200,
"headers": {
"x-next": 11
},
"content": {
"application/json": {
"id": 55226688,
"category": {
"id": 0,
"name": "string"
},
"name": "doggie",
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}
}
}
}
}
}
}
}
}
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Request/Response Pairs - TechDocs - Broadcom Inc.
A request/response pair consists of one request file and one or more response files. Multiple response files are applicable to messaging ...
Read more >Access to HTTP request/response pairs - Micro Focus
Access to HTTP request/response pairs. Conditions used within HttpParsingRule rules can ... Valid Component values for HTTP requests, plus return values: ...
Read more >RESTful HTTP Request and Response Examples
This section provides examples of RESTful HTTP Request and Response. The RESTful HTTP Requests are categorized according to method types as the following:....
Read more >15.3 Request and Response XML Examples
This section presents some feature requests to the WFS engine, and the response to each request, for each of the following operations: GetCapabilities....
Read more >What is a request-response pair called? - Stack Overflow
For example in HTTP you send a request and receive a response; is there a noun that describes that request-response pair? I'd thought...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I strongly disagree with the answer and the decision to close this request, and find the request still valid:
Sounds like this was definitively answered in 2018, closing.