Welcome to the URL Shortener API! This API allows you to shorten long URLs and resolve them back to their original form.
Endpoint: POST /shorten
Request Body:
{"longUrl": "https://www.example.com"}
Endpoint: GET /resolve?code=abc123
Response:
{"originalUrl": "https://www.example.com"}
curl -X POST https://urlshotner.online/shorten -H "Content-Type: application/json" -d '{"longUrl": "https://www.example.com"}'
curl -X GET "https://urlshotner.online/resolve?code=abc123"