Last active
October 21, 2022 19:00
-
-
Save LeaveNhA/75882d601d85095113c2dec6b67d79bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"x-id": [ | |
"default" | |
], | |
"paths": { | |
"/math/plus": { | |
"get": { | |
"responses": { | |
"200": { | |
"schema": { | |
"type": "object", | |
"properties": { | |
"total": { | |
"type": "integer", | |
"format": "int64" | |
} | |
}, | |
"required": [ | |
"total" | |
] | |
}, | |
"description": "" | |
} | |
}, | |
"produces": [ | |
"application/json", | |
"application/transit+msgpack", | |
"application/transit+json", | |
"application/edn" | |
], | |
"consumes": [ | |
"application/json", | |
"application/transit+msgpack", | |
"application/transit+json", | |
"application/edn" | |
], | |
"parameters": [ | |
{ | |
"in": "query", | |
"name": "x", | |
"description": "Description for X parameter", | |
"type": "integer", | |
"required": true, | |
"title": "X parameter", | |
"format": "int64", | |
"default": 42 | |
}, | |
{ | |
"in": "query", | |
"name": "y", | |
"description": "", | |
"type": "integer", | |
"required": true, | |
"format": "int64" | |
} | |
], | |
"summary": "plus with malli query parameters", | |
"tags": [ | |
"math" | |
] | |
}, | |
"post": { | |
"responses": { | |
"200": { | |
"schema": { | |
"type": "object", | |
"properties": { | |
"total": { | |
"type": "integer", | |
"format": "int64" | |
} | |
}, | |
"required": [ | |
"total" | |
] | |
}, | |
"description": "" | |
} | |
}, | |
"produces": [ | |
"application/json", | |
"application/transit+msgpack", | |
"application/transit+json", | |
"application/edn" | |
], | |
"consumes": [ | |
"application/json", | |
"application/transit+msgpack", | |
"application/transit+json", | |
"application/edn" | |
], | |
"parameters": [ | |
{ | |
"in": "body", | |
"name": "body", | |
"description": "", | |
"required": true, | |
"schema": { | |
"type": "object", | |
"properties": { | |
"x": { | |
"title": "X parameter", | |
"description": "Description for X parameter", | |
"type": "integer", | |
"format": "int64", | |
"default": 42 | |
}, | |
"y": { | |
"type": "integer", | |
"format": "int64" | |
} | |
}, | |
"required": [ | |
"x", | |
"y" | |
] | |
} | |
} | |
], | |
"summary": "plus with malli body parameters", | |
"tags": [ | |
"math" | |
] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment