{
"put": { "operationId": "updateItemById", "description": "Update contract's item with specified fields", "tags": ["Contract"], "parameters": [ { "$ref": "../../common/components.json#/components/request/parameters/token_param" }, { "name": "contract_id", "in": "path", "schema": { "type": "string" }, "required": true, "description": "Numeric ID of the contract" }, { "name": "item_id", "in": "path", "schema": { "type": "string" }, "required": true, "description": "Numeric ID of the item" } ], "requestBody": { "required": true, "description": "Contract's Item fields to update", "content": { "application/json": { "schema": { "$ref": "../../common/schemas/procurement/item.json#/components/schemas/request/put" } }, "application/xml": { "schema": { "$ref": "../../common/schemas/procurement/item.json#/components/schemas/request/put" } } } }, "responses": { "200": { "description": "Object was updated correctly", "content": { "application/json": { "schema": { "$ref": "../../common/schemas/procurement/item.json#/components/schemas/response" } }, "application/xml": { "schema": { "$ref": "../../common/schemas/procurement/item.json#/components/schemas/response" } } } }, "400": { "description": "Bad request" }, "404": { "description": "Not found" }, "500": { "description": "Internal Server Error" } } }, "delete": { "operationId": "deleteitemById", "description": "Delete contract's item", "tags": ["Contract"], "parameters": [ { "$ref": "../../common/components.json#/components/request/parameters/token_param" }, { "name": "contract_id", "in": "path", "schema": { "type": "string" }, "required": true, "description": "Numeric ID of the contract" }, { "name": "item_id", "in": "path", "schema": { "type": "string" }, "required": true, "description": "Numeric ID of the item" } ], "responses": { "200": { "description": "Message regarding a successful operation", "content": { "application/json": { "example": { "messages": { "message": "Deleted item" } } } } }, "400": { "description": "Bad request" }, "404": { "description": "Not found" }, "500": { "description": "Internal Server Error" } } }
}