team-genny / genny

0 stars 1 forks source link

Create schema API endpoint should return the created schema & correct Location header #63

Closed fergcb closed 3 months ago

fergcb commented 3 months ago

Currently a POST to /api/schemas returns a 204 on success, with a Location header (which lacks the /api prefix).

The endpoint should return a JSON response body containing the created schema, including its generated _id, and the Location header should be corrected.