UrlShortener

Frontend located at https://github.com/datur/UrlShortenerUi

C# api using in memory database

Requirements

An endpoint that will shorten a URL

  • Validate url
  • Check if shortened url already exists
  • Hash the url in some way
  • store the url
  • Return the shortened url

An endpoint that retreives the URL from the shortened url

  • url must be valid
  • try and find the urls hash
  • redirect to the url if found - Handled in frontend