I want to define 2 rest endpoints:
- POST on /a/{id}/c
- POST on /a/b/c
b here being a specific keyword. The reason I need separate endpoints is payloads are different for both
The problem is when I do a POST on /a/b/c, the request is going to the first and due to mismatch of payloads, failing
Can this be done in swagger? Is there better way to do this?