Skip to content

Commit

Permalink
Add: timezones to swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
talis-fb committed Oct 2, 2022
1 parent 5c2b3b2 commit a94db07
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@
{
"name": "Sports",
"description": "A set of endpoints to get random sports data"
},
{
"name": "Timezones",
"description": "A set of endpoints to get random Timezones values"
}
],
"paths": {
Expand Down Expand Up @@ -1914,6 +1918,46 @@
}
}
}
},
"/timezones": {
"get": {
"tags": [
"Timezones"
],
"summary": "Get a random value of a Timezone",
"parameters": [],
"responses": {
"200": {
"description": "OK",
"schema": "America/Chicago"
}
}
}
},
"/timezones/{qty}": {
"get": {
"tags": [
"Timezones"
],
"summary": "Get a random list of value of Timezones",
"parameters": [
{
"in": "path",
"name": "qty",
"default": 10,
"description": "The amount of results you would like returned"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": ["America", "Asia"]
}
}
}
}
}
},
"definitions": {
Expand Down

0 comments on commit a94db07

Please sign in to comment.