AnonURL API
📖
Summary
Changelog
Used technologies
Endpoints
Setup
♻️
Changelog (v1.0.0b)
- Modulated database and services
- Some fixes
⚙️
Used technologies:
- Golang
- MongoDB
🔌
Endpoints
/api/create (POST): To create shorted URLs
/api/track/ID (GET): To get basic information of a shorten URL
/api/redirect/ID (GET): To get information of redirect to shorted URL
/api/report (POST): To send a report
🔧
Setup
Clone this repository:
git clone https://github.com/anonurl/anonurl-api
Move to repository:
cd anonurl-api
Configurate:
- Add your Mongo URI to "MONGO_URI" on enviroments variables
- Add a port to "PORT" enviroment variable
Install all dependencies:
go get
Run:
go run main.go