WSO2 · Schema

API Info object with basic API details.

APIInfo schema from WSO2 API Manager

API ManagementGatewaysOpen SourceAPI LifecycleGraphQLSOAPREST

Properties

Name Type Description
id string
name string
displayName string Display name of the API. This is the name that will be displayed in the Publisher and DevPortal. If not provided, the name will be used as the display name.
description string
context string
version string
type string
createdTime string
provider string If the provider value is not given, the user invoking the API will be used as the provider.
lifeCycleStatus string
thumbnailUri string
avgRating string Average rating of the API
throttlingPolicies array List of throttling policies of the API
advertiseInfo object
businessInformation object
isSubscriptionAvailable boolean
monetizationLabel string
gatewayType string
gatewayVendor string
additionalProperties array Custom(user defined) properties of API
monetizedInfo boolean
egress boolean Whether the API is Egress or not
subtype string Subtype of the API.
View JSON Schema on GitHub

JSON Schema

devportal-api-api-info-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wso2/refs/heads/main/json-schema/devportal-api-api-info-schema.json",
  "title": "API Info object with basic API details.",
  "description": "APIInfo schema from WSO2 API Manager",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "01234567-0123-0123-0123-012345678901"
    },
    "name": {
      "type": "string",
      "example": "CalculatorAPI"
    },
    "displayName": {
      "type": "string",
      "example": "Calculator API",
      "description": "Display name of the API.\nThis is the name that will be displayed in the Publisher and DevPortal.\nIf not provided, the name will be used as the display name.\n"
    },
    "description": {
      "type": "string",
      "example": "A calculator API that supports basic operations"
    },
    "context": {
      "type": "string",
      "example": "CalculatorAPI"
    },
    "version": {
      "type": "string",
      "example": "1.0.0"
    },
    "type": {
      "type": "string",
      "example": "WS"
    },
    "createdTime": {
      "type": "string",
      "example": 1614020559444
    },
    "provider": {
      "type": "string",
      "description": "If the provider value is not given, the user invoking the API will be used as the provider.\n",
      "example": "admin"
    },
    "lifeCycleStatus": {
      "type": "string",
      "example": "PUBLISHED"
    },
    "thumbnailUri": {
      "type": "string",
      "example": "/apis/01234567-0123-0123-0123-012345678901/thumbnail"
    },
    "avgRating": {
      "type": "string",
      "description": "Average rating of the API",
      "example": "4.5"
    },
    "throttlingPolicies": {
      "type": "array",
      "description": "List of throttling policies of the API",
      "example": [
        "Unlimited",
        "Bronze"
      ],
      "items": {
        "type": "string"
      }
    },
    "advertiseInfo": {
      "$ref": "#/components/schemas/AdvertiseInfo"
    },
    "businessInformation": {
      "$ref": "#/components/schemas/APIBusinessInformation"
    },
    "isSubscriptionAvailable": {
      "type": "boolean",
      "example": false
    },
    "monetizationLabel": {
      "type": "string",
      "example": "Free"
    },
    "gatewayType": {
      "type": "string",
      "example": "solace"
    },
    "gatewayVendor": {
      "type": "string",
      "example": "WSO2"
    },
    "additionalProperties": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "display": {
            "type": "boolean"
          }
        }
      },
      "description": "Custom(user defined) properties of API\n",
      "example": {}
    },
    "monetizedInfo": {
      "type": "boolean",
      "example": true
    },
    "egress": {
      "type": "boolean",
      "description": "Whether the API is Egress or not",
      "default": false,
      "example": true
    },
    "subtype": {
      "type": "string",
      "description": "Subtype of the API.",
      "default": "DEFAULT",
      "example": "AIAPI",
      "readOnly": true
    }
  }
}