Skip to content

Commit

Permalink
resolved #1
Browse files Browse the repository at this point in the history
  • Loading branch information
nbelchug committed Oct 26, 2022
1 parent 448f17f commit 3c822b5
Show file tree
Hide file tree
Showing 10 changed files with 49 additions and 7 deletions.
56 changes: 49 additions & 7 deletions 03.application-api-analysis.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
# 03. Application API analysis

## Task 1. Create a labeled/protected namespace

```bash
kubectl create namespace bookinfo
kubectl label namespace bookinfo istio-injection=enabled --overwrite
```

## Task 3. Deploy BookInfo Application

Run the following command to install the BookInfo application:
Expand Down Expand Up @@ -36,3 +29,52 @@ configmap/reviews-inject-config created
deployment.apps/reviews-inject-v1 created
```

## Task 4. Analyse API traffic on APIClarity

Open the web UI of APIClarity. Refresh the page if you don't find captured traffic.

![](./images/2022-10-26-14-26-51.png)

## Task 5. Reconstruct API schema.

Under the API inventory you will find three discovered APIs:

* reviews.bookinfo
* ratings.bookinfo
* details.bookinfo

![](./images/2022-10-26-14-30-47.png)

Use APIClarity's capability to reconstruct an OpenAPI schema based on the captured traffic.
Reconstruct the schema for the three APIs.


![](./images/2022-10-26-14-28-45.png)


Click all paths and approve review.

![](./images/2022-10-26-14-32-48.png)

Choose OAS V3

![](./images/2022-10-26-14-33-34.png)

Once the schema is generated, you can review it in Swagger.

![](./images/2022-10-26-14-34-23.png)

## Task 6. Analysis of API difference

Once a schema is loaded by the user or reconstructed by APIClarity,
The application is using to compare running traffic towards the blueprint.

Use the API Events page to find for traffic which does not respect the schema:

![](./images/2022-10-26-14-37-23.png)

Review an event with alert.

![](./images/2022-10-26-14-37-52.png)

To approve the diff,
Binary file added images/2022-10-26-14-26-51.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2022-10-26-14-28-45.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2022-10-26-14-30-47.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2022-10-26-14-32-23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2022-10-26-14-32-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2022-10-26-14-33-34.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2022-10-26-14-34-23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2022-10-26-14-37-23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/2022-10-26-14-37-52.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3c822b5

Please sign in to comment.