-
Notifications
You must be signed in to change notification settings - Fork 32
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
Use POST for user sensitive calls #86
Conversation
Fixes #85 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks good to me.
Need to verify if the new methods work as expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM
"registerUserData": true, | ||
"setupUserTwoFactorAuthentication": true, | ||
"validateUserTwoFactorAuthenticationCode": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code for these 3 commands is not being generated since they are not defined in generate/layout.go
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, but they're calls that I wanted to ensure use post when and if they do get added.
Verified createUser & updateUser methods. |
Add a set to contain the API names that should use POST. Not all defined API names here are actually generated by this client yet (namely the 2FA and registerUserData APIs), but would want to be POST when they're introduced.
Note this also fixes a typo in the listApis.json which actually resides upstream core cloudstack, in the OpenDaylight API descriptions.
It seems
listApis.json
was recently updated without calling generate, because without fixing the typo here it wants to introduce the typo into the generated code. So I am stuck with a choice between committing a change to listApis or committing a typo to the generated bindings.