DimK10/hotel-management-application

Create rest api endpoint in order to create, update, read and delete a new room entity

Closed this issue · 0 comments

@georgepoul Please create a new rest api in our project, in the following format:
/api/rooms (method GET)
/api/room/create (method POST)
/api/room/update/1 (method POST - assuming the id of room to update is 1)
/api/room/delete/1 (method POST - assuming the id of room to update is 1)

In which, when it is hit, the application will handle the process of crwating a new Room entity.

Please rememebr this flow:
Controller takes the request -> service has the method create (business logic) -> retreive from repository or save -> controller returns the a json response with the newly Room entity created.