Skip to content

HTTP server that validates JSON Blast CLI configs.

Notifications You must be signed in to change notification settings

VEuPathDB/util-blast-validator

Repository files navigation

util-blast-validator

A simple HTTP server that validates JSON form blast tool CLI configs.

Usage

$ curl -d'{"-task":"blastp"}' localhost/validate/blastx
{
  "status": 200, (1)
  "payload": { (2)
    "-task": [
      "Invalid -task value \"blastp\".  Must be one of [blastx, blastx-fast]."
    ]
  }
}
  1. The response status will always be 200 for a successful validation. Other response codes are used for bad requests or internal errors.

  2. Payload contains a list of 0 or more validation errors keyed on the blast cli tool flag the errors relate to.