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

Added role assignments endpoint #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

afonsomatos
Copy link
Contributor

Looking for feedback before doing some tests.

object Assignment {
implicit val decoder: Decoder[Assignment] = { cursor: HCursor =>
for {
// TODO: How to test if downField worked?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* @return a stream of ids from projects to which a certain group has been assigned a certain role
*/
def assignments(groupId: String): Stream[F, Role.Assignment] =
list[Role.Assignment]("role_assignments", baseUri / "role_assignments", Query.fromPairs("group.id" -> groupId))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

2 participants