Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pankajkhairnar/GoShort

GoShort is a URL shortener written in Golang, BoltDB is used for in memory and persistent key/value storage and for routing it's using high performance HTTPRouter
https://github.com/pankajkhairnar/GoShort

Last synced: 13 days ago
JSON representation

GoShort is a URL shortener written in Golang, BoltDB is used for in memory and persistent key/value storage and for routing it's using high performance HTTPRouter

Awesome Lists containing this project

README

        

# goShort
GoShort is a URL shortener written in Golang and [BoltDB] for persistent key/value storage and for routing it's using high performent [HTTPRouter]

### REST Endpoints
- [POST] - http://localhost:8080/create/ : It accepts POST form data with parameter "url" and returns json response with short URL
- [GET] - http://localhost:8080/{SHORT_CODE}/ : If SHORT_CODE is valid and found in db, request will be redirected to original long URL
- [GET] - http://localhost:8080/{SHORT_CODE}/json : If SHORT_CODE is valid and found in db the endpoint will return original url in json response

### License
[Apache]

[HTTPRouter]:
[BoltDB]:
[Apache]: