← All projects
Applications & services · Go
U

URL Shortener

Go service with JSON API, 302 redirects, visit counting, custom codes and expiring links. Codes avoid look-alikes (no 0/O, 1/l/I) so they survive being read aloud.

01 Create a link — POST /api/links

Validation mirrors the Go handlers: 422 bad URL / bad code / bad duration, 409 code taken, 404 unknown code, 410 expired.

02 Links — GET /api/links

Shortened links
CodeTargetVisitsExpiresActions

No links yet — create one above. Simulated hits use 302 (never 301), so the counter always sees the visit.