Skip to content

adaptris-labs/build-parent-json-csv

Repository files navigation

build-parent-json-csv

Actions Status

The suggested name was supreme-giggle

This showcases using interlok-build-parent; with an actual real world deploy-able example for you.

What it does

  • jetty workflow that accepts a JSON Array, and returns you back CSV

    • If the channel is started then curl -si -XPOST -d'[{"column1": "line1"}, {"column1": "line2"}]' http://localhost:8080/api/csv will give you some data
  • there is a service-test.xml which tests the json-array-csv service

  • there is limited error handling such that if you give it a non-json-array; it gives you a json stacktrace.

Getting started

  • ./gradlew clean build

  • (cd ./build/distribution && java -jar lib/interlok-boot.jar)

  • Login to the UI as usual via (http://localhost:8080/interlok); note that the adapter is started but the channel is stopped

  • Kill everything

  • ./gradlew -PbuildEnv=dev clean build

  • (cd ./build/distribution && java -jar lib/interlok-boot.jar)

  • Login to the UI as usual; the adapter is started and channel is now started

  • You can now also use the service-tester page.

By specifying a build environment, you are effectively copying variables-local-dev.properties to variables-local.properties in your output directory; this means that the channel is now marked as autostart=true; Also, with the buildEnvironment set to be dev, you can use the service tester page in the UI, since the service tester jar files are now included as part of the distribution.

About

The suggested name was supreme-giggle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published