anonurl-api

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2022 License: MIT Imports: 4 Imported by: 0

README

AnonURL API

FrontEnd repository

📖 Summary

Changelog
Used technologies
Endpoints
Setup


♻️ Changelog (v1.0.1)

  • Fixed API calls


⚙️ 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL