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

31번째 줄: 31번째 줄:
[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='cli'>
[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>

2015년 7월 6일 (월) 18:13 판

레드마인 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 }}