Skip to content

schmichael/signup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages