Martin Renvoize
e8d5219547
This patch adds new Koha::Object based classes for bookings logic and adds API controllers to expose the new bookings data via the REST API's. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Janet McGowan <janet.mcgowan@ptfs-europe.com> Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> Signed-off-by: Laurence Rault <laurence.rault@biblibre.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
45 lines
965 B
YAML
45 lines
965 B
YAML
---
|
|
additionalProperties: false
|
|
properties:
|
|
biblio_id:
|
|
description: Internal identifier for the parent bibliographic record
|
|
type: integer
|
|
biblio:
|
|
description: Embedable biblio representation
|
|
type: object
|
|
booking_id:
|
|
description: Internal booking identifier
|
|
type: integer
|
|
end_date:
|
|
description: Start date and time of this booking
|
|
format: date-time
|
|
type: string
|
|
item_id:
|
|
description: Internal item identifier
|
|
type:
|
|
- integer
|
|
- "null"
|
|
item:
|
|
description: Embedable item representation
|
|
type:
|
|
- object
|
|
- "null"
|
|
patron_id:
|
|
description: Internal patron identifier
|
|
type: integer
|
|
patron:
|
|
description: Embedable patron representation
|
|
type:
|
|
- object
|
|
- "null"
|
|
start_date:
|
|
description: Start date and time of this booking
|
|
format: date-time
|
|
type: string
|
|
required:
|
|
- biblio_id
|
|
- item_id
|
|
- patron_id
|
|
- start_date
|
|
- end_date
|
|
type: object
|