models
Get Figure
Retrieves the figure file stored in GCP for a given model.
Steps:
- Retrieve the model (same as get_model).
- Read the annotations property from the model.
- If the annotations do not satisfy the figure condition, raise a 400 error.
- If the condition is met, compute the final GCP file path.
- If the stored GCP path is a directory, append ‘figure.png’.
- Use the organisation_id and sanitize_gcp_bucket_name to compute the bucket name.
- Read the file from GCP and return it as an image.
GET
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Represents the current organisation ID for the user (example: 'org_u13TesTDumMyEe5P')
Path Parameters
Response
200
Successful Response