zhaw-dnet2/Tasks/Lab13/BlazorRankingClient/OpenAPIs/swagger.json

66 lines
1.4 KiB
JSON
Raw Permalink Normal View History

{
"openapi": "3.0.1",
"info": {
"title": "Ranking API",
"description": "List rankings",
"version": "v1"
},
"paths": {
"/Rankings": {
"get": {
"tags": [
"Rankings"
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/plain": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Competitor"
}
}
},
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Competitor"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Competitor"
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Competitor": {
"type": "object",
"properties": {
"name": {
"type": "string",
"nullable": true
},
"time": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
}
}
}
}