forked from WEB-IMB-WS2526/lab-development-imb
44 lines
742 B
JSON
44 lines
742 B
JSON
{
|
|
"openapi": "3.0.0",
|
|
"info": {
|
|
"title": "Flowers API",
|
|
"version": "1.0.0"
|
|
},
|
|
"servers": [
|
|
{
|
|
"url": "http://localhost:8080"
|
|
}
|
|
],
|
|
"paths": {
|
|
"/yellow-flowers": {
|
|
"get": {
|
|
"summary": "Fetches a list of yellow flowers",
|
|
"responses": {
|
|
"200": {
|
|
"description": "Success",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"example": 4
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"example": "Mädchenauge"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |