-
Notifications
You must be signed in to change notification settings - Fork 5
Document every API endpoint with request/response examples #21
Copy link
Copy link
Open
Labels
GRANTFOX OSSGrantFox open-source campaign taskGrantFox open-source campaign taskMAYBE REWARDEDMay be rewarded under the GrantFox campaignMay be rewarded under the GrantFox campaignOFFICIAL CAMPAIGNOfficial GrantFox campaign issueOfficial GrantFox campaign issuearea:api-docsapi docsapi docspriority:mediumMedium priorityMedium prioritystack:expressstack:expressstack:expressstack:nodejsNode.jsNode.jsstack:typescriptTypeScriptTypeScripttype:docsDocumentationDocumentation
Metadata
Metadata
Assignees
Labels
GRANTFOX OSSGrantFox open-source campaign taskGrantFox open-source campaign taskMAYBE REWARDEDMay be rewarded under the GrantFox campaignMay be rewarded under the GrantFox campaignOFFICIAL CAMPAIGNOfficial GrantFox campaign issueOfficial GrantFox campaign issuearea:api-docsapi docsapi docspriority:mediumMedium priorityMedium prioritystack:expressstack:expressstack:expressstack:nodejsNode.jsNode.jsstack:typescriptTypeScriptTypeScripttype:docsDocumentationDocumentation
Type
Fields
Give feedbackNo fields configured for Feature.
Document the full HTTP API surface with examples
Description
README.mddescribes only setup and scripts; it documents none of the ~25 routes the service actually exposes insrc/index.ts(pairs, pair-meta, quote, bulk quote, api-keys, webhooks, events, config, metrics, stats, admin). New contributors must read the source to learn the API. This issue produces a complete endpoint reference.Requirements and context
StableRoute-Org/Stableroute-backendonly.docs/api.md(create file) documenting each route: method, path, params/body schema, success and error responses, and acurlexample.{ error, message, requestId }once and reference it.X-Request-Id,Retry-After,ETag, and the security headers.docs/api.mdfromREADME.md.Suggested execution
git checkout -b docs/api-docs-21-endpoint-referencesrc/index.tsand the/api/v1/openapi.jsonhandler.docs/api.md; updateREADME.md.Test and commit
npm run buildandnpm testto confirm nothing regressed.curlexamples against a locally runningnpm run dev.Example commit message
docs(api): add complete endpoint reference with curl examplesGuidelines
Community & contribution rewards