Skip to content

HTTP Endpoints

All endpoints exposed by the NENE2 example application. Every JSON response follows the schemas in docs/openapi/openapi.yaml.

Health and diagnostics

MethodPathAuthResponse
GET/healthNone200 { service, status[, checks] } · 503 when any check fails
GET/examples/pingNone200 { message }
GET/None200 { name, description, status } JSON smoke response

Notes

MethodPathAuthSuccessErrors
GET/examples/notesNone200422
POST/examples/notesNone201400, 413, 422
GET/examples/notes/{id}None200404, 413
PUT/examples/notes/{id}None200400, 404, 413, 422
DELETE/examples/notes/{id}None204404

Tags

MethodPathAuthSuccessErrors
GET/examples/tagsNone200422
POST/examples/tagsNone201400, 413, 422
GET/examples/tags/{id}None200404
PUT/examples/tags/{id}None200400, 404, 422
DELETE/examples/tags/{id}None204404

Protected (machine client)

MethodPathAuthSuccessErrors
GET/examples/protectedBearer token200401

Requests to the protected endpoint must include a valid Authorization: Bearer <token> header with a JWT signed with NENE2_LOCAL_JWT_SECRET.

Response shapes

Collection envelope (shared by Notes and Tags):

json
{ "items": [...], "limit": 20, "offset": 0 }

Note object:

json
{ "id": 1, "title": "My note", "body": "Content here" }

Tag object:

json
{ "id": 1, "name": "backend" }

Error responses follow RFC 9457 Problem Details.

Released under the MIT License.