return ID of resource set in Location URL by calling the right object
parent
c4e734b1a8
commit
99b58827c6
|
@ -122,7 +122,7 @@ public class ResourceSetRegistrationEndpoint {
|
|||
|
||||
m.addAttribute(HttpCodeView.CODE, HttpStatus.CREATED);
|
||||
m.addAttribute(JsonEntityView.ENTITY, saved);
|
||||
m.addAttribute(ResourceSetEntityAbbreviatedView.LOCATION, config.getIssuer() + URL + "/" + rs.getId());
|
||||
m.addAttribute(ResourceSetEntityAbbreviatedView.LOCATION, config.getIssuer() + URL + "/" + saved.getId());
|
||||
|
||||
return ResourceSetEntityAbbreviatedView.VIEWNAME;
|
||||
|
||||
|
|
Loading…
Reference in New Issue