Model
    • PDF

    Model

    • PDF

    Article Summary

    모델 추가

    URL

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

    요청 파라미터

    이름위치필수여부타입설명
    productIdpathYStringProduct Id
    길이(최대/최소): 0/10
    apiIdpathYStringApi Id
    길이(최대/최소): 0/10

    요청 바디

    {
      "modelDescription" : "modelDescription",
      "modelName" : "modelName",
      "modelSchema" : "modelSchema"
    }
    

    응답 코드

    • 201

    응답 바디

    {
      "modelDescription" : "modelDescription",
      "modelName" : "modelName",
      "modelId" : "modelId",
      "modelSchema" : "modelSchema",
      "apiId" : "apiId"
    }
    

    모델 삭제

    URL

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

    요청 파라미터

    이름위치필수여부타입설명
    productIdpathYStringProduct Id
    길이(최대/최소): 0/10
    apiIdpathYStringApi Id
    길이(최대/최소): 0/10
    modelIdpathYStringModel Id
    길이(최대/최소): 0/10

    요청 바디

    • 없음

    응답 코드

    • 204

    응답 바디

    • 없음

    모델 조회

    URL

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

    요청 파라미터

    이름위치필수여부타입설명
    productIdpathYStringProduct Id
    길이(최대/최소): 0/10
    apiIdpathYStringApi Id
    길이(최대/최소): 0/10
    modelIdpathYStringModel Id
    길이(최대/최소): 0/10

    요청 바디

    • 없음

    응답 코드

    • 200

    응답 바디

    {
      "modelDescription" : "modelDescription",
      "modelName" : "modelName",
      "modelId" : "modelId",
      "modelSchema" : "modelSchema",
      "apiId" : "apiId"
    }
    

    모델 조회

    URL

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

    요청 파라미터

    이름위치필수여부타입설명
    productIdpathYStringProduct Id
    길이(최대/최소): 0/10
    apiIdpathYStringApi Id
    길이(최대/최소): 0/10
    offsetquery stringNLongOffset
    최소: 0
    최대: 9,223,372,036,854,775,807
    limitquery stringNLongLimit
    최소: 1
    최대: 9,223,372,036,854,775,807
    modelNamequery stringNStringModel Name
    길이(최대/최소): 0/100

    요청 바디

    • 없음

    응답 코드

    • 200

    응답 바디

    {
      "productPage" : {
        "total" : 0,
        "content" : [ {
          "modelDescription" : "modelDescription",
          "modelName" : "modelName",
          "modelId" : "modelId",
          "modelSchema" : "modelSchema",
          "apiId" : "apiId"
        } ]
      }
    }
    

    모델 미리보기

    URL

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

    요청 파라미터

    이름위치필수여부타입설명
    productIdpathYStringProduct Id
    길이(최대/최소): 0/10
    apiIdpathYStringApi Id
    길이(최대/최소): 0/10

    요청 바디

    {
      "modelId" : "modelId",
      "modelSchema" : "modelSchema"
    }
    

    응답 코드

    • 200

    응답 바디

    {
      "modelSchema" : "{}"
    }
    

    모델 수정

    URL

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

    요청 파라미터

    이름위치필수여부타입설명
    productIdpathYStringProduct Id
    길이(최대/최소): 0/10
    apiIdpathYStringApi Id
    길이(최대/최소): 0/10
    modelIdpathYStringModel Id
    길이(최대/최소): 0/10

    요청 바디

    {
      "modelDescription" : "modelDescription",
      "modelSchema" : "modelSchema"
    }
    

    응답 코드

    • 200

    응답 바디

    {
      "modelDescription" : "modelDescription",
      "modelName" : "modelName",
      "modelId" : "modelId",
      "modelSchema" : "modelSchema",
      "apiId" : "apiId"
    }
    

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

    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.