I have to use different request descriptors for the same class (for different HTTP methods).
Use case is the following:
I have User
class with some attributes (properties), for example, identity, username, password, firstname, lastname
.
I want to use request descriptor for POST method, which uses all these fields, and another request descriptor for PUT method, which handles only firstname, lastname and password. (In this example, I don't want to modify identity and username).
How can I do this?
Thanks!