Skip to content

Draft: Internal Booking

Xavier RENAUDIN requested to merge internal into develop

Backend

New endpoint POST /api/manager/bookings with authentication from a manager of the place

{
  "contactFirstName": "xavier",
  "contactLastName": "beta",
  "contactEmail": "toto@toto.com",
  "contactPhone": "0123456789",
  "description": "une description",
  "place": "/api/places/350",
  "purpose": "Une demo",
  "purposeType": "casual",
  "internal": true,
  "maxCapacity": 12,
  "bookingSlots": [
   
  {
    "startDate": "2024-04-24T09:00:00.000Z",
    "endDate": "2024-04-24T10:00:00.000Z",
    "available": true,
    "isDeletable": true,
    "cancelled": false
  },
  {
    "startDate": "2024-04-25T09:00:00.000Z",
    "endDate": "2024-04-25T10:00:00.000Z",
    "available": true,
    "isDeletable": true,
    "cancelled": false
  }
  ]
}
Edited by Xavier RENAUDIN

Merge request reports