diff --git a/Koha/Booking.pm b/Koha/Booking.pm index e5297d8d17..403ca3bf4e 100644 --- a/Koha/Booking.pm +++ b/Koha/Booking.pm @@ -241,7 +241,10 @@ on the API. =cut sub to_api_mapping { - return {}; + return { + created_on => "creation_date", + updated_on => "modification_date" + }; } =head3 delete diff --git a/api/v1/swagger/definitions/booking.yaml b/api/v1/swagger/definitions/booking.yaml index 5a7b8cc77b..d6db77263c 100644 --- a/api/v1/swagger/definitions/booking.yaml +++ b/api/v1/swagger/definitions/booking.yaml @@ -10,6 +10,10 @@ properties: booking_id: description: Internal booking identifier type: integer + creation_date: + description: Creation date and time of this booking + format: date-time + type: string end_date: description: Start date and time of this booking format: date-time @@ -24,6 +28,10 @@ properties: type: - object - 'null' + modification_date: + description: Modification date and time of this booking + format: date-time + type: string patron_id: description: Internal patron identifier type: integer