"레드마인 API 튜토리얼"의 두 판 사이의 차이

 
(사용자 2명의 중간 판 2개는 보이지 않습니다)
13번째 줄: 13번째 줄:


==테스트 1==
==테스트 1==
<source lang='cli'>
<source lang='console'>
[root@zetawiki ~]# curl -v http://localhost:3000/issues.xml
[root@zetawiki ~]# curl -v http://localhost:3000/issues.xml
* About to connect() to localhost port 3000 (#0)
* About to connect() to localhost port 3000 (#0)
28번째 줄: 28번째 줄:


==테스트 2==
==테스트 2==
<source lang='cli'>
<source lang='console'>
[root@zetawiki ~]# curl -s http://localhost:3000/issues.xml?key=b579df13ce6a80d247fbe91358024acfb6d91ac3 | head
[root@zetawiki ~]# curl -s http://localhost:3000/issues.xml?key=b579df13ce6a80d247fbe91358024acfb6d91ac3 | head
<?xml version="1.0" encoding="UTF-8"?><issues total_count="60" offset="0" limit="25" type="array"><issue><id>159</id><project id="5" name="zetawiki"/><tracker id="2" name="새기능"/><status id="1" name="오픈"/><priority id="2" name="보통"/>
<?xml version="1.0" encoding="UTF-8"?><issues total_count="60" offset="0" limit="25" type="array"><issue><id>159</id><project id="5" name="zetawiki"/><tracker id="2" name="새기능"/><status id="1" name="오픈"/><priority id="2" name="보통"/>
... (생략)
</source>
<source lang='console'>
[root@zetawiki ~]# curl -s http://localhost:3000/issues.json?key=b579df13ce6a80d247fbe91358024acfb6d91ac3 | head
{"issues":[{"id":164,"project":{"id":5,"name":"zetawiki"},"tracker":{"id":3,"name":"\uc9c0\uc6d0"},"status":{"id":1,"name":"\uc624\ud508"},"priority":{"id":2,"name":"\ubcf4\ud1b5"},
... (생략)
... (생략)
</source>
</source>
41번째 줄: 46번째 줄:


[[분류: Redmine]]
[[분류: Redmine]]
[[분류: API]]
[[분류: REST API]]

2017년 5월 30일 (화) 22:28 기준 최신판

레드마인 API 튜토리얼

1 API 활성화[ | ]

  • 레드마인 웹에서 Administration 클릭
  • Settings 클릭
  • Authentication 탭 클릭
  • Enable REST web service [v]

2 API 키 확인[ | ]

  • My account 클릭[1]
  • API access key 아래 Show 클릭하여 확인
예: b579df13ce6a80d247fbe91358024acfb6d91ac3

3 테스트 1[ | ]

[root@zetawiki ~]# curl -v http://localhost:3000/issues.xml
* About to connect() to localhost port 3000 (#0)
*   Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 3000 (#0)
... (생략)
< HTTP/1.1 401 Unauthorized 
< WWW-Authenticate: Basic realm="Redmine API"
< Content-Type: application/xml; charset=utf-8
... (생략)
* Connection #0 to host localhost left intact
* Closing connection #0

4 테스트 2[ | ]

[root@zetawiki ~]# curl -s http://localhost:3000/issues.xml?key=b579df13ce6a80d247fbe91358024acfb6d91ac3 | head
<?xml version="1.0" encoding="UTF-8"?><issues total_count="60" offset="0" limit="25" type="array"><issue><id>159</id><project id="5" name="zetawiki"/><tracker id="2" name="새기능"/><status id="1" name="오픈"/><priority id="2" name="보통"/>
... (생략)
[root@zetawiki ~]# curl -s http://localhost:3000/issues.json?key=b579df13ce6a80d247fbe91358024acfb6d91ac3 | head
{"issues":[{"id":164,"project":{"id":5,"name":"zetawiki"},"tracker":{"id":3,"name":"\uc9c0\uc6d0"},"status":{"id":1,"name":"\uc624\ud508"},"priority":{"id":2,"name":"\ubcf4\ud1b5"},
... (생략)

5 같이 보기[ | ]

6 주석[ | ]

  1. 또는 /my/account/ 접속
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}