@Path("/{id}") @PUT @Produces(javax.ws.rs.core.MediaType.APPLICATION_JSON) @ApiOperation( value = "updates existing company", httpMethod = "PUT", notes = "updates existing company") public Status updateCompany( @ApiParam(name = "id", value = "Id of the company needs to be updated", required = true) @PathParam("company_id") long companyId, @ApiParam(name = "company", value = "Company Object needs to be updated", required = true) Company company) { return companyServiceImpl.updateCompany(companyId, company); }