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

https://github.com/schmichael/signup


https://github.com/schmichael/signup

Last synced: 26 days ago
JSON representation

Awesome Lists containing this project

README

          

## signup

### Running

```sh
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:

```json
{
"list": [
{"description": "some string", "user": "name if someone signed up"},
{"description": "again"}
]
}
```

#### ``POST /api/list/``

```json
{
"description": "some string"
}
```

Returns:

```json
{
"id": "some string"
}
```

#### ``POST /api/list/``

```json
{
"user": "some string"
}
```