kanwalnainsingh/OpenDesk

API to reserve booking for desk.

kanwalnainsingh opened this issue · 0 comments

Requirement:

UI will call below service when user select a site,floor and date for booking. At present this API exist but just save whatever request comes.

Update API:

CODE_BASE: code_base/microservices/booking-service
API: /booking
Method Type: POST

API will call desk-service GET: /desk/{orgId}/{siteId}/{floorId} this will return all desk that is for the organisation List.

Create a method in BookingService that will take BookingRequest from UI along with list of all desk from desk service.
Lookup booking service db for requested booking date. Check for all desk if booking not available for particular date then return any one desk.

Note: You might need to create data in micro-service via swagger api. Use below url
http://localhost:{port}/swagger-ui.html