Expand description
HTTP surface for the Enhance issue axis (/v1/issues*).
HTTP surface for the Enhance issue axis (current design).
POST /v1/issuessubmits an issue (=IssueStore.create).GET /v1/issues/:idreturns its status (=IssueStore.get + status).
The backend is an IssueStore trait object (= the caller selects an
InMemoryIssueStore or a persistent backend and passes it in). This
replaces the pre-v0.9 /issues (= no /v1/ prefix, InMemoryIssueSource
backend).
Structs§
- GetIssue
Response - Response for
GET /v1/issues/:id. - Issue
Store Error Response - Wraps
IssueStoreErrorinto a 500 response (safety net for future extension). - Post
Issue Request - Body for
POST /v1/issues. - Post
Issue Response - Response for
POST /v1/issues.
Functions§
- build_
issues_ router - Router that provides
/v1/issues+/v1/issues/:id. Callers integrate it into an existing Router viaRouter::merge. The backend is theIssueStorepassed in as an argument (= pass in the same instance asEnhancePipelineviaArc).