I have seen documentation around it only shows how to delete using url but it doesn't show how to pass in parameters to delete only that specific item in the json array?
Calling the delete function:
main() {
HttpClient httpClient = new HttpClient();
httpClient.delete( '35.186.145.243', 8080, '/users');
httpClient.close();
return "Success";
}
Parameters that need to be passed in are:
- String
user_id
- String
price
JSON array:
{
"user_id": "user2",
"price": "$34"
}