Contents

Popular

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Register New Developer

This request adds a new developer based on the JSON provided in the body of the message.

URI/developers
HTTPPOST

Sample

...

Registering New Application and Editing Existing Application

This request registers a new application if not registered previously and also as well as edits an application that is already present.

...

List Application based on Query parameter

Lists This request lists names of application applications listed for client Id provided in the Query Parameter.

...

List Application based on Path parameter

Lists This request lists details of the application applications for theApplication Id ID provided in the URI.

URI/applications/{applicationId}
HTTPGET

...

 This request removes an existing application based on the Application Id ID provided in URI.

URI/applications/{applicationId}
HTTPDELETE

...

Code Block
titleResponse
{
    "response": {
        "message": "Unregister Successful",
        "success": true
    }
}

Register Product

Register Product in This request registers a Product within the Application with Application Id ID provided in the URI. 

Info

The product added will be based on the Product Id ID provided in the POST body.

URI/applications/{applicationId}/products
HTTPPOST

...

Code Block
titleResponse
{
    "subscriptions": [
        {
            "consumerKey": "peIr-iMKqpDgWegyKEOpqPkC",
            "consumerSecret": "hdEiQiRsQIKlhBcpZBRztvsKSoOylYru"
        }
    ]
}

List Products

List request lists Products based on the access level provided in the Query Parameter.

URI/products
HTTPGET
Query Parameteraccesslevel

...

Code Block
titleResponse
{
    "products": [
        {
            "accessLevel": "PUBLIC",
            "apis": [
                "test__1.0"
            ],
            "description": "p1",
            "environments": [
                "Development"
            ],
            "name": "p1",
            "productId": "p1",
            "subscribed": false
        },
        {
            "accessLevel": "PUBLIC",
            "apis": [
                "test__1.0"
            ],
            "description": "p2",
            "environments": [
                "Development"
            ],
            "name": "p2",
            "productId": "p2",
            "subscribed": false
        }
    ]
}

List APIs

List This request lists APIs based on the API ID Provided in the URI.

...

Code Block
titleResponse
{
    "api": {
        "projectDocument": {
            "basePath": "test/1.0",
            "resourceDocs": {
                "DefaultResource": {
                    "customParams": {},
                    "method": "GET",
                    "parameters": {},
                    "path": ""
                }
            },
            "status": "ACTIVE",
            "version": "1.0"
        }
    }
}

Return JSON for APIs

Return This request returns JSON for APIs based on the API ID provided in the URI.

...

Code Block
titleResponse
{"message":"{\"basePath\":\"\\/test\\/1.0\",\"host\":\"localhost\",\"paths\":{\"\\/\":{\"get\":{\"operationId\":\"DefaultResource\",\"responses\":{\"200\":{\"description\":\"Successful response\"}}}}},\"swagger\":\"2.0\",\"info\":{\"version\":\"1.0\",\"title\":\"test\"}}"}

Deploy Project

Deploy This request deploys a Project based on the Project ID, Version and Server Group provided in the URI.

Info

Server Group is the Gateway server name where products will be are deployed.

 

URI/apis/{projectId}/{version}/deploy/{ServerGroup}
HTTPPUT

...

Code Block
titleResponse
{
    "deployStatus": {
        "APIGATEWAY": {
            "status": "success",
            "exception": ""
        }
    }
}

UnDeploy Project

UnDeploy This request undeploys a project based on the Project ID, Version and Server Groups provided in the URI.

URI/apis/{projectId}/{version}/undeploy/{ServerGroup}
HTTPPUT

...

Code Block
titleResponse
{
    "deployStatus": {
        "APIGATEWAY": {
            "status": "success",
            "exception": ""
        }
    }

List Server Group URL

Lists This request lists the URL of the Server Group provided in the URI.

URI/ServerGroupsenviornments/{ServerGroupEnvironment}/urls
HTTPGET

Response

Code Block
titleResponse
{
 "urls": [
 "http://192.168.2.46:2160"
 ]
}
Adaptavist ThemeBuilder EngineAtlassian Confluence