Fix REST API regression

The threads resource was not pass the schema validation test; no ID field
was defined.
This commit is contained in:
Markus Mäkelä 2018-07-05 17:29:55 +03:00
parent 8470da9313
commit a11d83679e
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -964,6 +964,7 @@ public:
ss << idx;
json_t* pJson = json_object();
json_object_set_new(pJson, CN_ID, json_string(ss.str().c_str()));
json_object_set_new(pJson, CN_TYPE, json_string(CN_THREADS));
json_object_set_new(pJson, CN_ATTRIBUTES, pAttr);
json_object_set_new(pJson, CN_LINKS, mxs_json_self_link(m_zHost, CN_THREADS, ss.str().c_str()));