I am faced with the challenge of constructing a POST request for a nested REST API (json object) dedicated to search functionality. I am unsure about how to format the URL parameters due to its complex nesting structure. How should I include question marks and equals signs in this scenario?
http://localhost:63020/api/search....?
{
"offset": 0,
"batchsize": 10,
"search": {
"scope": [2,3,32],
"type": "basic",
"text": {
"value": "test*",
"fields": [
"subject", "body"
]
},
"age": {
"unit": "d",
"amount": 365
},
"hasattachments": false,
},
"facet": "messagehits",
}