Open lightinen opened 2 years ago
Now keys.json like an numeric array of data like:
[{"id":,"project_id":,"name":"","body":"","login":"","file":null,"url":"","comment":"","whitelist":""}]
But redmine standart json API like
{"keys":[{"id":,"project_id":,"name":"","body":"","login":"","file":null,"url":"","comment":"","whitelist":""}]}
Because of this difference you may have a trouble with extending external libraries, working with redmine rest api
Fixing (vault/app/controllers/keys_controller.rb: line 72):
- format.json { render json: @keys } + format.json { render json: { :keys => @keys }}
Now keys.json like an numeric array of data like:
But redmine standart json API like
Because of this difference you may have a trouble with extending external libraries, working with redmine rest api
Fixing (vault/app/controllers/keys_controller.rb: line 72):