docs: Add OpenAPI 3.0 specification #14
No reviewers
Labels
No labels
bug
feature request
improvement
priority
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
leon/cloudflare-workers-url-shortener!14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "cloudy/cloudflare-workers-url-shortener:docs/openapi-spec"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Adds a complete OpenAPI 3.0 specification for the URL shortener API.
Covered Endpoints
Authentication:
GET /api/auth-ok- Validate tokenGET /api/login- Login with cookieGET /api/logout- LogoutShortlinks:
GET /api/shortlink- List all shortlinksPOST /api/shortlink- Create shortlinkDELETE /api/shortlink- Delete shortlinkPublic:
GET /{shortname}- Redirect (no auth)Features
Closes #6
LGTM