Base URL

NEXT_PUBLIC_API_URL=...

Endpoints used

POST /shorten

Request:

{ "originalUrl": "<https://example.com>" }

Response:

{ "shortUrl": "https://.../abc123" }

Integration Flow

flowchart LR
User([Submits URl]) --> Backend[Validates URL]
Backend --> API([API Request sent])
API --> GC[Generates Code]
GC --> RR(Response Returned)
RR --> UI([UI Updated])

Client implementation notes