4. Api Usage - lefuturiste/urlshortener GitHub Wiki
Usage of api
Create a url
POST /api/urls/
form_params:
uuid => the shorten url, optional, if this is empty, the shorten url will be automaticly generated
redirect => The original url, required
Get a list of url
GET /api/urls
Get all urls register in this instance
Show data about url
GET /api/urls/{uuid}
Show data about url
Update a url
POST /api/urls/{uuid}
Update a url
form_params:
uuid => the shorten url, optional, if this is empty, the original url redirect will be not overwrite
redirect => The original url, required
Delete a url
DELETE /api/urls