Getting started

On this page, you will go through :

Installing Microcks

Microcks may be installed in many ways depending your preferred environment. Basically, it can be installed using OpenShift, using Docker-Compose or directly using binary and source of Microcks.

Installing on OpenShift

The easiest way of installing Microcks is to do it on OpenShift. It is assumed that you have some kind of OpenShift cluster instance running and available. This instance can take several forms depending on your environment and needs :

Then you have to ensure that Microcks templates for OpenShift are added and available into your Cluster. Templates come in 2 flavors: ephemeral or persistent. In persistent mode, template will claim a persistent volume during instanciation, such a volume should be available to your team / project on OpenShift cluster. Add the templates, by using these commands :
oc create -f -n openshift
oc create -f -n openshift

Once this is done can now create a new project and instanciate the template of your choice ; either using the OpenShift web console or the command line.

oc new-project microcks --display-name="Microcks"
oc new-app --template=microcks-persistent

After some minutes and components have been deployed, you should end up with a Spring-boot Pod, a MongoDB Pod and a Postman-runtime Pod like in the screenshot below.

Now you can retrieve the URL of the created route using oc get routes command and navigate to this URL to get started with Microcks. Depending on your environment, URL should be something like

Installing using Docker Compose

For those of you familiar with simple Docker Compose, a docker-compose</source> file is available within GitHub repository and can be used to rapidly test up things. First step is to download the file and then to execute docker-compose with local copy like in this commands :

curl -o microcks-mongodb.yml
docker-compose -f microcks-mongodb.yml up -d

After some minutes and components have been deployed, you should end up with a Spring-boot container, a MongoDB container and a Postman-runtime container like in the trace below. The Microcks application is now available on http://localhost:8080 URL.

ยป docker ps
CONTAINER ID        IMAGE                                       COMMAND                  CREATED             STATUS              PORTS                    NAMES
65a8e05866fa        lbroudoux/microcks:latest                   "java '"   8 seconds ago       Up 5 seconds>8080/tcp   microcks
2fed928539f1        mongo:3.3.12                                "/ mo..."   9 minutes ago       Up 7 seconds        27017/tcp                microcks-mongo
8e7a71d0fc8d        lbroudoux/microcks-postman-runtime:latest   "node app.js"            9 minutes ago       Up 7 seconds        3000/tcp                 microcks-postman-runtime

Building from binary/sources

To Do ...

Using Microcks

Now you are ready to use Microcks for deploying your own services and API mocks! Before that let's have the look at the application home screen and introduce the main concepts. Using the application URL after installation, we should land on this page with 2 main entry points : Services and Jobs.

As you may have guessed, Services is about browsing your [micro]-services and API repository, discovering and accessing documentation, mocks and tests. Jobs is another concept dedicated on how to fill this repository: it allows to periodically scan your Git or Subversion repository for checking new definition files that will be parsed and integrated as part of your [micro]-services and API repository. Indeed Jobs help discover new or modified Services. Before creating your own service definition files, let load some samples into Microcks for a test ride.

Loading samples

We provide different samples that illustrate different ways of creating service definitions. The 2 firsts are definition files realized using SoapUI and demonstrating SOAP and REST services. The third one is a definition file built using Postman and demonstrating the famous Petstore API. Using the Jobs entry point from home screen or top navigation bar, use the Job management page to add 3 new jobs. For each, you will be asked a name and a repository URL. Use the informations below:

  • Hello SOAP Service :
  • Hello REST API :
  • Petstore API :
Now that you have created your Jobs, you have to Activate them (this make them eligible to a periodically check) and to Start them (this make a forced refresh right now). After some moments and a page refresh, you should see the status of Jobs changed like in screenshot below:

Viewing services

Once sample jobs have been loaded, new Services has been discovered and added to your repository. You can now visit the Services entry point from top navigation bar or home screen. You should see 3 new services with basic informations on version and operations/resources handled by this services.

Viewing details

Now choosing the Petstore API microservice, you'll be able to access details, documentation and request/response samples for each operation/resource in the screen below. One important information here is the Mocks URL field: this is the endpoint where Microcks automatically deploy a mock for this operation. The table just below show request/response couples and a detailed URL with the HTTP verb showing how to invoke this mock.

Using this URL, you can call the exposed mock for Petstore API using the following curl command :

curl ""

And you should receive the following response :


Ta Dam !

What's next?

Now that you have basic information on how to setup and use Microcks, you can go further with :