signup

command module
v0.0.0-...-7405c58 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2014 License: Apache-2.0 Imports: 12 Imported by: 0

README

signup

Running

go get github.com/schmichael/signup
signup

# Or from within $GOPATH/github.com/schmichael/signup
#go run main.go

# Then in another terminal (if you have httpie and jq installed)
http localhost:8000/api/list
export ITEMID=$(echo '{"description": "Test Item"}' | http POST localhost:8000/api/list | jq .id | sed -e 's/\"//g')
echo '{"user": "me!"}' | http POST localhost:8000/api/list/$ITEMID

API

GET /api/list/

Returns:

{
    "list": [
        {"description": "some string", "user": "name if someone signed up"},
        {"description": "again"}
    ]
}
POST /api/list/
{
    "description": "some string"
}

Returns:

{
    "id": "some string"
}
POST /api/list/<id>
{
    "user": "some string"
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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