Loading...
Two interaction paths:
Accepts JSON body containing "originUrl" property. We won't use query parameters as the original URL may exceed the query param limit.
Returns a JSON containing "shortUrl" property with the shortened URL.
Returns a 308 response (permanent redirect) and Location header pointing to the full URL.
Main components:
Simple application (e.g., Spring Boot server app or a NodeJS express server). Using an async framework (e.g., Reactor) may be beneficial as the application is IO-bound.
POST /create
GET /