GET /image/{index}/solve

Solves the specified image, the result is returned immediately (blocking request)

Path parameters

  • index integer Required

    The index of the image to solve

Query parameters

  • imageType string

    Filter the image history by image type. This is useful if you got the index of an image using the history with a filter and now want to get the image. E.g. the 3rd flat in the image history is the 3rd flat in the image endpoint.

    Values are LIGHT, FLAT, DARK, BIAS, or SNAPSHOT.

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • Response object
      Hide Response attributes Show Response attributes object
      • Coordinates object
        Hide Coordinates attributes Show Coordinates attributes object
        • RA number
        • RADegrees number
        • Dec number
        • DECDegrees number
        • Epoch integer
      • PositionAngle number
      • PixelScale number
      • Radius number
      • Flipped boolean
      • Success boolean
      • RaErrorString string
      • RaPixError number
      • DecPixError number
      • DecErrorString string
    • Error string
    • StatusCode integer
    • Success boolean
    • Type string
  • 400 application/json

    Invalid image index / No images available

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

      Values are Index out of range or No images available.

    • 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 /image/{index}/solve
curl \
 --request GET 'http://localhost:1888/v2/api/image/{index}/solve'
Response examples (200)
{
  "Response": {
    "Coordinates": {
      "RA": 42.0,
      "RADegrees": 42.0,
      "Dec": 42.0,
      "DECDegrees": 42.0,
      "Epoch": 42
    },
    "PositionAngle": 42.0,
    "PixelScale": 42.0,
    "Radius": 42.0,
    "Flipped": true,
    "Success": true,
    "RaErrorString": "string",
    "RaPixError": 42.0,
    "DecPixError": 42.0,
    "DecErrorString": "string"
  },
  "Error": "string",
  "StatusCode": 200,
  "Success": true,
  "Type": "API"
}
Response examples (400)
{
  "Response": "string",
  "Error": "Index out of range",
  "StatusCode": 400,
  "Success": false,
  "Type": "API"
}
Response examples (500)
{
  "Response": "string",
  "Error": "Unknown error",
  "StatusCode": 500,
  "Success": false,
  "Type": "API"
}