Create requirementResult
post
/PASService/rest/services/v1/requirementResults
Creates single or multiple requirementResults. If the requirementId in the request is null or missing, the requirement results will be considered as unmatched requirement results.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
stringResponse
201 Response
successful operation
Examples
This example describes how to create and match single or multiple requirement results.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-L "http://server:port/PASService/rest/services/v1/clients" \
-d '{"Use this placeholder to plug-in the example request body given below"}'
Example Request Body
The following shows an example of the request body in JSON format:
{
"requirementResults": [
{
"statusCode": "08",
"resultText": "Result",
"documentId": "CDE5718F-FECF-4BE7-B2E5-41C6788CF651",
"fulfilledBy": "qatester3",
"lastName": "Homer",
"firstName": "Simpson",
"dateOfBirth": "1991-01-01 00:01:50.601",
"taxId": "949017893",
"requirementId": "B9180C7C-CD1E-49D2-A029-E99945DC7D8A",
"requirementDefinitionId": "B9180C7C-CD1E-49D2-A029-E99945DC7D8A",
"date": {
"textValue": "01",
"optionText": "01-11-16 12:00:00.000000000"
},
"paymentMode": {
"textValue": "12",
"optionText": "Monthly"
},
"requirementResultType": {
"typeCode": "01",
"responseData": {
"textValue": "02",
"optionText": "155GZN; 355#ZN; 500TZN; 921JX#; 922HX#; 912#X#"
},
"result": {
"textValue": "02",
"optionText": "HBA1C"
}
}
},
{
"statusCode": "08",
"resultText": "Result",
"documentId": "ABE5718F-FECF-4BE7-B2E5-41C6788CF652",
"fulfilledBy": "qatester3",
"lastName": "Homer",
"firstName": "Simpson",
"dateOfBirth": "1991-01-01 00:01:50.601",
"taxId": "949017893",
"requirementId": "C9180C7C-CD1E-49D2-A029-E99945DC7D8Z",
"requirementDefinitionId": "A9180C7C-CD1E-49D2-A029-E99945DC7D8W",
"date": {
"optionText": "01",
"textValue": "01-11-16 12:00:00.000000000"
},
"paymentMode": {
"textValue": "12",
"optionText": "Quarterly"
},
"requirementResultType": {
"typeCode": "01",
"responseData": {
"textValue": "02",
"optionText": "155GZN; 355#ZN; 500TZN; 921JX#; 922HX#; 912#X#"
},
"result": {
"textValue": "02",
"optionText": "HBA1C"
}
}
}
]
}
Example Response Body
The following shows an example of the response body in JSON format:
{
"requirementResult": [
"2190E383-A24B-4441-B907-797FF383C02C",
"3120E383-A24B-4441-B907-797FF383C02S",
]
}