return ID of resource set in Location URL by calling the right object
parent
1596b6b9e7
commit
d120e8fb20
|
@ -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