From 0702d13263bf501c1db074ce1544e60b95161210 Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Sun, 7 Nov 2021 15:52:44 +0100 Subject: major rewrite --- schemas/openapi.yaml | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 schemas/openapi.yaml (limited to 'schemas/openapi.yaml') diff --git a/schemas/openapi.yaml b/schemas/openapi.yaml new file mode 100644 index 0000000..ecc9390 --- /dev/null +++ b/schemas/openapi.yaml @@ -0,0 +1,55 @@ +--- +openapi: 3.1.0 +info: + title: opcut + version: 0.0.1 +paths: + '/calculate': + post: + parameters: + - name: method + in: query + required: true + schema: + enum: + - greedy + - forward_greedy + requestBody: + content: + application/json: + schema: + "$ref": "opcut.yaml#/definitions/params" + responses: + "200": + content: + application/json: + schema: + "$ref": "opcut.yaml#/definitions/result" + default: + description: error + '/generate_output': + post: + parameters: + - name: output_type + in: query + required: true + schema: + enum: + - pdf + - svg + - name: panel + in: query + required: false + requestBody: + content: + application/json: + schema: + "$ref": "opcut.yaml#/definitions/result" + responses: + "200": + content: + application/pdf: {} + image/svg+xml: {} + default: + description: error +... -- cgit v1.2.3-70-g09d2