This commit is contained in:
Hayden 2023-06-02 11:08:12 -08:00
parent 2ba1bda3fa
commit f5daf96e1e
No known key found for this signature in database
GPG key ID: 17CF79474E257545

View file

@ -627,6 +627,46 @@
"description": "No Content" "description": "No Content"
} }
} }
},
"patch": {
"security": [
{
"Bearer": []
}
],
"produces": [
"application/json"
],
"tags": [
"Items"
],
"summary": "Update Item",
"parameters": [
{
"type": "string",
"description": "Item ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "Item Data",
"name": "payload",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/repo.ItemPatch"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/repo.ItemOut"
}
}
}
} }
}, },
"/v1/items/{id}/attachments": { "/v1/items/{id}/attachments": {
@ -2034,6 +2074,19 @@
} }
} }
}, },
"repo.ItemPatch": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"quantity": {
"type": "integer",
"x-nullable": true,
"x-omitempty": true
}
}
},
"repo.ItemSummary": { "repo.ItemSummary": {
"type": "object", "type": "object",
"properties": { "properties": {