I have a REST API Endpoint endpoint/action. The method is POST having a json data in the request body. I have two headers for this
- Content-Type=application/json
- Custom-Header={"object":{"id":"someId"}}
The object is deserialized during processing and the "someId" is used for other processes
Was wondering if it is a good practice to send json strings/data in the http header. Couldn't find anything in the Http Header documentations. Option would be just sending in the "someId" and fetching the object using the id