Ajaii
Ajaii

Reputation: 41

Marklogic- RESTAPI-Invalid Content

 rapi:status-code:['400'],
'rapi:status':['Bad Request'],
'rapi:message-code':['RESTAPI-INVALIDCONTENT'],
'rapi:message':['RESTAPI-INVALID CONTENT:(err:FOER0000)Invalid content: invalid cwapi extension]. 

I defined a module namespace cwapi.When I import cwapi.xqy xquery file, I get the above error. Do I have to change the output type? What do I do?

Upvotes: 0

Views: 492

Answers (1)

ehennum
ehennum

Reputation: 7335

You must install the resource service extension before you can use it. Please see:

http://docs.marklogic.com/guide/rest-dev/extensions

Upvotes: 2

Related Questions