Skip to content

HTTP 端点

NENE2 示例应用公开的所有端点。 所有 JSON 响应均遵循 docs/openapi/openapi.yaml 中定义的模式。

健康检查与诊断

方法路径认证响应
GET/health200 { service, status[, checks] } 或降级时 503
GET/examples/ping200 { message }
GET/200 { name, description, status } JSON 响应

Notes(笔记)

方法路径认证成功错误
GET/examples/notes200 列表422
POST/examples/notes201 笔记400413422
GET/examples/notes/{id}200 笔记404413
PUT/examples/notes/{id}200 笔记400404413422
DELETE/examples/notes/{id}204404

Tags(标签)

方法路径认证成功错误
GET/examples/tags200 列表422
POST/examples/tags201 标签400413422
GET/examples/tags/{id}200 标签404
PUT/examples/tags/{id}200 标签400404422
DELETE/examples/tags/{id}204404

受保护端点(机器客户端)

方法路径认证成功错误
GET/examples/protectedX-NENE2-API-KeyBearer200 JSON401

错误响应遵循 RFC 9457 Problem Details

基于 MIT 许可证发布。