Sign In Register

How can we help you today?

Start a new topic
Answered

NoSQL Explorer REST API form data format

Hello,


I'm trying to understand the NoSQL Explorer REST API, and I'm having some trouble passing form data in my requests.


I'm formatting the form data as I would any other POST body such as:


query={“displayName” : “testUser”}&fields={“userName” : 1, “displayName” : 1}


I'm unfortunately not having any luck. Each time I send a request, I get all the documents in the collection back.


The documentation is a bit vague, can someone provide a full HTTP request as an example so that I can spot what I am doing wrong?


Best Answer
Specifying a content type in the request header solved the issue in my case.

 

Content-Type: application/x-www-form-urlencoded

limit=10
1 Comment

Answer
Specifying a content type in the request header solved the issue in my case.

 

Content-Type: application/x-www-form-urlencoded

limit=10