Skip to content

Commit

Permalink
docs(openapi): add '/symbols/{symbol}.json' details
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Apr 27, 2024
1 parent 28f6846 commit 825517e
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion src/pages/api/v1/_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,43 @@
}
}
},
"/symbols/{symbol}.json": {},
"/symbols/{symbol}.json": {
"get": {
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"patternProperties": {
"^[+-\\\\d]+$": {
"type": "number"
}
},
"additionalProperties": false
},
"example": {
"1999-12-29": 254.92,
"2000-01-04": 254.47,
"2000-01-05": 254.48
}
}
}
}
}
},
"parameters": [
{
"name": "symbol",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/Symbol"
},
"example": "EURHUF"
}
]
},
"/symbols/{symbol}/{year}.json": {},
"/years.json": {
"get": {
Expand Down

0 comments on commit 825517e

Please sign in to comment.