$ brew install postgresql
$ poetry install
$ createdb -E utf-8 tabletop
$ poetry run tabletop migrate
$ poetry run tabletop runserver
The API is a GraphQL implementation powered by Graphene. The endpoint is /graphql/
.
Authentication is done via the following:
- Perform a login mutation:
mutation{
login(email:"[email protected]", password:"bar"){
errors
ok
token
user {id, email, name}
}
}
- Capture the token in the response and send it with future requests:
Authorization: Token {value}
Here's a helpful app which lets you bind an auth header: