Link converter service converts URLs to deeplinks or deeplinks to URLs.
The service responds to the incoming request and first checks whether this request is in the database, if it is in the database, the corresponding response is returned. If the incoming request is not in the database, the relevant response is created.
- gorilla/mux (go 1.17.3)
- postgres 14.3 (Database has been deployed to digitalocean.)
docker-compose up --build
There are two options for test.
- go test ./...
- go test -v -coverprofile cover.out ./...
Method | Endpoint | |
---|---|---|
POST | /getDeepLink | The URL received with the request is converted to a deeplink. |
POST | /getWebURL | The deeplink received with the request is converted to a URL. |
Author: İlker Rişvan
Email: ilkerrisvan@outlook.com