同步操作将从 寒松/camel-spring-boot-examples2 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
This example shows how to call a REST service defined using Swagger specification with the help of Camel Rest Swagger component.
The example is a standalong Spring Boot application that acts as a REST client, you can run simply by issuing:
$ mvn spring-boot:run
Or by packaging it and running it using java
CLI:
$ mvn package $ java -jar target/camel-example-spring-boot-rest-swagger-simple-*.jar
The example by default uses the PetStore demo hosted on swagger.io and
invokes the getInventory
operation. You can make it call any API
that you have Swagger specification for and any operation with simple
arguments, for instance this retrives a pet from the PetStore demo with
ID 14
:
$ java -jar target/camel-example-spring-boot-rest-swagger-simple-*.jar \ --swagger=https://petstore.swagger.io/v2/swagger.json \ --operation=getPetById \ --petId=14
If you hit any problem using Camel or have some feedback, then please let us know.
We also love contributors, so get involved :-)
The Camel riders!
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。