-
Notifications
You must be signed in to change notification settings - Fork 4
API Endpoints
Jiří Kadlec edited this page Oct 24, 2024
·
11 revisions
List of API Endpoints:
- Method: POST
- Parameters: apikey (unique user api-key)
- Request body: uploaded_file (path to the delivery file - visible in the docker container, for example: "/mnt/qc_tool_uploads/uploads/delivery.zip")
- Response: application/json (status, message, delivery_id)
- Method: POST
- Parameters: apikey (unique user api-key)
- Request body: host (S3 storage host, for exapmle: "https://s3.waw3-1.cloudferro.com"); access_key (S3 access key, for example: "dasldkQ123"); secret_key (S3 secret key, for example: "35H12refsaadf"); bucketname (name of the S3 bucket, for example: "delivery"); key_prefix (delivery S3 key prefix, for example: "20231127/TCD/CLMS_HRL_VLCC_TCD_S2020_R10m_E49N35_03035_V01_R00")
- Response: application/json (status, message, delivery_id)
- Method: GET
- Parameters: apikey (unique user api-key)
-
- Optional query parameters:
-
- offset (number of items to skip before showing current result set, default=20),
- limit(number of items in the current resultset, default=20),
- sort (the attribute to sort the result by, default=id),
- order (the sorting order - desc or asc, default=desc)
-
- Response: application/json
-
- status
- message
- total (the total number of deliveries of the current user)
- offset (the offset parameter used for the current result set)
- limit (the limit parameter used for the current result set)
- next_offset (the offset parameter to used for the next page of results)
- deliveries (the list of deliveries)
- Method: GET
- Parameters: apikey (unique user api-key)
- Response: application/json (status, message, products)
- Method: GET
- Parameters: apikey (unique user api-key); product_ident (the product ident to show information about)
- Response: application/json (status, message, data)
- Method: POST
- Parameters: apikey (unique user api-key)
- Request body: delivery_id (for example 1); product_ident (for example "cz_2018"); skip_steps (for example "8,9")
- Note that the skip_steps parameter is optional. To run all steps, set skip_steps to "".
- Response: application/json (status, message, job_uuid)
- Method: GET
- Parameters: apikey (unique user api-key); job_uuid (the uuid to get results of)
- Response: application/json (status, message, data)
- Method: GET
- Parameters: apikey (unique user api-key); job_uuid (the uuid to get results of)
- Response: application/pdf (pdf file that can be downloaded)
- Method: GET
- Parameters: apikey (unique user api-key); delivery_id (the delivery_id to get history of)
- Response: application/json (status, message, data)
- Method: POST
- Parameters: apikey (unique user api-key); delivery_id (the delivery_id to submit the reports of)
- Response: application/json (status, message)
- Note: Deliveries are copied to the 'qc_tool_submission' folder. In the case of S3 deliveries, only reports and supporting files (such as logfile, config JSON file or timestamp textfile) are copied. Only deliveries with 'ok' status can be submitted.