ap is a command-line tool for managing and interacting with the WSO2 API Platform. This document covers all Developer Portal sub-commands.
| Flag | Short Flag |
|---|---|
--org |
-O |
--display-name |
-n |
| openapi: 3.0.3 | |
| info: | |
| title: API Developer Portal Core API | |
| version: 1.0.0 | |
| description: > | |
| REST API for the WSO2 API Developer Portal Core, covering organization | |
| management, identity providers, API metadata, applications, subscriptions, | |
| API keys, SDK generation, billing, usage, and invoicing. | |
| license: | |
| name: Apache 2.0 |
| ###################### Filebeat Configuration Example ######################### | |
| # This file is an example configuration file highlighting only the most common | |
| # options. The filebeat.reference.yml file from the same directory contains all the | |
| # supported options with more comments. You can use it as a reference. | |
| # | |
| # You can find the full configuration reference here: | |
| # https://www.elastic.co/guide/en/beats/filebeat/index.html | |
| # For more available modules and options, please see the filebeat.reference.yml sample |
| upstream sslapi.am.wso2.com { | |
| server 127.0.0.1:9443; | |
| server 127.0.0.1:9444; | |
| ip_hash; | |
| #sticky learn create=$upstream_cookie_jsessionid | |
| #lookup=$cookie_jsessionid | |
| #zone=client_sessions:1m; | |
| } | |
| openapi: 3.0.1 | |
| info: | |
| title: Employees | |
| version: 1.0.0 | |
| servers: | |
| - url: http://34.69.70.249:8080/internal-operations/v1 | |
| security: | |
| - default: [] | |
| paths: | |
| '/employees/contract/{employee-name}': |
| openapi: 3.0.0 | |
| info: | |
| title: Vehicles | |
| description: A simple API to retrieve vehicle information. | |
| version: 1.0.0 | |
| servers: | |
| - url: https://686d3e17c9090c495385b953.mockapi.io | |
| description: Mock API server | |
| paths: | |
| /vehicles: |
| -- Start of IDENTITY Tables-- | |
| CREATE TABLE IF NOT EXISTS IDN_BASE_TABLE ( | |
| PRODUCT_NAME VARCHAR(20), | |
| PRIMARY KEY (PRODUCT_NAME) | |
| )ENGINE INNODB; | |
| INSERT INTO IDN_BASE_TABLE values ('WSO2 Identity Server'); | |
| CREATE TABLE IF NOT EXISTS IDN_OAUTH_CONSUMER_APPS ( | |
| ID INTEGER NOT NULL AUTO_INCREMENT, |
| #!/bin/bash | |
| wso2_is_host="localhost:9443" # Replace with your WSO2 IS hostname | |
| client_id="xxxxxxx" | |
| client_secret="xxxxxxx" | |
| redirect_uri="https://www.google.com" | |
| post_logout_redirect_uri="https://www.google.com" #For logout redirect | |
| state="mystate" #Optional state for logout | |
| scopes="openid profile roles" |
| const http = require('http'); | |
| const port = 3011; | |
| // Create an HTTP server | |
| const server = http.createServer((req, res) => { | |
| if (req.url === '/metrics/summary' && req.method === 'GET') { | |
| // Define the XML response content | |
| const xmlResponse = `<?xml version="1.0" encoding="UTF-8"?> | |
| <metrics> | |
| <summary> |