return ID of resource set in Location URL by calling the right object

multiparty
Justin Richer 2015-12-10 16:23:15 -05:00
parent c4e734b1a8
commit 99b58827c6
1 changed files with 1 additions and 1 deletions

View File

@ -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;