I'm sending json-formatted data to my Java server via http requests. I've had great success in receiving the requests with functions like
Boolean deleteUsers(List<Long> userIds) {
// ...
return true;
}
I'm using RESTEasy on a Java server, and it cheerfully converts the payload of the request into this List<Long>
that's so convenient.
Now I want to send a String and a list of numbers! Ideally, my receiving function would look something like
Boolean deleteUsers(String string, List<Long>userIds) {
// ....
return true;
}
Alas, RESTEasy doesn't seem to know what I mean, and chokes on the payload.
How can I receive multiple types of data from a payload?