Is there a specific scenario when using a JSON body in a POST request for a REST service is ideal?
At what point should someone consider utilizing a JSON body with multiple parameters/arguments?
I have encountered a situation where I need to send a POST request to a server containing a list of subscription toggles. Below is the POST request body I have devised, but I am wondering if I should also utilize URL arguments for factory_id.
{
"data": [
{
"is_subscribed": false,
"game_id": 0
},
{
"game_id": 1,
"is_subscribed": true
}
],
"factory_id": 3
}
Your feedback is appreciated!