I used postman also. I used basic auth with superman:Admin123
POST https://192.168.33.10/openmrs/ws/rest/v1/openconceptlab/subscription with body:
{
"url": "https://openconceptlab.org/users/djazayeri/collections/TEST/",
"token": "what I got from my user page in OCL"
}
and got a similar response to yours.
Then POST https://192.168.33.10/openmrs/ws/rest/v1/openconceptlab/import with body:
{}
Response is
{
"uuid": "18f395ee-6cb9-4d6c-ae1e-865688fccc49",
"localDateStarted": "2017-12-15T07:14:10.000+0000",
"localDateStopped": null,
"links": [
{
"rel": "full",
"uri": "http://192.168.33.10/openmrs/ws/rest/v1/openconceptlab/import/18f395ee-6cb9-4d6c-ae1e-865688fccc49?v=full"
},
{
"rel": "ref",
"uri": "http://192.168.33.10/openmrs/ws/rest/v1/openconceptlab/import/18f395ee-6cb9-4d6c-ae1e-865688fccc49?v=ref"
},
{
"rel": "self",
"uri": "http://192.168.33.10/openmrs/ws/rest/v1/openconceptlab/import/18f395ee-6cb9-4d6c-ae1e-865688fccc49"
}
],
"resourceVersion": "1.8"
}
I don’t know for sure why you’re getting empty results, but maybe you need to post {} instead of just empty body. The response you get seems to me like the server is interpreting it as a search…
Afterwards using the UUID that came back from the POST I can do:
GET https://192.168.33.10/openmrs/ws/rest/v1/openconceptlab/import/18f395ee-6cb9-4d6c-ae1e-865688fccc49
and the response is
{
"uuid": "18f395ee-6cb9-4d6c-ae1e-865688fccc49",
"localDateStarted": "2017-12-15T07:14:10.000+0000",
"localDateStopped": "2017-12-15T07:14:34.000+0000",
"links": [
{
"rel": "full",
"uri": "http://192.168.33.10/openmrs/ws/rest/v1/openconceptlab/import/18f395ee-6cb9-4d6c-ae1e-865688fccc49?v=full"
},
{
"rel": "ref",
"uri": "http://192.168.33.10/openmrs/ws/rest/v1/openconceptlab/import/18f395ee-6cb9-4d6c-ae1e-865688fccc49?v=ref"
},
{
"rel": "self",
"uri": "http://192.168.33.10/openmrs/ws/rest/v1/openconceptlab/import/18f395ee-6cb9-4d6c-ae1e-865688fccc49"
}
],
"resourceVersion": "1.8"
}