class CweResource extends AlpineResource {

    @GET
    @Produces(MediaType.APPLICATION_JSON)
    @ApiOperation(
            value = "Returns a list of all CWEs",
            response = Cwe.class,
            responseContainer = "List",
            responseHeaders = @ResponseHeader(name = TOTAL_COUNT_HEADER, response = Long.class, description = "The total number of CWEs")
    )
    @PaginatedApi
    @ApiResponses(value = {
            @ApiResponse(code = 401, message = "Unauthorized")
    })
    public Response getCwes() {
        final PaginatedResult cwes = CweResolver.getInstance().all(getAlpineRequest().getPagination());
        return Response.ok(cwes.getObjects()).header(TOTAL_COUNT_HEADER, cwes.getTotal()).build();
    }

    @GET
    @Path("/{cweId}")
    @Produces(MediaType.APPLICATION_JSON)
    @ApiOperation(
            value = "Returns a specific CWE",
            response = Cwe.class
    )
    @ApiResponses(value = {
            @ApiResponse(code = 401, message = "Unauthorized"),
            @ApiResponse(code = 404, message = "The CWE could not be found")
    })
    public Response getCwe(
            @ApiParam(value = "The CWE ID of the CWE to retrieve", required = true)
            @PathParam("cweId") int cweId) {<FILL_FUNCTION_BODY>}

}

        final Cwe cwe = CweResolver.getInstance().lookup(cweId);
        if (cwe != null) {
            return Response.ok(cwe).build();
        } else {
            return Response.status(Response.Status.NOT_FOUND).entity("The CWE could not be found.").build();
        }
    
<no_super_class>