顯示頁面舊版反向連結Fold/unfold all回到頁頂 本頁是唯讀的,您可以看到原始碼,但不能更動它。您如果覺得它不應被鎖上,請詢問管理員。 ====== Redmine API 呼叫整理 ====== * Example: 新增 user <cli> curl -v \ -H "X-Redmine-API-Key: 75f5100dea8c9b40812695e251697cece50d366b" \ -H "Content-Type: application/json" \ -d '{ "user": { "login": "super4", "firstname": "#", "lastname": "Super User4", "mail": "super4@ichiayi.com", "password": "IIIdevops123!", "admin": "True" } }' \ http://172.16.0.104:32748/users.json </cli> ===== DB 資料表資訊 ===== * user 密碼編碼參考 - https://www.redmine.org/boards/2/topics/31915 <cli>sha1($salt . sha1($password));</cli> * tokens 內 api 的 created_on 時間必須在 settings 內 rest_api_enabled = 1 的 updated_on 時間之後, 才不會造成呼叫 API 出現 token 有安全問題無法使用 ===== 參考網址 ===== * https://www.redmine.org/projects/redmine/wiki/rest_api * https://www.redmine.org/projects/redmine/wiki/Rest_api_with_curl * https://documenter.getpostman.com/view/916999/T1DtfFxf * https://gist.github.com/shentonfreude/5173720 tech/redmine_api.txt 上一次變更: 2021/01/03 23:26由 jonathan