- Redis for Caching : redis-server
- PostgresSQL for storing URL mappings
- SwiftUI for the app
- CoreData to store url mappings locally on client side
curl --location --request POST 'http://localhost:9098/create-short-url' \
--header 'Content-Type: text/plain' \
--data-raw '{
"long_url": "https://amazon.com",
"user_id" : "e0dba740-fc4b-497872c-d360239e"
}
'
Sample Response (200 Status Code):
{
"message": "short url created successfully",
"short_url": "http://localhost:9098/re/SwwSgzBe"
}
User can generate the short links and also can view past links they have shortened