Open mertsalik opened 2 years ago
V2
Http POST api/v1/url/ Parameters
Response Codes Successful : 201 + Shortened Url in the Body Invalid Request: 400 + Json Body /w descriptive error message Internal Error: 500 + Json Body /w descriptive error message
An original URL can be stored multiple times.
Http GET /u/URL-ALIAS Parameters
Responses Successful: 302 -> ( Temporary Relocation ) + Original URL on headers Invalid Request: 404 Not Found Internal Error: 500 + Json Body /w descriptive error message
Http DELETE api/v1/url/
Response Codes Successful : 204 No Content Invalid Request: 404 - Not Found Internal Error: 500 + Json Body /w descriptive error message