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

https://github.com/dcramer/tabletop-server


https://github.com/dcramer/tabletop-server

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

        

# tabletop-server

## Install

```shell
$ brew install postgresql
$ poetry install
$ createdb -E utf-8 tabletop
$ poetry run tabletop migrate
$ poetry run tabletop runserver
```

## API

The API is a GraphQL implementation powered by Graphene. The endpoint is ``/graphql/``.

Authentication is done via the following:

1. Perform a login mutation:

```graphql
mutation{
login(email:"[email protected]", password:"bar"){
errors
ok
token
user {id, email, name}
}
}
```

2. Capture the token in the response and send it with future requests:

```http
Authorization: Token {value}
```

Here's a helpful app which lets you bind an auth header:

https://github.com/skevy/graphiql-app