WebHCat 레퍼런스 - Response Types

WebHCat 레퍼런스 - Response Types

GET /templeton/:version 요청으로 WebHCat(Templeton)이 지원하는 응답 타입 목록을 반환하는 API예요. 현재 버전은 "v1"이며, 결과로 지원되는 응답 타입(예: application/json) 목록을 JSON으로 반환한답니다.

출처: 문서

본문

설명 (Description)

WebHCat(Templeton)이 지원하는 응답 타입 목록을 반환해요.

URL

http://www.myserver.com/templeton/:version

매개변수 (Parameters)

이름 설명 필수? 기본값
:version WebHCat 버전 번호. (현재 "v1"이어야 함) 필수 없음

표준 매개변수도 함께 지원됩니다.

결과 (Results)

이름 설명
responseTypes 지원되는 모든 응답 타입 목록

예제 (Example)

Curl 명령

% curl -s 'http://localhost:50111/templeton/v1'

JSON 출력

{
  "responseTypes": [
    "application/json"
  ]
}

JSON 출력 (오류)

{
  "error": "null for uri: http://localhost:50111/templeton/v2"
}

Navigation Links 이전: Reference: WebHCat Resources 다음: GET status

더 알아보기 (Learn more)