Loading...
Storage requirement is 1GB:
POST api/v1/shorten:
GET api/v1/shortUrl:
Data schema:
URL entity represents the shortened URL records in your database.
id is the primary key that uniquely identifies each record.
longUrl stores the original, unshortened URL.
shortUrl contains the generated shortened URL that users will access.
clickedTimes keeps track of how many times the shortened URL has been accessed.
There are web server, shorten url service, and databse in this system.
original url will be sent to server through REST API endpoints and get shorten url by shorten function in shorten url service.