Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need making json export format like redmine standart #90

Open
lightinen opened this issue Jan 9, 2022 · 0 comments
Open

Need making json export format like redmine standart #90

lightinen opened this issue Jan 9, 2022 · 0 comments
Assignees

Comments

@lightinen
Copy link

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 }}
@noshutdown-ru-user noshutdown-ru-user self-assigned this Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants