Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 734 Bytes

import.md

File metadata and controls

45 lines (29 loc) · 734 Bytes

Import results - Results API

If enabled, the WMAS Test Suite can import results exported by any arbitrary other instance.

1. import

Import a session's results from a ZIP file.

HTTP Request

POST /api/results/import

HTTP Response

If successful, the server responds with the token of the imported session:

{
  "token": "String"
}

However, if an error occured, the server responds the error message:

{
  "error": "String"
}

2. import enabled

To check whether or not the import features is enabled, the import enabled method returns the state as JSON.

HTTP Request

GET /api/results/import

Response

{
  "enabled": "Boolean"
}