diff --git a/README.md b/README.md index 3183e33..a9050df 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,3 @@ -# API Project: URL Shortener Microservice for freeCodeCamp +# URL Shortener Microservice [![Run on Repl.it](https://repl.it/badge/github/freeCodeCamp/boilerplate-project-urlshortener)](https://repl.it/github/freeCodeCamp/boilerplate-project-urlshortener) - -### User Stories - -1. You should provide your own project, not the example URL. -2. You can POST a URL to `/api/shorturl/new` and get a JSON response with the property names `original_url` and `short_url` and the expected values for each. -3. When you visit `/api/shorturl/`, you will be redirected to the original URL. -4. 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' }`. diff --git a/views/index.html b/views/index.html index 2bdbc0a..74fdec3 100644 --- a/views/index.html +++ b/views/index.html @@ -25,14 +25,6 @@ -
-

Example Creation:

-

POST [project_url]/api/shorturl/new - Body (URL encoded): url=https://www.google.com

-

Example Usage:

- [project_url]/api/shorturl/3 -

Will Redirect to:

-

https://forum.freecodecamp.org/

-