Gateway Response Template
    • PDF

    Gateway Response Template

    • PDF

    Article Summary

    Add Gateway Response template

    URL

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

    Request Parameter

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

    Request Body

    {
      "mappingTemplate" : "mappingTemplate",
      "contentType" : "contentType"
    }
    

    Response Code

    • 201

    Response Body

    {
      "mappingTemplate" : "mappingTemplate",
      "responseType" : "responseType",
      "contentType" : "contentType",
      "apiId" : "apiId"
    }
    

    Delete Gateway Response template

    URL

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

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10
    apiIdpathYStringApi Id
    Length(Min/Max): 0/10
    responseTypepathYStringResponse Type
    Length(Min/Max): 0/45
    contentTypequery stringYStringContent Type
    Length(Min/Max): 0/100
    Pattern: [.a-z0-9_+/\-*]+

    Request Body

    • None

    Response Code

    • 204

    Response Body

    • None

    Modify Gateway Response template

    URL

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

    Request Parameter

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

    Request Body

    {
      "mappingTemplate" : "mappingTemplate",
      "contentType" : "contentType"
    }
    

    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.