From ab7e53e47f3b04de73ac3627a90d7a954b421337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Fri, 8 Nov 2019 15:26:35 +0100 Subject: [PATCH] add a section on importers --- .../content/automate/exercise-git.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lab-instructions/content/automate/exercise-git.md b/lab-instructions/content/automate/exercise-git.md index 35c3e8b..356f529 100644 --- a/lab-instructions/content/automate/exercise-git.md +++ b/lab-instructions/content/automate/exercise-git.md @@ -20,3 +20,23 @@ In this exercise, you will create a GIT repository and publish your API contract - In the **Resource** field, type `openapi.yaml` - Fill-in the commit message with something relevant - Click **Publish API** + +Now that you published your API Contract in a GIT repository, we can instruct Microcks to monitor it and reload the new API Contract in case it has been updated. + +- Go back to your [favourite GIT provider]({{< param github_url >}}) +- Navigate to your repository named **petstore-api** +- Open the **openapi.yaml** file +- Click the **raw** button +- Copy the current URL of your web browser, you will need it in a few moments. +- Open the [Microcks UI]({{< param microcks_url >}}) +- Click **Importers** in the left-side menu +- Click the **+ Create** button on the right side of the screen +- Fill-in the **Name** with something like `Petstore API ` +- Fill-in the **Repository URL** with the URL you copied previously +- Click **Next >** +- Enable the **Ignore certificate validity when accessing repository** checkbox +- Click **Next >** +- Next to your importer, click the orange rectangle named **Services** +- Click the service name to open the imported service + +Now, each time you publish a new version of the API Contract in your GIT repository, the updated version will appear automatically in Microcks.