Skip to content

Shortens the given url and handles the redirection of the shortened url.

Notifications You must be signed in to change notification settings

Aerys-cmd/Shorten.io

Repository files navigation

Shorten.io

Installation

Works with a in memory database, so you will lose all your data when you restart the server.
Open the solution in Visual Studio and run the project on https Profile.

Usage

The API is documented with Swagger, so you can test it there.

To create a new short url, you need to send a POST request to https://localhost:7222/api/shortened-urls with the following body:
{
  "url": "https://www.google.com",
  "customUrlCode" : null // This is optional. If you want to create a custom url, you can send it here.
}

To test the redirect, you need to send a GET request to https://localhost:7222/{shortenedUrlCode} on the browser.

Created By Recep Obut

About

Shortens the given url and handles the redirection of the shortened url.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages