This project implements Fuse specific project generators that the Apicurito project can be configured to use.
mvn clean package
java -jar target/fuse-apicurito-generator-*-SNAPSHOT.jar
Assuming you create an open OpenAPI file called api.json
and you want
to generate file called example.zip
, then you would run the following:
curl -s -X POST -H "Content-Type: application/json" \
-d @api.json http://localhost:8080/api/v1/generate/camel-project.zip \
-o example.zip
If you want to just test against the Swagger Petstore API, you run:
curl -s http://localhost:8080/api/v1/generate/camel-project.zip \
-o example.zip
See the README.md
in zip file for more details about the generate project.
mvn -P image
mvn -P deployment
Firstly lets figure out the hostname where the service is running:
APPHOST=$(oc get route fuse-apicurito-generator --template={{.spec.host}})
Assuming you create an open OpenAPI file called api.json
and you want
to generate file called example.zip
, then you would run the following:
curl -s -X POST -H "Content-Type: application/json" \
-d @api.json http://$APPHOST/api/v1/generate/camel-project.zip \
-o example.zip
If you want to just test against the Swagger Petstore API, you run:
curl -s http://$APPHOST/api/v1/generate/camel-project.zip \
-o example.zip
See the README.md
in zip file for more details about the generate project.
mvn clean package -Dfabric8.mode=kubernetes fabric8:build
docker push apicurio/fuse-apicurito-generator:latest