Skip to content

robertkowalski/node-shortener

Repository files navigation

Build Status

Fun project to get used with node and to test travis ci

JSON Api

curl -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"url": "http://kowalski.gd"}' http://localhost:3000/api/
# {"url":"http://kowalski.gd","shorturl":"7","date":"2012-06-09T21:34:14.103Z"}


curl -i -H "Content-Type: application/json" -H "Accept: application/json" -X GET http://localhost:3000/api/MYSHORTURL
# {"url":"http://kowalski.gd","shorturl":"7","date":"2012-06-09T21:34:14.103Z"}


curl -i -H "Content-Type: application/json" -H "Accept: application/json" -X GET http://localhost:3000/api/random
# {"url":"http://google.de","shorturl":"7","date":"2012-06-09T21:34:14.103Z"}

About

fun project: url shortener using node and nosql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published