首页 文章

如何将Swagger与Maven Jersey jboss EAP 6.2集成

提问于
浏览
0

我已经为jboss7.2完成了针对泽西REST服务的代码 . 下面是我的REST与swagger anotation . 但是我不能为样本休息服务生成swagger doc . 任何人都可以帮助我逐步使用swagger生成休息文档

@Api(value="Employee" ,description="manage Emnployee")
@Path("/employee")
public class TestServices {
    @Path("/get/{id}")
    @GET
    @Produces(MediaType.APPLICATION_JSON)
    @ApiOperation(value="List all people", notes="List all people using paging")
    public Response getEmployee(@PathParam("id") String empId){
        System.out.println("Employee ID : "+empId);
        Empolyee emp= new Empolyee(empId, "SAnjay");
        return Response.status(200).entity(emp).build();
    }

1 回答

相关问题