diff --git a/fiat-api/src/main/java/com/netflix/spinnaker/fiat/shared/FiatService.java b/fiat-api/src/main/java/com/netflix/spinnaker/fiat/shared/FiatService.java index b8b5a7e1a..6206c1503 100644 --- a/fiat-api/src/main/java/com/netflix/spinnaker/fiat/shared/FiatService.java +++ b/fiat-api/src/main/java/com/netflix/spinnaker/fiat/shared/FiatService.java @@ -58,8 +58,8 @@ Response hasAuthorization( * @param resourceType The type of the resource * @param resource The resource to check */ - @POST("/authorize/{userId}/{resourceType}") - void canCreate( + @POST("/authorize/{userId}/{resourceType}/create") + Response canCreate( @Path("userId") String userId, @Path("resourceType") String resourceType, @Body Object resource); diff --git a/fiat-web/src/main/java/com/netflix/spinnaker/fiat/controllers/AuthorizeController.java b/fiat-web/src/main/java/com/netflix/spinnaker/fiat/controllers/AuthorizeController.java index 33f781f38..2b685110a 100644 --- a/fiat-web/src/main/java/com/netflix/spinnaker/fiat/controllers/AuthorizeController.java +++ b/fiat-web/src/main/java/com/netflix/spinnaker/fiat/controllers/AuthorizeController.java @@ -188,7 +188,7 @@ public void getUserAuthorization( response.setStatus(HttpServletResponse.SC_NOT_FOUND); } - @RequestMapping(value = "/{userId:.+}/{resourceType:.+}", method = RequestMethod.POST) + @RequestMapping(value = "/{userId:.+}/{resourceType:.+}/create", method = RequestMethod.POST) public void canCreate( @PathVariable String userId, @PathVariable String resourceType,