Use GraphQL instead of REST to talk with synse-server
10K+
synse-graphql provides a GraphQL API that enables complex querying of your data center and IT equipment. The API comes with an interactive query application for exploration of the Synse APIs and provides a simple interface for common integrations.
make run
At this point there is an interactive terminal running that you can do interactive queries with. Send your browser to http://localhost:5001/graphql and play around. Click the Docs tab on the right for the schema or go to tests/queries/ to look at some example queries.
To stop it, you can run:
make down
Note: the default configuration uses the embedded synse-server and emulator. If you'd like to use a different backend, check out --help.
docker run -it --rm vaporio/synse-graphql python synse_graphql --help
--backend.make build dev
python synse_graphqpl
curl localhost:5001make build dev
python synse_graphql &
./query.py --list
./query.py test_racks
./query.py --help
make build dev
tox
See nosetests for some more examples. Adding @attr('now') to the top of a function is a really convenient way to just run a single test.
isort graphql_frontend tests -rc -vb --dont-skip=__init_.py --diff
isort graphql_frontend tests -rc -vb --dont-skip=__init_.py --atomic
localhost to talk to the router. If this isn't where you're running it, change the config.make testContent type
Image
Digest
Size
41.2 MB
Last updated
almost 8 years ago
docker pull vaporio/synse-graphql