Skip to content

Quick check of the core API Connect functions - create an API, invoke it and review analytics

Notifications You must be signed in to change notification settings

ibm-apiconnect/quick-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

API Deploy Check

This script lets you do a quick validation to ensure the core functionality of API Connect is working as expected. The script will:

  • Generate a token for the API Connect Platform API
  • Create/update a product and API with a random 'eyecatcher' string
  • Invoke the API, looping until there is a successful response up to a limit.
  • Taking the global transaction id and api name, search for the record in Analytics relating to the successful call.

Installation

  1. Clone this repository

    git clone https://github.com/ibm-apiconnect/quick-check.git

  2. Install the requirements

    pip install -r requirements.txt

  3. Obtain the appropriate credentials for your API Connect deployment

  4. Run the script according to the Usage below

Usage

python api_deploy_check.py 
    -s, --server TEXT         Platform API hostname  [required]
    -o, --org TEXT            Organisation  [required]
    -c, --catalog TEXT        Catalog  [required]
    --verify / --no-verify    Verify certificates  [required]
    -f, --filename TEXT       Template API definition to use (default is set-variable.yaml)

API Manager Authentication - You can either use an API Key or username/password/realm to authenticate the script to API Manager.

    -a, --apikey
    -u, --username
    -p, --password
    -r, --realm
    --client_id TEXT      client id required to retrieve a bearer token from apim
    --client_secret TEXT  client secret required to retrieve a bearer token from apim

The client id and secret can be obtained from the Tools for Download page in API Manager where you can obtain the Toolkit credentials which will download a credentials.json file containing these values.

About

Quick check of the core API Connect functions - create an API, invoke it and review analytics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages