Skip to content

Role based restriction in certain APIs i.e. questionSet review, publish and reject #82

Answered by krgauraw
githubpiyush asked this question in Q&A
Discussion options

You must be logged in to vote

@githubpiyush if the requirement is only to update one attribute "rejectComment", I would recommend to enhance the reject api itself instead of writing a new end point.

If you still need the role mapping example, Please refer below

https://github.com/project-sunbird/sunbird-devops/blob/c0224a02b854d73bfba52a706a35fa6b47cc72aa/ansible/roles/kong-api/defaults/main.yml#LL6570C2-L6586C71

So the newly created api need to have "contentAdmin" role in api onboarding script.

cc: @sajeshkayyath @PoojaJManjooran @aks30

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@krgauraw
Comment options

Answer selected by PoojaJManjooran
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants