In my WebAPI being desinged, I have urls such as
https://<base_url>api/projects/{projectId}/samples/ (POST)
and I need to specify another method with POST and same base URL, that does things similarly to original, but accepts different payload and returns different payload. At the moment I have
https://<base_url>api/projects/{projectId}/samples/savemasscreation
"modification" but I am not sure it is a good API practice. What would be the best way to design a modifier for method without necessity to change the resource URL? What would be the best practice - use another HTTP verb, add ?optionalparameter to URL, or something else?
https://<base_url>api/customers/andhttps://<base_url>api/orders/(both being a POST for example).