API
    • PDF

    API

    • PDF

    Article Summary

    Clone an api

    URL

    POST https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/clone
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10

    Request Body

    {
      "apiName" : "apiName",
      "apiDescription" : "apiDescription",
      "originApiId" : "originApiId"
    }
    

    Response Code

    • 201

    Response Body

    {
      "api" : {
        "apiName" : "apiName",
        "domainCode" : "domainCode",
        "productId" : "productId",
        "modifier" : "modifier",
        "permission" : "permission",
        "isDeleted" : true,
        "modTime" : "2000-01-23T04:56:07.000+00:00",
        "stages" : [ {
          "stageName" : "stageName",
          "isPublished" : true,
          "apiId" : "apiId",
          "stageId" : "stageId"
        } ],
        "tenantId" : "tenantId",
        "apiDescription" : "apiDescription",
        "disabled" : true,
        "apiId" : "apiId",
        "actionName" : "actionName"
      }
    }
    

    Create an api

    URL

    POST https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10

    Request Body

    {
      "apiName" : "apiName",
      "apiDescription" : "apiDescription"
    }
    

    Response Code

    • 201

    Response Body

    {
      "api" : {
        "apiName" : "apiName",
        "domainCode" : "domainCode",
        "productId" : "productId",
        "modifier" : "modifier",
        "permission" : "permission",
        "isDeleted" : true,
        "modTime" : "2000-01-23T04:56:07.000+00:00",
        "stages" : [ {
          "stageName" : "stageName",
          "isPublished" : true,
          "apiId" : "apiId",
          "stageId" : "stageId"
        } ],
        "tenantId" : "tenantId",
        "apiDescription" : "apiDescription",
        "disabled" : true,
        "apiId" : "apiId",
        "actionName" : "actionName"
      }
    }
    

    Delete an api

    URL

    DELETE https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10
    apiIdpathYStringApi Id
    Length(Min/Max): 0/10

    Request Body

    • None

    Response Code

    • 204

    Response Body

    • None

    Deploy An Api

    URL

    POST https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/deploy
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10
    apiIdpathYStringApi Id
    Length(Min/Max): 0/10

    Request Body

    {
      "deploymentDescription" : "deploymentDescription",
      "stageId" : "stageId"
    }
    

    Response Code

    • 200

    Response Body

    • None

    Search api by product id

    URL

    GET https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10
    offsetquery stringNLongOffset
    Min: 0
    Max: 9,223,372,036,854,775,807
    limitquery stringNLongLimit
    Min: 1
    Max: 9,223,372,036,854,775,807
    withStagequery stringNBooleanWith Stage
    apiNamequery stringNStringApi Name
    Length(Min/Max): 0/20
    hasStagequery stringNBooleanHas Stage
    hasStageNotAssociatedWithUsagePlanIdquery stringNStringHas Stage Not Associated With Usage Plan Id

    Request Body

    • None

    Response Code

    • 200

    Response Body

    {
      "total" : 0,
      "apis" : [ {
        "apiName" : "apiName",
        "domainCode" : "domainCode",
        "productId" : "productId",
        "modifier" : "modifier",
        "permission" : "permission",
        "isDeleted" : true,
        "modTime" : "2000-01-23T04:56:07.000+00:00",
        "stages" : [ {
          "stageName" : "stageName",
          "isPublished" : true,
          "apiId" : "apiId",
          "stageId" : "stageId"
        } ],
        "tenantId" : "tenantId",
        "apiDescription" : "apiDescription",
        "disabled" : true,
        "apiId" : "apiId",
        "actionName" : "actionName"
      } ]
    }
    

    Get api-list of filter

    URL

    GET https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/filter
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10

    Request Body

    • None

    Response Code

    • 200

    Response Body

    {
      "total" : 0,
      "apis" : [ {
        "apiName" : "apiName",
        "domainCode" : "domainCode",
        "productId" : "productId",
        "modifier" : "modifier",
        "permission" : "permission",
        "isDeleted" : true,
        "modTime" : "2000-01-23T04:56:07.000+00:00",
        "stages" : [ {
          "stageName" : "stageName",
          "isPublished" : true,
          "apiId" : "apiId",
          "stageId" : "stageId"
        } ],
        "tenantId" : "tenantId",
        "apiDescription" : "apiDescription",
        "disabled" : true,
        "apiId" : "apiId",
        "actionName" : "actionName"
      } ]
    }
    

    Get an api

    URL

    GET https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10
    apiIdpathYStringApi Id
    Length(Min/Max): 0/10

    Request Body

    • None

    Response Code

    • 200

    Response Body

    {
      "api" : {
        "apiName" : "apiName",
        "domainCode" : "domainCode",
        "productId" : "productId",
        "modifier" : "modifier",
        "permission" : "permission",
        "isDeleted" : true,
        "modTime" : "2000-01-23T04:56:07.000+00:00",
        "stages" : [ {
          "stageName" : "stageName",
          "isPublished" : true,
          "apiId" : "apiId",
          "stageId" : "stageId"
        } ],
        "tenantId" : "tenantId",
        "apiDescription" : "apiDescription",
        "disabled" : true,
        "apiId" : "apiId",
        "actionName" : "actionName"
      }
    }
    

    Search apis' infos by product id

    URL

    GET https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/infos
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10
    offsetquery stringNLongOffset
    Min: 0
    Max: 9,223,372,036,854,775,807
    limitquery stringNLongLimit
    Min: 1
    Max: 9,223,372,036,854,775,807
    withStagequery stringNBooleanWith Stage
    apiNamequery stringNStringApi Name
    Length(Min/Max): 0/20
    hasStagequery stringNBooleanHas Stage
    hasStageNotAssociatedWithUsagePlanIdquery stringNStringHas Stage Not Associated With Usage Plan Id

    Request Body

    • None

    Response Code

    • 200

    Response Body

    {
      "total" : 0,
      "apis" : [ {
        "apiName" : "apiName",
        "domainCode" : "domainCode",
        "productId" : "productId",
        "modifier" : "modifier",
        "permission" : "permission",
        "isDeleted" : true,
        "modTime" : "2000-01-23T04:56:07.000+00:00",
        "stages" : [ {
          "stageName" : "stageName",
          "isPublished" : true,
          "apiId" : "apiId",
          "stageId" : "stageId"
        } ],
        "tenantId" : "tenantId",
        "apiDescription" : "apiDescription",
        "disabled" : true,
        "apiId" : "apiId",
        "actionName" : "actionName"
      } ]
    }
    

    Import api from swagger

    URL

    POST https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/import
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10

    Request Body

    {
      "apiName" : "apiName",
      "apiDescription" : "apiDescription",
      "importValidateType" : "FAIL_ON_WARN",
      "swagger" : "swagger"
    }
    

    Response Code

    • 200

    Response Body

    {
      "errorMessages" : [ "errorMessages" ],
      "warnMessages" : [ "warnMessages" ],
      "success" : true,
      "api" : {
        "apiName" : "apiName",
        "domainCode" : "domainCode",
        "productId" : "productId",
        "modifier" : "modifier",
        "permission" : "permission",
        "isDeleted" : true,
        "modTime" : "2000-01-23T04:56:07.000+00:00",
        "stages" : [ {
          "stageName" : "stageName",
          "isPublished" : true,
          "apiId" : "apiId",
          "stageId" : "stageId"
        } ],
        "tenantId" : "tenantId",
        "apiDescription" : "apiDescription",
        "disabled" : true,
        "apiId" : "apiId",
        "actionName" : "actionName"
      }
    }
    

    Modify an api

    URL

    PATCH https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10
    apiIdpathYStringApi Id
    Length(Min/Max): 0/10

    Request Body

    {
      "apiDescription" : "apiDescription"
    }
    

    Response Code

    • 204

    Response Body

    • None

    Publish a product

    URL

    POST https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/publish
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10
    apiIdpathYStringApi Id
    Length(Min/Max): 0/10

    Request Body

    {
      "stages" : [ {
        "isPublished" : true,
        "stageId" : "stageId"
      } ]
    }
    

    Response Code

    • 204

    Response Body

    • None

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.