API
Test API
Get Test Template

Get test template

This endpoint Gets the test template based on the provided filter criteria.

Endpoint

 POST https://api.ezyhire.com/test/getTestTemplate

Request

Headers
USER-Key: User/API key for authentication
 
Body: json
{
  "pageNumber": 0,
  "pageSize": 0,
  "templateType": "SINGLE_CORRECT",
  "testType": "SYSTEM"
}
 

Response

Successful Response
Status Code: 200 OK
Content:json
{
 "status": 200,
 "message": "Success",
 "data": [
   {
     "testTemplateField1": "value1",
     "testTemplateField2": "value2",
     ...
   },
   ...
 ]
}
Error Response
Status Code: 401 Unauthorized 
Content:json
{
  "status": 401,
  "message": "Invalid User/API key"
  "error": "Please provide a valid User/API key"
}