Skip to content

telephoneorg/orka-api

Repository files navigation

STS GraphQL API Server

Servers

Locally

Dev

Schema

  • You can view the graphql schema here
  • You can view the query data used to generate tests here
  • You can view the api documentation here

Insomnia

I recommend the Insomnia App for GraphQL: https://insomnia.rest/, you can import the api requests using the Orka API Context for Insomnia. The only thing lacking is schema documentation, for that I recommend using the graphqli interface @ https://897qfp0jei.execute-api.us-east-1.amazonaws.com/dev/graphql

Special Dependencies

This package depends on specific bugfixes I've applied to the graphene and graphql-core packages, I've bumped the versions of these packages to prioritize their installation when the dependency graph is generated.

Management

These commands also work on aws lambda if you invoke them as manage.<command>

Deployment

This API is deployed to AWS using zappa

To deploy

zappa deploy dev

To update

zappa update dev

To invoke a management command

zappa invoke dev manage.<command>

To tail logs

zappa tail dev

To initialize database:

poetry run python3 manage.py init_db

To reset:

poetry run python3 manage.py clear_db

Tests

To run tests:

poetry run python3 -m pytest tests

Scripts

Test generation

To generate graphql tests configured using yaml, run:

poetry run python3 scripts/gen_graphene_tests.py <operation> <path-to-data.yaml>

Operation can be: query, mutation, etc

About

Orka GraphQL API Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages