{ "openapi": "3.0.3", "info": { "title": "server", "description": "The backend for the cookbook app, a web app that lets you store and handle recipes", "contact": { "name": "Gustav Hagland", "email": "" }, "license": { "name": "GPL-2.0-or-later WITH Bison-exception-2.2" }, "version": "0.1.0" }, "paths": { "/api/recipes": { "get": { "tags": [ "crate" ], "description": "", "operationId": "recipes", "responses": { "200": { "description": "Get all recipes", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Recipy" } } } } } }, "deprecated": false } }, "/api/recipy": { "post": { "tags": [ "crate" ], "description": "", "operationId": "recipy", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Recipy" } } }, "required": true }, "responses": { "200": { "description": "Insert new recipy", "content": { "text/plain": { "schema": { "type": "integer" } } } } }, "deprecated": false } } }, "components": { "schemas": { "Recipy": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string", "example": "Lasagne" } } } } } }