Skip to content

/GET hotels/id #43

@Dao-Ho

Description

@Dao-Ho

Get a hotel entity given an entity
GET hotels/id

create the handler and DB accessor, models, and handler tests for retrieving a single hotel given its id

Some things to keep in mind:

  • all errors returned from the handler should be the internal error (500) except 400, where the request body is invalid (users from the FE shouldn't need to know what went wrong in our backend), and 404, where it doesn't exists in our DB
  • validation logic should be done where necessary
  • you have the link to access the UI of local DB instance, you can use this to check your implementation as needed (or other tools). In other words, no need to create a post endpoint for this

Metadata

Metadata

Assignees

Labels

featureIntroduces a new and complete feature

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions