Method Response
    • PDF

    Method Response

    • PDF

    Article Summary

    메서드 응답 추가

    URL

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

    요청 파라미터

    이름위치필수여부타입설명
    productIdpathYStringProduct Id
    길이(최대/최소): 0/10
    apiIdpathYStringApi Id
    길이(최대/최소): 0/10
    resourceIdpathYStringResource Id
    길이(최대/최소): 0/10
    methodNamepathYStringMethod Code
    허용 가능한 값: ANY, GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD

    요청 바디

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

    응답 코드

    • 201

    응답 바디

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

    메서드 응답 삭제

    URL

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

    요청 파라미터

    이름위치필수여부타입설명
    productIdpathYStringProduct Id
    길이(최대/최소): 0/10
    apiIdpathYStringApi Id
    길이(최대/최소): 0/10
    resourceIdpathYStringResource Id
    길이(최대/최소): 0/10
    methodNamepathYStringMethod Code
    허용 가능한 값: ANY, GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD
    statusCodepathYIntegerStatus Code

    요청 바디

    • 없음

    응답 코드

    • 204

    응답 바디

    • 없음

    메서드 응답 조회

    URL

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

    요청 파라미터

    이름위치필수여부타입설명
    productIdpathYStringProduct Id
    길이(최대/최소): 0/10
    apiIdpathYStringApi Id
    길이(최대/최소): 0/10
    resourceIdpathYStringResource Id
    길이(최대/최소): 0/10
    methodNamepathYStringMethod Code
    허용 가능한 값: ANY, GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD

    요청 바디

    • 없음

    응답 코드

    • 200

    응답 바디

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

    메서드 응답 설명 수정

    URL

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

    요청 파라미터

    이름위치필수여부타입설명
    productIdpathYStringProduct Id
    길이(최대/최소): 0/10
    apiIdpathYStringApi Id
    길이(최대/최소): 0/10
    resourceIdpathYStringResource Id
    길이(최대/최소): 0/10
    methodNamepathYStringMethod Code
    허용 가능한 값: ANY, GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD
    statusCodepathYIntegerStatus Code

    요청 바디

    {
      "responseDescription" : "responseDescription"
    }
    

    응답 코드

    • 200

    응답 바디

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

    이 문서가 도움이 되었습니까?

    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.