Method Response
    • PDF

    Method Response

    • PDF

    Article Summary

    Add a method response status

    URL

    POST https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/resources/{resource-id}/methods/{method-name}/responses
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10
    apiIdpathYStringApi Id
    Length(Min/Max): 0/10
    resourceIdpathYStringResource Id
    Length(Min/Max): 0/10
    methodNamepathYStringMethod Code
    Allowable values: ANY, GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD

    Request Body

    {
      "responseDescription" : "responseDescription",
      "statusCode" : 0
    }
    

    Response Code

    • 201

    Response Body

    {
      "methodResponseDto" : {
        "resourceId" : "resourceId",
        "responseDescription" : "responseDescription",
        "modifier" : "modifier",
        "tenantId" : "tenantId",
        "apiId" : "apiId",
        "methodCode" : "methodCode",
        "statusCode" : 0
      }
    }
    

    Delete a method response

    URL

    DELETE https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/resources/{resource-id}/methods/{method-name}/responses/{status-code}
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10
    apiIdpathYStringApi Id
    Length(Min/Max): 0/10
    resourceIdpathYStringResource Id
    Length(Min/Max): 0/10
    methodNamepathYStringMethod Code
    Allowable values: ANY, GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD
    statusCodepathYIntegerStatus Code

    Request Body

    • None

    Response Code

    • 204

    Response Body

    • None

    Get response status

    URL

    GET https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/resources/{resource-id}/methods/{method-name}/responses
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10
    apiIdpathYStringApi Id
    Length(Min/Max): 0/10
    resourceIdpathYStringResource Id
    Length(Min/Max): 0/10
    methodNamepathYStringMethod Code
    Allowable values: ANY, GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD

    Request Body

    • None

    Response Code

    • 200

    Response Body

    {
      "responses" : [ {
        "resourceId" : "resourceId",
        "responseDescription" : "responseDescription",
        "modifier" : "modifier",
        "tenantId" : "tenantId",
        "apiId" : "apiId",
        "methodCode" : "methodCode",
        "statusCode" : 0
      } ]
    }
    

    Modify response description

    URL

    PATCH https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/resources/{resource-id}/methods/{method-name}/responses/{status-code}
    

    Request Parameter

    NamePositionRequiredTypeDescription
    productIdpathYStringProduct Id
    Length(Min/Max): 0/10
    apiIdpathYStringApi Id
    Length(Min/Max): 0/10
    resourceIdpathYStringResource Id
    Length(Min/Max): 0/10
    methodNamepathYStringMethod Code
    Allowable values: ANY, GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD
    statusCodepathYIntegerStatus Code

    Request Body

    {
      "responseDescription" : "responseDescription"
    }
    

    Response Code

    • 200

    Response Body

    {
      "methodResponseDto" : {
        "resourceId" : "resourceId",
        "responseDescription" : "responseDescription",
        "modifier" : "modifier",
        "tenantId" : "tenantId",
        "apiId" : "apiId",
        "methodCode" : "methodCode",
        "statusCode" : 0
      }
    }
    

    Was this article helpful?

    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.