Resources
get /api
Get API documentation HTML document.
curl -X GET \
undefined/api200 OK chevron_right expand_more
text/html
text/html
get /config
Prints out the current server configuration.
curl -X GET \
undefined/config200 OK chevron_right expand_more
OptionsResponse OptionsResponse
application/json
Success full options printout
Additional properties: Yes
Inherits: object
| Parameter | Type | Description |
|---|---|---|
| serviceName* | string | Configured name of the service |
| port* | integer | HTTP port the server is listening on Min. value: 80 Max. value: 65535 |
| configPath* | string | Path to the server configuration file on the host filesystem |
| commands* | array | List of configured commands |
| commands[] | object | Additional properties: Yes |
| commands[].command* | string | The shell command the server will call |
| commands[].arguments* | array | Arguments the server will pass to the configured command. |
| commands[].arguments[] | string | Optionally templated input argument the server will pass to the configured command. |
get /health
Current status/stats about the the HTTP service.
curl -X GET \
undefined/health200 OK chevron_right expand_more
HealthResponse HealthResponse
application/json
Successful server status lookup.
Additional properties: Yes
Inherits: object
| Parameter | Type | Description |
|---|---|---|
| status* | string | Enum:
|
| version* | string | |
| stats* | object | Additional properties: Yes |
| stats.byStatus* | object | Request count by HTTP response status. Additional properties: Yes |
| stats.byStatus.//* | integer | |
| stats.avgSize* | integer | Average User Dataset payload size. |
| stats.avgDuration* | string | Average User Dataset processing time. |
| stats.largest* | integer | Historical largest User Dataset processed size in bytes. |
| stats.longest* | string | Historical longest run encountered for processing a User Dataset. |
500 Internal Server Error chevron_right expand_more
500 Response ServerError
application/json
| Parameter | Type | Description |
|---|---|---|
| status* | string | |
| message* | string | |
| requestId* | string |
Response Body
{
"status": "server-error",
"message": "Dataset handler connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}get /metrics
Prometheus metrics readout for the service.
curl -X GET \
undefined/metrics200 OK chevron_right expand_more
text/plain
text/plain
put /job/{job-id}
Parameters chevron_right expand_more
| Parameter | Type | Description |
|---|---|---|
| Path | ||
| job-id* | string | Unique identifier for the job being created. Assigned by the calling service. This ID will be used to reference the created job for all subsequent, job-specific requests. |
curl -X PUT \
-H "Content-type: application/json"
-d @body.json \
undefined/job/{job-id}Request Body chevron_right expand_more
MetadatPutBody MetadatPutBody
application/json
Additional properties: Yes
Inherits: object
| Parameter | Type | Description |
|---|---|---|
| projects* | array | Projects in which this User Dataset should be available for install after processing. Unique items: Yes |
| projects[] | string | Enum:
Inherits: ProjectEnum |
| owner* | integer | WDK User ID of the user submitting this User Dataset for processing. |
| name* | string | Name of the dataset. Min. length: 3 |
| description | string | Optional description of the dataset. |
| summary | string | Optional dataset summary. |
| origin | string | Optional (until service is called from Galaxy) dataset origin (galaxy or direct-upload) Enum:
Inherits: DatasetOrigin |
| handlerParams | object | Optional handler-specific parameters that can be injected in Handler CLI call |
204 No Content chevron_right expand_more
Job accepted
400 Bad Request chevron_right expand_more
400 Response BadRequestError
application/json
| Parameter | Type | Description |
|---|---|---|
| status* | string | |
| message* | string |
Response Body
{
"status": "bad-request",
"message": "malformed JSON"
}422 Unprocessable Entity chevron_right expand_more
422 Response InvalidInputError
application/json
Parsable but invalid request input.
Discriminator: status
Discriminator value: invalid-input
Inherits: ErrorResponse
| Parameter | Type | Description |
|---|---|---|
| status* | string | |
| message* | string | |
| errors* | object | |
| errors.general* | array | |
| errors.general[] | string | |
| errors.byKey* | object | Additional properties: Yes |
| errors.byKey.//* | string |
Response Body
{
"status": "invalid-input",
"message": "json validation failed",
"errors": {
"general": [],
"byKey": {
"datasetName": "Dataset name is required"
}
}
}500 Internal Server Error chevron_right expand_more
500 Response ServerError
application/json
| Parameter | Type | Description |
|---|---|---|
| status* | string | |
| message* | string | |
| requestId* | string |
Response Body
{
"status": "server-error",
"message": "Dataset handler connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}post /job/{job-id}
Parameters chevron_right expand_more
| Parameter | Type | Description |
|---|---|---|
| Path | ||
| job-id* | string | Unique identifier for the job being created. Assigned by the calling service. This ID will be used to reference the created job for all subsequent, job-specific requests. |
curl -X POST \
-H "Content-type: application/binary"
-d @file \
undefined/job/{job-id}Request Body chevron_right expand_more
application/binary
application/binary
Packaged dataset upload file. Max 500Mb.
Max. length: 524288000
Request Body
zip
dataset.ziptar
dataset.tar.gztgz
dataset.tgz200 OK chevron_right expand_more
application/binary
application/binary
User Dataset processing completed successfully. Returns the output from the internal script suite as a packaged tar file ready for upload to iRODS.
Response Body
dataset.tgz400 Bad Request chevron_right expand_more
400 Response BadRequestError
application/json
Invalid request input. Possible causes are:
- No Content-Type header
- No Content-Length header
- Unsupported Content-Type
- Payload too large
- Incorrect payload format
Discriminator: status
Discriminator value: bad-request
Inherits: ErrorResponse
| Parameter | Type | Description |
|---|---|---|
| status* | string | |
| message* | string |
Response Body
{
"status": "bad-request",
"message": "malformed JSON"
}404 Not Found chevron_right expand_more
404 Response NotFoundError
application/json
Requested resource not found
Discriminator: status
Discriminator value: not-found
Inherits: ErrorResponse
| Parameter | Type | Description |
|---|---|---|
| status* | string | |
| message* | string |
Response Body
{
"status": "not-found",
"message": "No job found with the given job-id"
}500 Internal Server Error chevron_right expand_more
500 Response ServerError
application/json
| Parameter | Type | Description |
|---|---|---|
| status* | string | |
| message* | string | |
| requestId* | string |
Response Body
{
"status": "server-error",
"message": "Dataset handler connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}get /job/{job-id}/status
Fetch the current status of the User Dataset processing.
Parameters chevron_right expand_more
| Parameter | Type | Description |
|---|---|---|
| Path | ||
| job-id* | string | Unique identifier for the job being created. Assigned by the calling service. This ID will be used to reference the created job for all subsequent, job-specific requests. |
curl -X GET \
undefined/job/{job-id}/status200 OK chevron_right expand_more
User Dataset processing status data.
404 Not Found chevron_right expand_more
404 Response NotFoundError
application/json
Requested resource not found
Discriminator: status
Discriminator value: not-found
Inherits: ErrorResponse
| Parameter | Type | Description |
|---|---|---|
| status* | string | |
| message* | string |
Response Body
{
"status": "not-found",
"message": "No job found with the given job-id"
}500 Internal Server Error chevron_right expand_more
500 Response ServerError
application/json
| Parameter | Type | Description |
|---|---|---|
| status* | string | |
| message* | string | |
| requestId* | string |
Response Body
{
"status": "server-error",
"message": "Dataset handler connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}Security Schemes
Types
Type ErrorResponse (object)
Generic error response
Discriminator: status
Inherits: object
Model
| Parameter | Type | Description |
|---|---|---|
| status* | string | |
| message* | string |
Type BadRequestError (object)
Model
| Parameter | Type | Description |
|---|---|---|
| status* | string | |
| message* | string |
Examples
{
"status": "bad-request",
"message": "malformed JSON"
}Type NotFoundError (object)
Requested resource not found
Discriminator: status
Discriminator value: not-found
Inherits: ErrorResponse
Model
| Parameter | Type | Description |
|---|---|---|
| status* | string | |
| message* | string |
Examples
{
"status": "not-found",
"message": "No job found with the given job-id"
}Type InvalidInputError (object)
Parsable but invalid request input.
Discriminator: status
Discriminator value: invalid-input
Inherits: ErrorResponse
Model
| Parameter | Type | Description |
|---|---|---|
| status* | string | |
| message* | string | |
| errors* | object | |
| errors.general* | array | |
| errors.general[] | string | |
| errors.byKey* | object | Additional properties: Yes |
| errors.byKey.//* | string |
Examples
{
"status": "invalid-input",
"message": "json validation failed",
"errors": {
"general": [],
"byKey": {
"datasetName": "Dataset name is required"
}
}
}Type ServerError (object)
Model
| Parameter | Type | Description |
|---|---|---|
| status* | string | |
| message* | string | |
| requestId* | string |
Examples
{
"status": "server-error",
"message": "Dataset handler connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}Type HealthResponse (object)
Details about the server's current status.
Additional properties: Yes
Inherits: object
Model
| Parameter | Type | Description |
|---|---|---|
| status* | string | Enum:
|
| version* | string | |
| stats* | object | Additional properties: Yes |
| stats.byStatus* | object | Request count by HTTP response status. Additional properties: Yes |
| stats.byStatus.//* | integer | |
| stats.avgSize* | integer | Average User Dataset payload size. |
| stats.avgDuration* | string | Average User Dataset processing time. |
| stats.largest* | integer | Historical largest User Dataset processed size in bytes. |
| stats.longest* | string | Historical longest run encountered for processing a User Dataset. |
Type OptionsResponse (object)
Additional properties: Yes
Inherits: object
Model
| Parameter | Type | Description |
|---|---|---|
| serviceName* | string | Configured name of the service |
| port* | integer | HTTP port the server is listening on Min. value: 80 Max. value: 65535 |
| configPath* | string | Path to the server configuration file on the host filesystem |
| commands* | array | List of configured commands |
| commands[] | object | Additional properties: Yes |
| commands[].command* | string | The shell command the server will call |
| commands[].arguments* | array | Arguments the server will pass to the configured command. |
| commands[].arguments[] | string | Optionally templated input argument the server will pass to the configured command. |
Type MetadatPutBody (object)
Additional properties: Yes
Inherits: object
Model
| Parameter | Type | Description |
|---|---|---|
| projects* | array | Projects in which this User Dataset should be available for install after processing. Unique items: Yes |
| projects[] | string | Enum:
Inherits: ProjectEnum |
| owner* | integer | WDK User ID of the user submitting this User Dataset for processing. |
| name* | string | Name of the dataset. Min. length: 3 |
| description | string | Optional description of the dataset. |
| summary | string | Optional dataset summary. |
| origin | string | Optional (until service is called from Galaxy) dataset origin (galaxy or direct-upload) Enum:
Inherits: DatasetOrigin |
| handlerParams | object | Optional handler-specific parameters that can be injected in Handler CLI call |
Type DatasetOrigin (string)
- galaxy
- direct-upload
Inherits: string
Type ProjectEnum (string)
- AmoebaDB
- ClinEpiDB
- CryptoDB
- FungiDB
- GiardiaDB
- HostDB
- MicrobiomeDB
- MicrosporidiaDB
- OrthoMCL
- PiroplasmaDB
- PlasmoDB
- SchistoDB
- ToxoDB
- TrichDB
- TritrypDB
- VectorBase
- VEuPathDB
Inherits: string
Type StatusResponse (object)
Additional properties: Yes
Inherits: object
Model
| Parameter | Type | Description |
|---|---|---|
| started | datetime | |
| duration* | string | Time it took to process the dataset. |
| userId* | integer | |
| jobId* | string | |
| status* | string | |
| projects* | array | |
| projects[] ProjectEnum | string | Enum:
Inherits: string |
| size* | integer |