Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Catalog doc to be aligned to v2 #3145

Merged
merged 1 commit into from
Oct 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
139 changes: 75 additions & 64 deletions docs/user-guide/api-mediation/api-catalog-configuration.md
Original file line number Diff line number Diff line change
@@ -1,84 +1,95 @@
<!-- omit in toc -->
# Advanced API Catalog features configuration

As a system programmer who wants to configure advanced API Catalog features of the API Mediation Layer, you can customize API Catalog parameters by modifying the file `<Zowe install directory>/components/api-catalog/bin/start.sh`.
As a system programmer who wants to configure advanced API Catalog features of the API Mediation Layer, you can customize API Catalog parameters by modifying the `zowe.yaml` file.

- [API ML configuration](#api-ml-configuration)
**Note:** Restart Zowe to apply changes to the parameter.

Follow the procedures in the following sections to customize API Catalog parameters according to your preferences:

- [Hide service information](#hide-service-information)
- [API Catalog branding](#api-catalog-branding)
<!-- TODO This document should be updated to reflect the settings that can be updated in zowe.yaml -->

## API ML configuration
## Hide service information

1. Open the file `zowe.yaml`.
2. Configure the following properties:

* **apiml.catalog.hide.serviceInfo**
* **apiml.catalog.hide.serviceInfo**

This parameter is used to hide the instance URL value of all services registered to the API ML in the API Catalog. This customization can be useful when the service owner does not want to expose sensitive information such as the hostname.
This parameter is used to hide the instance URL value of all services registered to the API ML in the API Catalog. This customization can be useful when the service owner does not want to expose sensitive information such as the hostname.

Set the value of the `*apiml.catalog.hide.serviceInfo` parameter to `true` to hide the instance URL for all services registered to the API Catalog.
Set the value of the `*apiml.catalog.hide.serviceInfo` parameter to `true` to hide the instance URL for all services registered to the API Catalog.

In your Zowe YAML configuration (typically `zowe.yaml`), set this parameter by defining `configs.apiml.catalog.hide.serviceInfo`.
In your Zowe YAML configuration (typically `zowe.yaml`), set this parameter by defining `configs.apiml.catalog.hide.serviceInfo`.

Follow this example to define this parameter globally.
Follow this example to define this parameter globally.

**Example:**
**Example:**

```yaml
configs:
apiml:
catalog:
hide:
serviceInfo: true
```
```yaml
configs:
apiml:
catalog:
hide:
serviceInfo: true
```

An alternative is to define this parameter only for a high availability instance on lpar1.
An alternative is to define this parameter only for a high availability instance on lpar1.

**Example:**
**Example:**

```yaml
haInstances:
lpar1:
configs:
apiml:
catalog:
hide:
serviceInfo: true
```
```yaml
haInstances:
lpar1:
configs:
apiml:
catalog:
hide:
serviceInfo: true
```
3. Restart Zowe.

## API Catalog branding

It is possible to customize the logotype and selected style options directly in `zowe.yaml`. The following properties can be set under `apiml.catalog.customStyles`:

- **logo**
Specifies the location of the logo that will replace the default Zowe logo in the API Catalog header. The supported image formats are: `svg`, `png` and `jpg/jpeg`.
- **titlesColor**
Specifies the title color.
- **fontFamily**
Specifies the font family to use across the API Catalog.
- **headerColor**
Specifies the HTML color of the header element in the API Catalog home page
- **backgroundColor**
Specifies the HTML color of the main background across the API Catalog
- **textColor**
Specifies the HTML color of the main text across the API Catalog
- **docLink**
Specifies a custom link to be displayed in the header. Use this property to refer to applicable documentation. The format is `<link_name>|<link_url>`
**Example:** `docLink: Custom Documentation|https://somedoc.com`

Follow this example to define this parameter globally.

**Example:**

```yaml
configs:
apiml:
catalog:
customStyles:
logo: /path/to/logo.png
titlesColor: #F7190E
fontFamily: Roboto
headerColor: grey
backgroundColor: #FFFFFF
textColor: blue
docLink: Custom Documentation|https://somedoc.com
```
It is possible to customize the logotype and selected style options directly in `zowe.yaml`.

1. Open the file `zowe.yaml`.
2. Configure the following properties by setting them under `ZWE_configs_apiml_catalog_customStyles`:

- **logo**
Specifies the location of the logo that will replace the default Zowe logo in the API Catalog header. The supported image formats are: `svg`, `png` and `jpg/jpeg`.
- **titlesColor**
Specifies the title color.
- **fontFamily**
Specifies the font family to use across the API Catalog.
- **headerColor**
Specifies the HTML color of the header element in the API Catalog home page
- **backgroundColor**
Specifies the HTML color of the main background across the API Catalog
- **textColor**
Specifies the HTML color of the main text across the API Catalog
- **docLink**
Specifies a custom link to be displayed in the header. Use this property to refer to applicable documentation. The format is `<link_name>|<link_url>`
**Example:** `docLink: Custom Documentation|https://somedoc.com`

Follow this example to define this parameter globally.

**Example:**

```yaml
configs:
apiml:
catalog:
customStyles:
logo: /path/to/logo.png
titlesColor: #F7190E
fontFamily: Roboto
headerColor: grey
backgroundColor: #FFFFFF
textColor: blue
docLink: Custom Documentation|https://somedoc.com
```

Properties in the example that are not set default to Zowe API Catalog css values.
Properties in the example that are not set default to Zowe API Catalog css values.
3. Restart Zowe.
Loading