{{define "content"}} {{$d := .Data}}

API

Every page on this site has a JSON twin under {{$d.Base}}, so /~you/project/issues/4 is read from /api/~you/project/issues/4. Send a token from settings as Authorization: Bearer gp_… or as the password of HTTP basic auth. Lists answer {items, total, next} and take ?from= and ?limit=, errors answer {status, error}, and fetching this address without asking for HTML returns the same table as JSON.

curl -H "Authorization: Bearer $TOKEN" {{$d.Base}}/me
curl -H "Authorization: Bearer $TOKEN" -X POST -d '{"title":"crash on empty input"}' {{$d.Base}}/~you/project/issues
curl -H "Authorization: Bearer $TOKEN" --data-binary @notes.txt '{{$d.Base}}/gists?name=notes.txt&visibility=public'

Needs: none is open to anyone, user takes any credential, write a token scoped all, gist a token scoped all or gist, password a password or a session and admin a site administrator.

{{range $d.Groups}}

{{.Name}}

{{range .Routes}}{{end}}
{{.Method}}{{.Path}}{{.Needs}}{{.About}}
{{end}} {{end}}