Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
curl http://127.0.0.1:62080/api/v2beta/validate/avalon \

  --data-binary "@path/to/Manifest.csv" \

  --header "Authorization: ApiKey test:test" \

  --header "Content-Type: text/csv; charset=utf-8"

...

Response examples:


Code Block
200 OK

(Response was valid)

{

  "valid": true

}

400 Bad Request

(Expect reason to include different validation errors, or that the file could not be found)

{

  "valid": false,

  "reason": "Administrative data must include reference name and author."

}

404 Not Found

(Validator was not found.)

{

  "error": true,

  "message": "Unknown validator. Accepted values: avalon"

}


This request can be performed manually, per manifest, or set to run regularly on all files in a folder using the cron service or another script scheduler.

...