【文件属性】:
文件名称:graphql-example:MicroProfile GraphQL示例
文件大小:3.02MB
文件格式:ZIP
更新时间:2021-05-05 06:23:04
graphql wildfly microprofile quarkus smallrye
MicroProfile GraphQL示例
这是使用的的。 作为这些博客文章的一部分已完成:
这些是:
即将召开:Java开发人员20年全球峰会
REST和GraphQL都公开了这些服务以进行比较。
人的例子
此示例显示人员数据以及该人员针对某些活动获得的分数。
在Quarkus中运行
(从生成)
cd quarkus-example
mvn clean install quarkus:dev
在Wildfly中运行
cd wildfly-example
mvn clean install wildfly:run
这将在端口8080上启动应用程序。
测验
转到http:// localhost:8080测试该应用程序。
单击“ REST”链接以打开Swagger UI来测试JAX-RS服务。
单击“ GraphQL”链接以打开GraphiQL UI来测试MicroProfil