Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 556 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 556 Bytes

shorty

simple PHP/Symfony API to store an URL hash with an opportunity to use it as a redirect alias

endpoints:

  • create: POST shorty.domain/api/short-url store an URL

    { "original": "http://your-url.org" }

  • list: GET shorty.domain/api/short-url get all the url (without offsets and filters)

  • statistics: GET shorty.domain/api/short-url/statistics aggregation stats page, by default returns users with created urls statistics

  • redirect by alias: GET shorty.domain/api/short-url/redirect/{hash} redirects if url exists