validate

Validate AGS4 File(s) and ZIP files containing AGS4 File(s)

Changed on

Validate AGS4 file(s) to the AGS File Format v4.x rules and the NGDC data submission requirements. Uses the Offical AGS4 Python Library.

post/v7/validate/

Request

  • Base URL
    https://agsapi.bgs.ac.uk (the document declares no server; this is the origin it was published from)
  • URL
    https://agsapi.bgs.ac.uk/v7/validate/
  • Auth
    none declared

Request body multipart/form-data

filesstring[] required

An AGS file ending in .ags or a ZIP file containing AGS file(s)

std_dictionary'v4_0_3' | 'v4_0_4' | 'v4_1' | 'v4_1_1' | ''
checkersChecker[]

If set validate against AGS schema

fmt'text' | 'json'
return_geometryboolean

Return GeoJSON if possible, otherwise return an error message Option: True or False

Response

Return a log in json or text

msgstring required
typestring required
selfstring required

Example response

{
  "msg": "Example response",
  "type": "success",
  "self": "http://example.com/apis/query",
  "data": [
    {
      "filename": "example.ags",
      "checkers": [
        "python_ags4 v1.1.0"
      ],
      "dictionary": "Standard_dictionary_v4_1_1.ags",
      "time": "2021-08-18 09:23:29",
      "message": "7 error(s) found in file!"
    }
  ]
}

Changes