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

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -