Is it possible to have one single endpoint and be able to receive two different objects (but just one, either object1 or object2)?
I don't really mind how it would end up looking in code, all I care is the calling user to be able to call the same endpoint with either of the object types, and well, obviously a way to know which object i'm getting by either having two separate methods or if is the same a way to know which one was sent.
I am not sure how to be more specific, or if there's something else I should mention. Let me know and I'll edit if that is the case.