{ "swagger": "2.0", "info": { "title": "Project-Builder.org", "description": "PBSUMMARY", "version": "PBVER" }, "consumes": [ "application/json" ], "produces": [ "application/json" ], "host": "localhost", "schemes": [ "http" ], "basePath": "/v1", "paths": { "/prj": { "get": { "operationId": "listPrj", "parameters": [], "responses": { "200": { "description": "Success", "schema": { "type": "array", "items": { "$ref": "#/definitions/Entry" } } }, "default": { "description": "Error.", "schema": { "$ref": "http://git.io/vcKD4#" } } } } } "/conf": { "get": { "operationId": "listConf", "parameters": [], "responses": { "200": { "description": "Success", "schema": { "type": "array", "items": { "$ref": "#/definitions/Entry" } } }, "default": { "description": "Error.", "schema": { "$ref": "http://git.io/vcKD4#" } } } } }, "/confs/{id}": { "get": { "operationId": "showConf", "parameters": [ { "$ref": "#/parameters/entry_id" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/Entry" } }, "default": { "description": "Error.", "schema": { "$ref": "https://raw.githubusercontent.com/jhthorsen/swagger2/master/lib/Swagger2/error.json" } } } }, "put": { "operationId": "updateConf", "parameters": [ { "$ref": "#/parameters/entry_id" }, { "$ref": "#/parameters/entry" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/Void" } }, "default": { "description": "Error.", "schema": { "$ref": "https://raw.githubusercontent.com/jhthorsen/swagger2/master/lib/Swagger2/error.json" } } } }, "delete": { "operationId": "removeConf", "parameters": [ { "$ref": "#/parameters/entry_id" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/Void" } }, "default": { "description": "Error.", "schema": { "$ref": "https://raw.githubusercontent.com/jhthorsen/swagger2/master/lib/Swagger2/error.json" } } } } } }, "parameters": { "entry": { "name": "entry", "in": "body", "required": true, "schema": { "$ref": "#/definitions/Entry" }, "description": "A conf item" }, "entry_id": { "name": "id", "in": "path", "required": true, "type": "integer", "description": "A conf id" } }, "definitions": { "Entry": { "required": [ "body", "title" ], "properties": { "id": { "type": "integer" }, "body": { "type": "string" }, "title": { "type": "string" } } }, "Void": { "properties": {} } } }