ЕСОЗ - публічна документація

Merge Legal Entity Job by ID/list tests

n/ndescriptioninputsexpected_resultactual_result
1GET Job by Id without scopeinvalid token
id
200,  "code": "FORBIDDEN",
"message": "Your scope does not allow to access this resource"
200,  "code": "FORBIDDEN",
"message": "Your scope does not allow to access this resource"
2GET Job with not valid tokeninvalid token
id
401, 
"error": {
"message": "Invalid access token",
"type": "access_denied"
}
401, 
"error": {
"message": "Invalid access token",
"type": "access_denied"
}
3GET Job by invalid IDtoken
invalid id
not found
500,
{
"type": "internal_error"
}
4GET not allowed fields by schematoken
fields
"message": "Cannot query field \"fieldName\" on type \"LegalEntityMergeJob\""message": "Cannot query field \"fieldName\" on type \"LegalEntityMergeJob\"
5GET list of jobs

token

fields

200, data200, data
6GET list of jobs filtered by statustoken, 
fields,
LegalEntityMergeJobFilter
200, data filtered by status200, data filtered by status
7GET list of jobs filtered by incorrect statustoken, 
fields,
LegalEntityMergeJobFilter
400,
"message": "Argument \"filter\" has invalid value $filter.\nIn field \"status\": Expected type \"LegalEntityMergeJobStatus\", found \"FAILED_WITH_ERRORS\"."
400,
"message": "Argument \"filter\" has invalid value $filter.\nIn field \"status\": Expected type \"LegalEntityMergeJobStatus\", found \"FAILED_WITH_ERRORS\"."
8Get job in status='PEDNING"token, 
fields,
LegalEntityMergeJobFilter
200, end_date = null200, end_date='1970-01-01'
9Sort list of LegalEntityMergeJob by LegalEntityMergeJobOrderBy

token, 
fields,
LegalEntityMergeJobOrderBy

200, sorted by LegalEntityMergeJobOrderBy200, sorted by LegalEntityMergeJobOrderBy
10Sort list of LegalEntityMergeJob by 
"mergedToLegalEntity":{
"edrpou":"$edrpou1"
},
"mergedFromLegalEntity":{
"edrpou":"$edrpou2"
},
token, 
fields,
LegalEntityMergeJobFilter
200, sorted by LegalEntityMergeJobFilter200, sorted by LegalEntityMergeJobFilter

ЕСОЗ - публічна документація