LearningRegistry/LearningRegistry — Issue #113: Obtain POST - "request_IDs" returns empty set of documents.
Author: kmentor
Created: 2011-10-20 18:08:05+00:00
State: open

Via an Obtain POST, one should be able to request a list of IDs. However, the "request_IDs" elements seems to be ignored. I see no related bugs in GitHub or PT.

#### Submission:

{
"by_resource_ID": true,
"request_IDs": [
{"request_ID": "http://192.168.119.177/node/46"},
{"request_ID": "http://192.168.119.177/node/47"},
{etc...},
{etc...}
]
}

#### Result:

{"documents":[], "resumption_token":null}

This is true regardless of:

* variants to the case of the *request_id* / *request_ID* element name.
* submitting by_doc_ID or by_resource_ID;

___________________________________________________

Also, if "by_resource_ID" is not explicitly set to true, it appears to be treating it as if it were "false", rather than the default "true".

#### Submission:

{
"request_IDs": [
{ "request_ID": "http://192.168.119.177/node/46"},
{ "request_ID": "http://192.168.119.177/node/47"},
{etc...},
{etc...}
]
}

#### Result:

{"message": "by_doc_ID and by_resource_ID cannot both be False", "OK": false}