I'm trying to add a REST endpoint that mirrors the standard $JOB_URL/buildWithParameters but supports additional URL parameters that I'll translate to a cause when starting a build.
I've created an Action containing
@RequirePOST @WebMethod(name = "") public void doBuildWithEiffelLinks(...) { ... }
public String getUrlName() { return "buildWithEiffelLinks"; }
and with that a POST to $JOB_URL/buildWithEiffelLinks/ works, but if I omit the trailing slash a 302 response is returned. Is there a way to attach the webmethod to the root of the item or do I have to live with the trailing slash or use a URL like $JOB_URL/eiffel/buildWithLinks? Or is this the wrong approach entirely?
Thanks,
Magnus