Skip to main content

cli for anna

Project description

anna-api

RESTful API for anna

usage

GET /v1.0/get

Get job(s)

parameter type description required
id integer or list of integers possible id(s) no
name string or list of strings possible name(s) no
status string or list of strings possible status(es) no
driver string or list of strings possible driver(s) no
container string or list of strings possible container(s) no
sites string or list of strings possible site(s) no

$ curl -H "Content-Type: application/json" -X GET --data '{"id": [1, 2, 3]}' http://localhost:5000/v1.0/get

POST /v1.0/push

Push a new job to the end of the queue

parameter type description required
drivers list of strings driver(s) to test yes
sites list of strings site(s) to test yes

$ curl -H "Content-Type: application/json" -X POST --data '{"drivers": ["chrome", "firefox"], "sites": ["somesite"]}' http://localhost:5000/v1.0/push

POST /v1.0/clear

Stop & remove all running jobs and their corresponding containers

parameter type description required

$ curl -H "Content-Type: application/json" -X POST --data '{}' http://localhost:5000/v1.0/clear

POST /v1.0/rm

Stop & remove the matching jobs and their corresponding containers

parameter type description required
id integer or list of integers possible id(s) no
name string or list of strings possible name(s) no
status string or list of strings possible status(es) no
driver string or list of strings possible driver(s) no
container string or list of strings possible container(s) no
sites string or list of strings possible site(s) no

$ curl -H "Content-Type: application/json" -X POST --data '{"id": [1, 2, 3]}' http://localhost:5000/v1.0/rm

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for anna-cli, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size anna_cli-1.0.0-py3.7.egg (3.1 kB) File type Egg Python version 3.7 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page