Skip to content

API Endpoints

Jiří Tomíček edited this page Jan 24, 2024 · 11 revisions

Register a new delivery from already uploaded file

  • 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)

List all deliveries

  • Method: GET
  • Parameters: apikey (unique user api-key)
  • Response: application/json (status, message, deliveries)

List all products that can be checked

  • Method: GET
  • Parameters: apikey (unique user api-key)
  • Response: application/json (status, message, products)

Show all QC checks for a product

  • Method: GET
  • Parameters: apikey (unique user api-key); product_ident (the product ident to show information about)
  • Response: application/json (status, message, data)

Run a new QC job

  • 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")
  • Response: application/json (status, message, job_uuid)

Specific job results in json format

  • Method: GET
  • Parameters: apikey (unique user api-key); job_uuid (the uuid to get results of)
  • Response: application/json (status, message, data)

Specific job results in pdf format

  • Method: GET
  • Parameters: apikey (unique user api-key); job_uuid (the uuid to get results of)
  • Response: application/pdf (status, message, data)

Specific delivery job history

  • Method: GET
  • Parameters: apikey (unique user api-key); delivery_id (the delivery_id to get history of)
  • Response: application/json (status, message, data)

Clone this wiki locally