@PermitAll @PUT @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML}) @Mapped(namespaceMap = {@XmlNsMap(namespace = "http://emf-rest.com/proxy", jsonName = "proxy")}) public void updateDaughter(DaughterImpl object) { resourceSaver.put(EcoreUtil.getIdentification(instance), object); }
@PermitAll @DELETE @Mapped(namespaceMap = {@XmlNsMap(namespace = "http://emf-rest.com/proxy", jsonName = "proxy")}) public void deleteDaughter() { resourceSaver.remove(EcoreUtil.getIdentification(instance)); }