EVOLUTION-MANAGER
Edit File: api.json
{ "swagger": "2.0", "info": { "title": "OCSInventory API", "description": "Get informations about OCSInventory server", "version": "1.0.0" }, "host": "ocsinventory.server", "schemes": [ "https" ], "basePath": "/v1", "produces": [ "application/json" ], "paths": { "/computer/{id}": { "get": { "x-mojo-controller": {"controller": "Computer", "action": "test"}, "summary": "Get One computer information", "description": "Return Computer object with all information\n", "parameters": [ { "name": "id", "in": "path", "description": "ID of Computer", "required": true, "type": "number", "format": "int" } ], "tags": [ "Computers" ], "responses": { "200": { "description": "An Computer object", "schema": { "$ref": "#/definitions/Computer" } }, "default": { "description": "Unexpected error", "schema": { "$ref": "#/definitions/Error" } } } } } }, "definitions": { "Computer": { "type": "object", "properties": { "id": { "type": "integer", "format": "int", "description": "Computer ID" }, "tag": { "type": "string", "description": "Computer Administrativ TAG" } } }, "Error": { "type": "object", "properties": { "code": { "type": "integer", "format": "int" }, "message": { "type": "string" } } } } }