Route.java
rest("/orders").description("Content Base Router Example")
.get("/")
.route().routeId("get-all-orders")
.log("processing your request")
.wireTap("direct:process-request")
.setBody().simple("processing your request");
Route.java
rest("/orders").description("Content Base Router Example")
.get("/")
.route().routeId("get-all-orders")
.log("processing your request")
.wireTap("direct:process-request")
.setBody().simple("processing your request");
| { | |
| "swagger": "2.0", | |
| "info": { | |
| "version": "1.0.0", | |
| "title": "Open Data API", | |
| "description": "The Open Data API specifications allow API providers (e.g. banks, building societies and ATM providers) to develop API endpoints which can then be accessed by API users (e.g. third party developers) to build mobile and web applications for banking customers.", | |
| "contact": {} | |
| }, | |
| "host": "api.openbankproject.com", | |
| "basePath": "/obp/v3.1.0", |
| #!/usr/bin/env bash | |
| # export PORT=4200 | |
| export INCIDENT="https://incidents-api-3scale-apicast-production.apps.753d.openshift.opentlc.com" | |
| export ALERT="http://alert-service-naps-emergency-response.apps.753d.openshift.opentlc.com" | |
| export RESPONDER="https://responder-api-3scale-apicast-production.apps.753d.openshift.opentlc.com" | |
| export MISSION="https://mission-api-3scale-apicast-production.apps.753d.openshift.opentlc.com" | |
| export PROCESS_VIEWER="http://process-viewer-naps-emergency-response.apps.753d.openshift.opentlc.com" | |
| export AUTH_URL="https://sso-naps-emergency-response.apps.753d.openshift.opentlc.com/auth" | |
| export KEYCLOAK="true" |
URL de acesso deste documento: https://bit.ly/2Gxq0AJ
| spec: | |
| replicas: 1 | |
| template: | |
| spec: | |
| containers: | |
| - | |
| resources: | |
| requests: | |
| cpu: "0.2" | |
| memory: 256Mi |
| # setup dev env | |
| oc import-image wildfly --from=openshift/wildfly-120-centos7 --confirm -n ${DEV_PROJECT} | |
| # dev | |
| oc new-build --name=tasks --image-stream=wildfly:latest --binary=true -n ${DEV_PROJECT} | |
| oc new-app tasks:latest --allow-missing-images -n ${DEV_PROJECT} | |
| oc set triggers dc -l app=tasks --containers=tasks --from-image=tasks:latest --manual -n ${DEV_PROJECT} | |
| # stage | |
| oc new-app tasks:stage --allow-missing-images -n ${STAGE_PROJECT} |
| oc login -u system:admin | |
| oc new-project ons-poc | |
| oc policy add-role-to-user admin developer -n ons-poc | |
| # Setup AMQ 7.x (Based on Artemis Community Project) | |
| # - Image streams | |
| oc create -f https://raw.githubusercontent.com/jboss-container-images/jboss-amq-7-broker-openshift-image/amq-broker-72/amq-broker-7-image-streams.yaml -n openshift | |
| oc create -f https://raw.githubusercontent.com/jboss-container-images/jboss-amq-7-broker-openshift-image/amq-broker-72/amq-broker-7-scaledown-controller-image-streams.yaml -n openshift | |
| oc create -f https://raw.githubusercontent.com/jboss-container-images/jboss-amq-7-broker-openshift-image/amq-broker-72/templates/amq-broker-72-persistence.yaml -n openshift | |
| # - Template |
| <header class="jumbotron page-header"> | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="col-md-12"> | |
| <h1>Echo API</h1> | |
| </div> | |
| </div> | |
| </div> | |
| </header> |