- The architecture of our API is based on a typical client server model.
- The client can access the api at endpoint /api/url/shorten to post the long URL in order to get the shorter one.
- I have choosed MongoDB as i didn't had any relational requirement and noSQL DB's like MongoDB are highly scalable.
- The Database contains the fields longUrl, shortUrl, urlCode, date.