Skip to content

/POST hotels/id #44

@Dao-Ho

Description

@Dao-Ho

Post a hotel entity
POST hotels/

create the handler and DB accessor, models, and handler tests for creating a single hotel

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)
  • validation logic should be done where necessary, especially for request body where field isn't optional

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