unable to create schema in MarkLogic database -
i used following syntax documentation
curl -x post --anyauth --user admin:admin \ --header "content-type:application/json" \ -d '{"view-schema-name": "myschema"}' \ http://localhost:8002/manage/v2/databases/sqldata/view-schemas?format=json your thoughts please! tia
error msg -
curl: (3) [globbing] unmatched close brace/bracket in column 9 {"errorresponse":{"statuscode":"415", "status":"unsupported media type", "messag ecode":"rest-invalidmimetype", "message":"rest-invalidmimetype: (rest:invalidmim etype) content-type must 1 of: 'application/json', 'application/xml', rece ived: application/x-www-form-urlencoded"}}
as mentioned before, output of curl command helpful. without that, error can imagine sample of database sqldata not exist..
Comments
Post a Comment