Bug 36100: Remove readOnly from bookings definition.
[koha.git] / api / v1 / swagger / definitions / booking.yaml
1 ---
2 additionalProperties: false
3 properties:
4   biblio_id:
5     description: Internal identifier for the parent bibliographic record
6     type: integer
7   biblio:
8     description: Embedable biblio representation
9     type: object
10   booking_id:
11     description: Internal booking identifier
12     type: integer
13   end_date:
14     description: Start date and time of this booking
15     format: date-time
16     type: string
17   item_id:
18     description: Internal item identifier
19     type:
20       - integer
21       - "null"
22   item:
23     description: Embedable item representation
24     type:
25       - object
26       - "null"
27   patron_id:
28     description: Internal patron identifier
29     type: integer
30   patron:
31     description: Embedable patron representation
32     type:
33       - object
34       - "null"
35   start_date:
36     description: Start date and time of this booking
37     format: date-time
38     type: string
39 required:
40   - biblio_id
41   - item_id
42   - patron_id
43   - start_date
44   - end_date
45 type: object