Skip to main content

Introduction

This document explains how to install a new portal on Apinizer API Developer Portal. The newly created API Developer Portal works as an independent structure from the default API Developer Portal. The new portal is provided in an isolated manner using the following components:
  • Separate Namespace
  • Separate Pod
  • Separate Secret
  • Separate Service
Thanks to this structure, each portal’s configuration and management can be maintained without affecting each other.

Pre-Installation Steps

Before starting the installation of Apinizer API Portal, make sure the following prerequisites are met:

Apinizer Installation

API Manager must be installed and running.
API Developer Portal module must be defined and active in your license key.

Installation Steps

API Portal installation can be done in two different ways depending on the Kubernetes management method:
  1. Automatic Installation: If Kubernetes management is done through Apinizer, installation can be done using the API Manager interface.
  2. Manual Installation: If Kubernetes management is not done through Apinizer, installation is done by applying manual manifest (YAML) files to the Kubernetes cluster and then connecting with API Manager.

3.1. Creating Token for Personal API Access

An authorized token is required to communicate with API Manager during installation. Token information can be obtained by creating a new token or using an existing token on the My Profile page. Staff tokens usually start with the apnz_ prefix.
You can create a new token by going to the My Profile page in API Manager for token creation.
Token Creation Screen

Token creation - Creating personal API token from My Profile page

3.2. API Developer Portal Installation

Apply only one of the following titles according to your management method.

3.2.1. API Developer Portal Installation (Through API Manager)

If Kubernetes management is done through Apinizer, make sure the “Kubernetes Management” option is active in the General Settings menu.
  1. Go to Administration → Server Management → Kubernetes Resources page in API Manager.
  2. Enable the new API Portal from the Deployment & Pods tab.
Kubernetes Resources Menu

Kubernetes Resources page - API Portal activation

  1. Make the necessary definitions for the new portal in the opened dialog window.
API Portal Installation Dialog

API Portal installation dialog - Configuring required settings

Portal ID Information: You can find the Portal ID information that will be requested during installation in Administration > Portal > Settings > Portal menu, on the relevant portal’s card.
Portal ID Location Configuration Parameters:
Java Options and Memory SettingFor the Java Options setting in the additional variables field:
  • Dynamic memory management is used instead of -Xmx and -Xms.
  • -XX:MaxRAMPercentage=75.0 is used by default (75% of container memory).
  • For a 1 GB limited pod, JVM Heap will be approximately 750 MB.

3.2.2. API Developer Portal Installation (Manual / Outside API Manager)

If Apinizer does not manage the Kubernetes cluster, you can perform manual installation by following the steps below.
Important: In this installation, a different naming such as apinizer-portal-2 is used to separate from the default portal.
Step 1: Creating Secret First, a Kubernetes Secret containing API Manager access information and Portal ID must be created.
Step 2: Creating Secret File Create the api-portal-secret-2.yaml file with the following content.
Apply the created secret file:
Step 3: Creating Deployment and Service Create the apinizer-portal-deployment-2.yaml file with the following content. This file contains both Deployment and Service definitions.
Apply the created deployment and service file:

3.3. Integration of API Developer Portal with API Manager

Important: Up to this stage, the technical installation of the portal is completed, but integration must be completed for API viewing and authorization operations.
Go to Portal → Settings → Portal page in API Manager and make the definitions appropriate for your organization. You can review the Portal Settings documentation for detailed information.

3.4. Starting API Developer Portal with SSL

If desired, API Developer Portal can be opened for secure access (HTTPS) with SSL certificate. You can review the API Developer Portal SSL Configuration documentation for detailed information.

Access

After the above steps are completed and Pods on Kubernetes reach Running status, you can access the new portal from the following address: