01
Create a short URL
Enter a complete URL beginning with http:// or https://.
URL SHORTENER MICROSERVICE
This is an original project implementing the API routes required by the freeCodeCamp Back End Development and APIs certification.
POST /api/shorturl
GET /api/shorturl/:id
Enter a complete URL beginning with http:// or https://.
The response keys and redirect route match the certification tests.
{
"original_url": "https://freecodecamp.org/",
"short_url": 1
}
Invalid input
{ "error": "invalid url" }