====== Redmine API 呼叫整理 ====== * Example: 新增 user 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 ===== DB 資料表資訊 ===== * user 密碼編碼參考 - https://www.redmine.org/boards/2/topics/31915 sha1($salt . sha1($password)); * 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