Table of Contents

Get Project Status

Back to JEA API docs


The Get Project Status command retrieves a status object about the specified project. A valid JWT token must be included in the header, or the transaction will be rejected with an HTTP 401 Unauthorized error code.

Synopsis

Project Status

A Project Status report example is shown below:

{
  "projectName": "my_project",
  "status": "Evolving",
  "generations": 1,
  "solutions": 10,
  "ok": true,
  "description": "Engine is running. Current generation: 0, solutions explored: 10"
}

The JSON object contains the following fields:

Example using curl://

To send the Project Status command using curl:

curl -b cookies   https://api.ensims.com/jea_web/api/status/circle

On successful operation, an engine response object is returned. If the existing JWT is invalid, an HTTP 401 Unauthorized code will be returned.

Example using Python Requests

Make sure Requests is correctly installed in your Python environment, and run the following the lines:

import requests

# Make a request with the stored cookies from the log on transaction

# Get the status of the 'circle' project 
r = requests.get('https://api.ensims.com/jea_web/api/status/circle', cookies=cookies)
  
r.json()