use of org.candlepin.model.Cdn in project candlepin by candlepin.
the class CdnResource method update.
@ApiOperation(notes = "Updates a CDN @return a Cdn object", value = "update")
@PUT
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("/{label}")
public CdnDTO update(@PathParam("label") String label, @ApiParam(name = "cdn", required = true) CdnDTO cdnDTOInput, @Context Principal principal) {
Cdn existing = verifyAndLookupCdn(label);
this.populateEntity(existing, cdnDTOInput);
cdnManager.updateCdn(existing);
return this.translator.translate(existing, CdnDTO.class);
}
Aggregations