{ "openapi": "3.0.1", "info": { "title": "Genre", "description": "Description", "contact": { "name": "Example Contact", "url": "https://example.com/contact" }, "license": { "name": "Example License", "url": "https://example.com/license" }, "version": "v1" }, "paths": { "/Dictionaries/Genre/GenreList": { "get": { "tags": [ "Genre" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Genre" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Genre" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Genre" } } } } } } } }, "/Dictionaries/Genre/CreateGenre": { "post": { "tags": [ "Genre" ], "parameters": [ { "name": "genreName", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "string", "format": "uuid" } }, "application/json": { "schema": { "type": "string", "format": "uuid" } }, "text/json": { "schema": { "type": "string", "format": "uuid" } } } } } } }, "/Dictionaries/Genre/EditGenre": { "post": { "tags": [ "Genre" ], "parameters": [ { "name": "id", "in": "query", "schema": { "type": "string", "format": "uuid" } }, { "name": "genreName", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success" } } } }, "/Dictionaries/Genre/DeleteGenre": { "post": { "tags": [ "Genre" ], "parameters": [ { "name": "id", "in": "query", "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success" } } } } }, "components": { "schemas": { "Genre": { "required": [ "name" ], "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "minLength": 1, "type": "string" }, "deleted": { "type": "boolean" } }, "additionalProperties": false } } } }