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": "[email protected]",
            "password": "IIIdevops123!",
            "admin": "True"
        }	
    }' \
        http://172.16.0.104:32748/users.json

  • 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 有安全問題無法使用
  • tech/redmine_api.txt
  • 上一次變更: 2021/01/03 23:26
  • jonathan