API Reference
POST /shorten
Creates a short code for a URL.
Request:
Response (201 Created):
Errors:
| Status | Reason |
|---|---|
| 400 | Missing or invalid URL |
| 500 | Internal server error |
GET /{short_code}
Redirects to the original URL.
Response (302 Found):
Errors:
| Status | Reason |
|---|---|
| 404 | Short code not found |
GET /health
Health check endpoint.
Response (200 OK):