{ "swagger" : "2.0", "info" : { "description" : "", "version" : "1.0.3", "title" : "ODOO API", "contact" : { "email" : "support@svgun.ru" } }, "host" : "ias.svgun.ru", "basePath" : "/api/v1", "schemes" : [ "http", "https" ], "paths" : { "/search/{model}/{field}/{value}" : { "get" : { "summary" : "Search in models", "description" : "Search in all models", "operationId" : "search", "produces" : [ ], "parameters" : [ { "name" : "model", "in" : "path", "description" : "model alias", "required" : true, "type" : "string" }, { "name" : "field", "in" : "path", "description" : "field name", "required" : true, "type" : "string" }, { "name" : "value", "in" : "path", "description" : "field value", "required" : true, "type" : "string" } ], "responses" : { "400" : { "description" : "Invalid Order" }, "default" : { "description" : "Successful operation" } } } }, "/list/{model}/{field}" : { "get" : { "summary" : "List all in models", "description" : "List all available documents fields and ids", "operationId" : "list", "produces" : [ ], "parameters" : [ { "name" : "model", "in" : "path", "description" : "model alias", "required" : true, "type" : "string" }, { "name" : "field", "in" : "path", "description" : "field name", "required" : true, "type" : "string" } ], "responses" : { "400" : { "description" : "Invalid Order" }, "default" : { "description" : "Successful operation" } } } }, "/view/{model}/{id}" : { "get" : { "summary" : "View model object", "description" : "View all fields of model", "operationId" : "view", "produces" : [ ], "parameters" : [ { "name" : "model", "in" : "path", "description" : "model alias", "required" : true, "type" : "string" }, { "name" : "id", "in" : "path", "description" : "field name", "required" : true, "type" : "integer", "format" : "int64" } ], "responses" : { "400" : { "description" : "Invalid Order" }, "default" : { "description" : "Successful operation" } } } }, "/update/{model}/{id}" : { "get" : { "summary" : "Update model object", "description" : "Updite fields of model", "operationId" : "update", "produces" : [ ], "parameters" : [ { "name" : "model", "in" : "path", "description" : "model alias", "required" : true, "type" : "string" }, { "name" : "id", "in" : "path", "description" : "record id", "required" : true, "type" : "integer", "format" : "int64" } ], "responses" : { "400" : { "description" : "Invalid Order" }, "default" : { "description" : "Successful operation" } } } }, "/add/{model}" : { "get" : { "summary" : "Create model object", "description" : "Create record of model", "operationId" : "add", "produces" : [ ], "parameters" : [ { "name" : "model", "in" : "path", "description" : "model alias", "required" : true, "type" : "string" } ], "responses" : { "400" : { "description" : "Invalid Order" }, "default" : { "description" : "Successful operation" } } } }, "/del/{model}/{id}" : { "get" : { "summary" : "Remove model object", "description" : "Remove of model object", "operationId" : "del", "produces" : [ ], "parameters" : [ { "name" : "model", "in" : "path", "description" : "model alias", "required" : true, "type" : "string" }, { "name" : "id", "in" : "path", "description" : "record id", "required" : true, "type" : "integer", "format" : "int64" } ], "responses" : { "400" : { "description" : "Invalid Order" }, "default" : { "description" : "Successful operation" } } } }, "/describe/{model}" : { "get" : { "summary" : "View model object", "description" : "View all fields of model", "operationId" : "describe", "produces" : [ ], "parameters" : [ { "name" : "model", "in" : "path", "description" : "model alias", "required" : true, "type" : "string" } ], "responses" : { "400" : { "description" : "Invalid Order" }, "default" : { "description" : "Successful operation" } } } }, "/access" : { "get" : { "summary" : "List available models", "description" : "View all available models for token", "operationId" : "access", "produces" : [ ], "responses" : { "400" : { "description" : "Invalid Order" }, "default" : { "description" : "Successful operation" } } } } }, "securityDefinitions" : { "ApiKeyAuth" : { "type" : "apiKey", "in" : "header", "name" : "Token" } }, "security" : [ { "ApiKeyAuth" : [ ] } ] }