Koha/api/v1/swagger/definitions/basket.json
Tomas Cohen Arazi 5cd9c904c4
Bug 18731: OpenAPI definitions
This patch introduces the OpenAPI definitions required for the orders
endpoint. It matches the voted RFC.

Sponsored-by: Camden County
Signed-off-by: Matthias Meusburger <matthias.meusburger@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-09 16:25:57 +00:00

99 lines
2.7 KiB
JSON

{
"type": "object",
"properties": {
"basket_id": {
"type": "integer",
"description": "Internal identifier for the basket"
},
"name": {
"type": "string",
"description": "Basket name"
},
"internal_note": {
"type": [
"string",
"null"
],
"description": "Internal note"
},
"vendor_note": {
"type": [
"string",
"null"
],
"description": "Vendor note"
},
"contract_id": {
"type": "integer",
"description": "Internal identifier of the linked contract"
},
"creation_date": {
"type": [
"string",
"null"
],
"format": "date",
"description": "The date the basket was created"
},
"close_date": {
"type": [
"string",
"null"
],
"format": "date",
"description": "The date the basket was closed"
},
"vendor_id": {
"type": "integer",
"description": "Internal identifier for the vendor"
},
"authorised_by": {
"type": [
"integer",
"null"
],
"description": "Internal patron identifier of the basket creator"
},
"basket_group_id": {
"type": [
"integer",
"null"
],
"description": "links this basket to its group (aqbasketgroups.id)"
},
"delivery_library": {
"type": [
"string",
"null"
],
"description": "basket delivery place"
},
"billing_library": {
"type": [
"string",
"null"
],
"description": "basket billing place"
},
"library_id": {
"type": [
"integer",
"null"
],
"description": "Library the basket belongs to"
},
"standing": {
"type": "boolean",
"description": "If the orders in this basket are standing"
},
"create_items": {
"type": "string",
"enum": [
"ordering",
"receiving",
"cataloguing"
],
"description": "When items should be created for orders in this basket (Options: 'ordering', 'receiving', 'cataloguing'. Null means system wide config)"
}
}
}