Loading...
POST /short-url {
longUrl: ...
}
this post method will create a short url based on long one and return it
GET /{short-url}
this methods redirects to the appropriate long-url page
the front-end is functioning as a client.
the microservice arhitecture is used.
there would be only one service: the one that is responsible for url translation and redirection.
for each service a separate database is created
url database entities:
urls:
long_url:
short_url:
created_at:
expired_at: