-
Notifications
You must be signed in to change notification settings - Fork 0
229 make admin #235
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
229 make admin #235
Conversation
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.
Good job, just some fixes needed.
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.
Well done!
25c3127 to
8299329
Compare
…d with expected arguments #229
269dab6 to
67ce20b
Compare
|
|
||
|
|
||
| @ns.route('/<string:user_id>/roles/<string:role_id>') | ||
| @ns.response(HTTPStatus.NOT_FOUND, 'User not found') |
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.
User not found? IMO, it is better to say Role not found
|
|
||
| @ns.route('/<string:id>') | ||
| @ns.route('/<string:id>/roles') | ||
| @ns.response(HTTPStatus.NOT_FOUND, 'User not found') |
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.
User not found? I would say it is better to say Role not found
| @ns.doc('create_user_role') | ||
| @ns.expect(user_role_input_fields) | ||
| @ns.response( | ||
| HTTPStatus.BAD_REQUEST, 'Invalid format or structure of the user' |
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.
Invalid format or structure of the user? Is not this for roles?
No description provided.