A Redmine API Plugin
Developed and tested on Redmine 3.0, Ruby version 2.1
- Go to your Redmine installation's plugins/directory.
git clone https://github.com/efigence/redmine_imperator
- run
bundle install
- Go back to root directory.
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
- Restart Redmine.
When adding new gems, they may conflict with Redmine's gems, so always run bundle first from redmine repository to be able to generate next a compatible Gemfile.lock in the plugin dir.
cd ~/redmine/
bundle install
cd ~/redmine/plugins/redmine_imperator/
bundle install --path vendor/bundle
cp config/database.yml.example config/database.yml
# run tests
cd ~/redmine/
bundle exec rake redmine:plugins:test NAME=redmine_imperator
# first, follow instructions from: https://github.com/dadooda/bundler-gemlocal
# if you use ~/.bash_profile separately from ~/.bashrc, also source the .sh file there:
# [ -f bundler-gemlocal.sh ] && . bundler-gemlocal.sh
cd ~/redmine/plugins/redmine_imperator/
# copy config files
cp Gemlocal.example Gemlocal
# install local gems
b install --path vendor/bundle
# run tests inside the plugin
bx rake test
# generate documentation for the plugin
bx rake rdoc
curl -v -H "Content-Type: application/json" -X GET \
-H "X-Redmine-API-Key: d293e1fbcae7e08c6f135d736e2f7f1be2d5eb35" \
-H "X-Imperator-API-Key: 2ce03d6ea21775217f0ef4b8e56ce51abf86977a34270147b78210dc24632eda20f2b26fea440953cdeb2cb0fd6b82cbe2254a48f2b5d916db48e9851d9200d0" \
http://localhost:3000/imperator_api/v1/users/1.json
This project was built using Pivotal Tracker. Please adhere to A GUIDE TO GITHUB’S SERVICE HOOK FOR TRACKER.
Redmine Imperator plugin. Copyright (C) 2016 Efigence S.A.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.