-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
publish api endpoints #77179
publish api endpoints #77179
Conversation
def get(self, request: Request, organization) -> Response: | ||
""" | ||
List your Teams In the Current Organization | ||
List your Teams in the Current Organization |
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 docstring here ends up as the endpoint description, so it should just be one sentence for all the endpoints
} | ||
owner = ApiOwner.ENTERPRISE | ||
|
||
@extend_schema( | ||
operation_id="List an Organization's Teams for 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.
operation_id="List an Organization's Teams for user", | |
operation_id="List a User's Teams for an Organization", |
Return a list of the teams available to the authenticated session and | ||
with the supplied organization. If the user is a super user, then all | ||
teams within the organization are returned. | ||
List your Teams in the Current Organization |
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.
List your Teams in the Current Organization | |
Returns a list of teams the user has access to in the specified organization. | |
Note that this endpoint is restricted to [user auth tokens](https://docs.sentry.io/account/auth-tokens/#user-auth-tokens). |
} | ||
owner = ApiOwner.ENTERPRISE | ||
|
||
@extend_schema( | ||
operation_id="List an Organization's Members for Project", |
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.
operation_id="List an Organization's Members for Project", | |
operation_id="List a Project's Organization Members", |
def get(self, request: Request, project) -> Response: | ||
""" | ||
List your Members in the requested Project |
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.
List your Members in the requested Project | |
Returns a list of active organization member's that belong to any team assigned to the project. |
# Return a list of active organization members that belong to any team assigned | ||
# to the queried project. |
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.
# Return a list of active organization members that belong to any team assigned | |
# to the queried project. |
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.
lgtm, just one small typo!
def get(self, request: Request, project) -> Response: | ||
""" | ||
Returns a list of active organization member's that belong to any team assigned to the project. |
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.
whoops I had a typo
Returns a list of active organization member's that belong to any team assigned to the project. | |
Returns a list of active organization members that belong to any team assigned to the project. |
per: https://getsentry.atlassian.net/jira/software/c/projects/ALRT/boards/214?assignee=62175b31708417006bc94fe6&selectedIssue=ALRT-220
and
https://getsentry.atlassian.net/jira/software/c/projects/ALRT/boards/214?assignee=62175b31708417006bc94fe6&selectedIssue=ALRT-221
Publishes both the
ProjectMemberIndexEndpoint
and
OrganizationUserTeamsEndpoint