Skip to content

Instantly share code, notes, and snippets.

@LeaveNhA
Last active October 21, 2022 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeaveNhA/75882d601d85095113c2dec6b67d79bd to your computer and use it in GitHub Desktop.
Save LeaveNhA/75882d601d85095113c2dec6b67d79bd to your computer and use it in GitHub Desktop.
{
"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