url-shortener-service 2
POC API service that serves to shorten URLs. In this second version of url shortener I want to refactor my API controller and test some new features.
API endpoints:
| HTTP method | POST |
|---|---|
| URI | /shorten |
| Request Body | Example:{ url: “http://stackoverflow.com/questions/1567929/website-safe-data-accessarchitecture-question?rq=1“ } |
| Reponse Type | application/json |
| Response | Example: { shortUrl: “http://yourservice.com/xYzw3b“ } |
| HTTP method | GET |
|---|---|
| URI | /{hash} |
| Reponse Type | application/json |
| Response | Example:{ url: “http://stackoverflow.com/questions/1567929/website-safe-data-accessarchitecture-question?rq=1“ } |

