Chapter 2. Adding API Designer as a service to your OpenShift Cluster 2.1. Adding API Designer as a service to an OpenShift 4 project For OpenShift 4.x, you need to verify that your OpenShift administrator has installed the API Designer operator in your project as described in the Fuse on OpenShift Guide . Optionally, the OpenShift administrator might have also added the API Designer as a service to the project. If not, you must do that task. Note A name for API Designer, Apicurito , is still visible in the API Designer operator's interface. Prerequisite Your OpenShift administrator has installed the API Designer operator in your OpenShift project. Procedure In your web browser, open the OpenShift console and log in with your credentials (for example, username developer and password developer ). Select the project that includes the API Designer operator. Select Topology and verify that you see an icon that is labeled fuse-apicurito . If there are icons for apicurito-service-ui and apicurito-service-generator then your OpenShift administrator already added the API Designer as a service to the project and you can skip the rest of these steps. If there are no icons for apicurito-service-ui and apicurito-service-generator , continue to the step. In the left navigation pane, click Add+ . Under the Developer Catalog section, click Operator Backed . In the search field, type Apicurito to filter the catalog items. Click the Apicurito provided by Red Hat card. Click Create . A default form with a minimal starting template for the API Designer instance opens. Accept the default values or, optionally, edit them. Click Create to trigger the start up of the pods, services, and other components of the new API Designer instance. To verify that the API Designer service is added to the project, select Topology and then confirm that you see icons for apicurito-service-ui and apicurito-service-generator . To open the API designer, click the URL link on the apicurito-service-ui icon. 2.2. Adding API Designer as a service to an OpenShift 3.11 project You can add API Designer as a service to your OpenShift 3.11 project by deploying the API Designer template from the command line. Prerequisites Obtain the hostname that will allow you to access API Designer by following the guidelines recommended by your OpenShift system administrator. Verify that the Fuse on OpenShift images and templates, including apidesigner-ui and fuse-apidesigner-generator , are installed on your OpenShift cluster, by running the following command in a command window: If the images and templates are not pre-installed, or if the provided versions are out of date, install (or update) the Fuse on OpenShift images and templates as described in the Fuse on OpenShift Guide . Procedure To add the API Designer service from the command line: In a command window, log in to the OpenShift server: Create a new project namespace. For example, the following command creates a new project named myproject : Create a new application based on the API Designer template by running the following command (where myproject is the name of your project): Note: Optionally, you can specify other template parameters by appending additional -p options to the oc new-app command. For example, if you installed the Fuse on OpenShift images and templates in a namespace other than the default openshift namespace, you can set the IMAGE_STREAM_NAMESPACE to specify the namespace in which the Fuse image streams are installed: Obtain the status and the URL of your API Designer deployment by running this command: If the API Designer is not deployed, run the following command to verify that you installed the correct versions of the apicurito-ui and fuse-apicurito-generator images: To access the API Designer from a browser, use the provided URL (for example, https://apicurito.192.168.64.12.nip.io ).

Commands:
get is -n openshift
login -u developer -p developer
new-project myproject
new-app -n myproject -f https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.0.fuse-7_13_0-00014-redhat-00001/fuse-apicurito.yml -p ROUTE_HOSTNAME=myhost
new-app -n myproject -f https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.0.fuse-7_13_0-00014-redhat-00001/fuse-apicurito.yml -p ROUTE_HOSTNAME=myhost -p IMAGE_STREAM_NAMESPACE=othernamespace
status
get is -n openshift | grep "apicurito"