return location on header

This commit is contained in:
Ezequiel Bergamaschi 2014-02-10 00:58:42 -03:00
parent 5733dbf45e
commit 83e51a6501

View File

@ -53,6 +53,7 @@ public class LabelController extends BaseController {
final Label label = createLabel(restLabel);
// Return the new created label ...
response.setHeader("Location", "/service/labels/" + label.getId());
response.setHeader("ResourceId", Integer.toString(label.getId()));
}