Skip to content

fix: POST /api/mugs returns 201 Created per OpenAPI spec - #22

Open
VedantMadane wants to merge 1 commit into
andrewpcodes:mainfrom
VedantMadane:fix/issue-9
Open

fix: POST /api/mugs returns 201 Created per OpenAPI spec#22
VedantMadane wants to merge 1 commit into
andrewpcodes:mainfrom
VedantMadane:fix/issue-9

Conversation

@VedantMadane

Copy link
Copy Markdown

Summary

POST /api/mugs returns 201 Created per OpenAPI spec

Changes

  • Annotate MugController.createMug with @ResponseStatus(HttpStatus.CREATED)
  • Update MugControllerSpec to expect isCreated() for createMug

Fixes #9

- Annotate MugController.createMug with @ResponseStatus(HttpStatus.CREATED)
- Update MugControllerSpec to expect isCreated() for createMug

Fixes andrewpcodes#9

Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

POST /api/mugs returns 200 but the spec says 201 (and the test asserts the bug)

1 participant