An open API service indexing awesome lists of open source software.

https://github.com/izzypt/url-shortener-microservice

freeCodeCamp URL shortener micro service exercise
https://github.com/izzypt/url-shortener-microservice

Last synced: about 1 month ago
JSON representation

freeCodeCamp URL shortener micro service exercise

Awesome Lists containing this project

README

          

# URL-Shortener-Microservice
FCC url shortener micro service exercise

# Tests

- Passed: You should provide your own project, not the example URL.
- Passed: You can POST a URL to /api/shorturl and get a JSON response with original_url and short_url properties. Here's an example: { original_url : 'https://freeCodeCamp.org', short_url : 1}
- Passed: When you visit /api/shorturl/, you will be redirected to the original URL.
- Passed: If you pass an invalid URL that doesn't follow the valid http://www.example.com format, the JSON response will contain { error: 'invalid url' }

# Public Url/Display

https://URL-Shortener-Microservice.simobonvalot.repl.co