API Portal Customization
Tags: api, configuration, administration, tutorial
Published: 2021-08-31 06:59:17

---
title: API Portal Customization
published: true
date: 2021-07-26 05:39:05 UTC
tags: #api, #configuration, #administration, #tutorial
canonical_url: https://tech.forums.softwareag.com/t/api-portal-customization/243146
---

## Introduction

This article explains how API users can customize the webMethods API Portal according to their organization’s needs/requirements.

### Audience

It is assumed that readers of this article know the basics of API Portal configurations Good Knowledge of HTML, CSS and Javascript is desired.

### Prerequisites

• Install and configure API portal  
• Should have API Administrator or System Role

## Introduction

webMethods API-Portal helps enterprises get their APIs in front of developers. The idea behind an API portal is to provide a lightweight consumer-orientated UI that is primarily designed to allow a provider to publish the APIs they want to expose to a consumer. At a higher level, it is a Web-based developer portal through which

- Developers can discover APIs
- Developers can test the APIs
- Developers can get commercial and technical usage information about APIs
- Developers can sign up, register for APIs and request API Keys
- API providers can advertise their APIs
- API provider and consumer can collaborate
- Tenant Management

webMethods API Portal is highly customizable. The portal can be completely rebranded to your company’s look and feel. You can change the predefined rendering templates that affect layout, fonts, styles, images, add your own content blocks and style sheets, include java widgets, and so on. You can even rearrange the navigation or include additional links.

## Customizing the portal:

In order to demonstrate the various customization and content representation capabilities of the API-Portal, the product by default ships a view called “sagtours” that contains customized pages for SAGTours company. Hence in our tutorial, we will try to create a view called “mysagtours” from the default “apiportal” view that looks similar to “sagtours”.

## API-Portal UI Framework:

A view (e.g. mysagtours) contains a set of pages, templates, components and set of other supporting resources. Users will make changes to these files within the view to alter the UI rendering of the API Portal. A page is the logical container of all the elements in a UI page. The page with the help of templates defines the layout of the elements in a UI. A page in turn can contain inner pages and components. The components are operational elements in the UI Eg. UI widgets, buttons, etc.

![01_API](https://aws1.discourse-cdn.com/techcommunity/original/3X/6/1/61e043987a49e07ebe1aafb20359eabacbbfa1e2.png)

The webMethods API Portal UI rendering behavior is defined using _Views._ The list of _Views_ can be found in the Administration UI. Out of the box, the API-Portal comes with two Views - _apiportal_ and _sagtours._ By default, _apiportal_ configuration is active and the user can select the _sagtours_ by clicking and activating the view.

![02_API](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/4/0/40c73d66f2a2340a1af49c24be59df2634a5eac8_2_690x186.png)

### Create a View:

The Administrator can choose to create his/her own View by selecting the “Create” button in the Views page. While creating the view, the Administrator should base it on the “apiportal” template. By basing it on “apiportal” template, the Administrator already has a fully functional view and he/she can start modifying the new view based on their requirements. For “mysagtours”, we will base it on “apiportal” view.

![03_API](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/f/4/f4dfc94a9a37a1652b8a5eeddad04dc44920c061_2_690x291.png)

## Activate the View :

Before proceeding to customization, the Administrator will have to _ **activate** _ the new view.

![04_API](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/1/a/1a0b96b2e5d5a5d4ddb5dbc56aa0507663863537_2_690x198.png)

## Customize the colors:

The Portal offers basic branding capabilities such as logo, color and font changes through the Administration UI.

![05_API](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/6/f/6f03f19c35e02f8ea82876b7b24f279410a25211_2_630x500.png)

## Customize the home page:

In order to customize the home page, we need to edit the “mysagtours” view as shown below

![06_API](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/3/c/3c44a852c742a9610095df7ea5f3c20b8af03a1b_2_690x218.png)

On clicking the edit button, we will get to the “Customization” page, where we get to see the pages available for editing

![07](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/f/d/fd071c1c4684f13d4eff7edcfa49adfb5a8dc63c_2_690x284.png)

User can click on any page which they want to modify, or they can upload their own CSS.

![08_API](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/7/e/7e4ff630ce546b2c660419a5eff967adda43eed1_2_690x310.png)

## Backup and Restore:

The views that are created can be backed up and restored. A typical case of backup and restore are

- To save/preserve the views against the system failures
- Allow third party or internal UI experts to build the customized API-Portal, take a backup and then restore the view into your system

![09_API](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/8/9/899306c7bd542e4c9b287f170b57ce3bf8efc897_2_690x212.png)

[Read full topic](https://tech.forums.softwareag.com/t/api-portal-customization/243146)