Skip to content

fix: return 201 Created for all resource creation endpoints#182

Open
jakebromberg wants to merge 2 commits intomainfrom
fix/41-create-status-201
Open

fix: return 201 Created for all resource creation endpoints#182
jakebromberg wants to merge 2 commits intomainfrom
fix/41-create-status-201

Conversation

@jakebromberg
Copy link
Member

@jakebromberg jakebromberg commented Feb 21, 2026

Summary

  • All resource creation endpoints were returning HTTP 200 instead of the correct HTTP 201 Created status code
  • Fixed addEntry (3 success paths) in flowsheet.controller.ts, addToBin in djs.controller.ts, addAlbum/addArtist/addRotation/addFormat/addGenre in library.controller.ts, and addToSchedule in schedule.controller.ts
  • Added unit tests for addToBin and addToSchedule to verify 201 status

Test plan

  • New unit tests verify addToBin and addToSchedule return 201
  • Full unit test suite passes (122 tests)
  • Verify no downstream clients depend on checking for 200 specifically (RTK Query and axios treat 2xx identically)

Closes #41

Made with Cursor

All create endpoints (flowsheet entries, bin entries, albums, artists,
rotation, formats, genres, schedule) returned 200 instead of 201.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jakebromberg jakebromberg force-pushed the fix/41-create-status-201 branch from 899a692 to 46f729f Compare February 27, 2026 05:55
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.

1 participant