JSON

GET /sequence/json

Get sequence as json. For this to work, there needs to be a deep sky object container present and the sequencer view has to be initalized! This endpoint is generally advised to use over state since it gives more reliable results.

Responses

  • 200 application/json

    Successful response, best to try it out yourself

    Hide response attributes Show response attributes object
    • Response array[object]
      One of:
      Hide attributes Show attributes
      • Conditions array
      • Items array

        Contains sequence instructions as well as containers

      • Triggers array
      • Status string
      • Name string
    • Error string
    • StatusCode integer
    • Success boolean
    • Type string
  • 409 application/json

    Sequencer not initialized / No DSO container found

    Hide response attributes Show response attributes object
    • Response string
    • Error string

      Values are Sequencer not initialized or No DSO container found.

    • StatusCode integer
    • Success boolean
    • Type string
  • 500 application/json

    Internal server error, Unknown error

    Hide response attributes Show response attributes object
    • Response string
    • Error string
    • StatusCode integer
    • Success boolean
    • Type string
GET /sequence/json
curl \
 --request GET 'http://localhost:1888/v2/api/sequence/json'
Response examples (200)
{
  "Response": [
    {
      "Conditions": [],
      "Items": [],
      "Triggers": [],
      "Status": "string",
      "Name": "string"
    }
  ],
  "Error": "string",
  "StatusCode": 200,
  "Success": true,
  "Type": "API"
}
Response examples (409)
{
  "Response": "string",
  "Error": "Sequencer not initialized",
  "StatusCode": 409,
  "Success": false,
  "Type": "API"
}
Response examples (500)
{
  "Response": "string",
  "Error": "Unknown error",
  "StatusCode": 500,
  "Success": false,
  "Type": "API"
}