https://github.com/inffe/urlshorter
Microservice for shortering URLs with PostgreSQL
https://github.com/inffe/urlshorter
go microservice postgresql
Last synced: 9 months ago
JSON representation
Microservice for shortering URLs with PostgreSQL
- Host: GitHub
- URL: https://github.com/inffe/urlshorter
- Owner: inffe
- Created: 2024-09-16T11:40:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-16T11:54:17.000Z (over 1 year ago)
- Last Synced: 2025-02-10T03:15:43.012Z (about 1 year ago)
- Topics: go, microservice, postgresql
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# urlShorter
Требуется создать микросервис сокращения url. Длина сокращенного URL-адреса должна быть как
можно короче. Сокращенный URL может содержать цифры (0-9) и буквы (a-z, A-Z).
Эндпоинты:
POST http://localhost:8080/
Request: (body): http://cjdr17afeihmk.biz/123/kdni9/z9d112423421
Response: http://localhost:8080/qtj5opu
GET
Request (url query): http://localhost:8080/qtj5opu
Response (body): http://cjdr17afeihmk.biz/123/kdni9/z9d112423421
Микросервис должен уметь хранить информацию в памяти и в postgres в зависимости от флага
запуска -d