AnsweredAssumed Answered

JSON support for REST

Question asked by ColonelPanic on Oct 4, 2016
Latest reply on Oct 27, 2016 by ColonelPanic

How do we call the REST api with json in our POST?  We get errors when we try.  Here's an example we tried calling QueryStartRequestFormsRequest.  It works fine with xml.

 

Endpoint: http://hostname:7000/node/rest/CA:00074_CA:00074:01/_ops/QueryStartRequestForms 

{
"QueryStartRequestFormsRequest": {
"@xmlns": "http://ns.ca.com/2011/09/pam-ops",
"Filter": {
"LookUpPath": "/GCC/SRF",
"IsRecursive": "true"
}
}
}

 

 

and we get back:

java.lang.RuntimeException: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Feature 'QueryStartRequestFormsRequest' not found. (http:///temp.xml, 1, 73)

Outcomes