아름프로의 Agile, DevOps, 그리고 일상 이야기

[OSLC] Reportable REST API 사용법 본문

추억의 책장/IBM Rational

[OSLC] Reportable REST API 사용법

아름프로 2011.04.05 00:04
API 정리 사이트 : https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI

  1. 시작 지점 : https://사이트주소:포트/ccm/rpt/repository
    예> https://my.jazz.net:9443/jazz/rpt/repository
    https://my.jazz.net:9443/jazz <-- 각자의 RTC URL
    * 웹 브라우져 상에서 위의 주소를 넣고 실행
    실행 결과 :

    <resources Version="1.0.0">
      <resource href="https://my.jazz.net:9443/jazz/rpt/repository/scm"/>
      <resource href="https://my.jazz.net:9443/jazz/rpt/repository/build"/>
      <resource href="https://my.jazz.net:9443/jazz/rpt/repository/foundation"/>
      <resource href="https://my.jazz.net:9443/jazz/rpt/repository/apt"/>
      <resource href="https://my.jazz.net:9443/jazz/rpt/repository/workitem"/>
      <resource href="https://my.jazz.net:9443/jazz/rpt/repository/generic"/>
    </resources>

  2. 위의 결과로 뽑을 수 있는 것들
    - foundation: Common artifacts (project areas, team areas, contributors, iterations, links)
    - scm: Source Control artifacts (streams and components, as well as stream sizing deltas)
    - build: Build artifacts (build results, build result contributions, build definitions, build engines)
    - apt: Agile Planning artifacts (team capacity and resource schedules, absences)
    - workitem: Work Item artifacts (work items, categories, severities, priorities)

  3. 해당 REST API 사용방법
    https://my.jazz.net:9443/jazz/rpt/repository/scm?fields=
    https://my.jazz.net:9443/jazz/rpt/repository/buil?fields=
    https://my.jazz.net:9443/jazz/rpt/repository/foundation?fields=
    https://my.jazz.net:9443/jazz/rpt/repository/apt?fields=
    https://my.jazz.net:9443/jazz/rpt/repository/workitem?fields=
    https://my.jazz.net:9443/jazz/rpt/repository/generic?fields=



    위의 URL에 아래 이미지 상의 리소스를 조합.

    예>
    https://my.jazz.net:9443/jazz/rpt/repository/scm?fields=scm/workspace
    https://my.jazz.net:9443/jazz/rpt/repository/buil?fields=build/buildDefinition
    https://my.jazz.net:9443/jazz/rpt/repository/workitem?fields=workitem/workItem

    Properties 활용 예>
    https://my.jazz.net:9443/jazz/rpt/repository/workitem?fields=workitem/workItem/id
    https://my.jazz.net:9443/jazz/rpt/repository/workitem?fields=workitem/workItem/summary

    Properties와 type ... type: com.ibm.team.workitem.Comment 조합 예>
    https://my.jazz.net:9443/jazz/rpt/repository/workitem?fields=workitem/workItem[id=1]/comments/creator

    리소스, Properties, type 에 대한 상세한 정보는
    https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI 참조

  4. 활용 예제 : https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#Examples


     

'추억의 책장 > IBM Rational' 카테고리의 다른 글

OSLC Data Structure (Work Item, Build)  (0) 2011.04.08
[OSLC] Reportable REST API 사용법  (0) 2011.04.05
JAZZ ressources for Extensions  (0) 2011.04.03
RTC Build API 관련 정보들  (0) 2011.04.03
Tag
,
0 Comments
댓글쓰기 폼