-
Notifications
You must be signed in to change notification settings - Fork 16
Add implementation for Members, Sources and Invitations endpoints #131
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ddd3401
feat(client): add members related endpoints
GG-Yanne d322eaa
feat(client): add teams related endpoints
GG-Yanne 8e9748d
feat(client): add sources related endpoints
GG-Yanne 8555586
feat(client): add invitation related endpoints
GG-Yanne a932163
docs(changelog): added changelog for teams, members, invitations and …
GG-Yanne b5f7f6b
fix(models): changed wrong keyword argument for parameters schema and…
GG-Yanne 009bcad
refactor(client): delete methods now return None in case deletion was…
GG-Yanne f59f4a1
refactor(models): remove many arguments in from_dict and move list se…
GG-Yanne a672070
fix(models): mark last_scan as optional for a scan object
GG-Yanne 27bc067
test(client): changed error message to detail
GG-Yanne 3e17f92
refactor(models): move schema, parameters and paginated response to m…
GG-Yanne 463062c
test(client): change client tests to allow tests to run on any workspace
GG-Yanne 90f3f02
refactor(client): rename list team source to better match public api doc
GG-Yanne 4a06722
refactor(models): prefix all post_load method with make
GG-Yanne 994f987
refactor(client): rename "update" function model's argument to payload
GG-Yanne 1ff53dc
docs(tests): add documentation around limitations of initial workplac…
GG-Yanne 20b1624
test(client): move get functions to utils file
GG-Yanne b87bc42
fix(client): explicit add status code for all response
GG-Yanne 3efc288
fix(models_utils): paginated data now also receives status code when …
GG-Yanne 5133106
refactor(client): change query_parameters to parameters for list_members
GG-Yanne File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '0' | ||
User-Agent: | ||
- pygitguardian/1.18.0 (Darwin;py3.11.8) | ||
method: DELETE | ||
uri: https://api.gitguardian.com/v1/invitations/2 | ||
response: | ||
body: | ||
string: '' | ||
headers: | ||
Access-Control-Expose-Headers: | ||
- X-App-Version | ||
Allow: | ||
- DELETE, OPTIONS | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '0' | ||
Cross-Origin-Opener-Policy: | ||
- same-origin | ||
Date: | ||
- Fri, 06 Dec 2024 13:38:57 GMT | ||
Referrer-Policy: | ||
- same-origin | ||
Server: | ||
- nginx/1.24.0 | ||
Vary: | ||
- Cookie | ||
X-App-Version: | ||
- dev | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- DENY | ||
X-Request-ID: | ||
- fd715a797aabb2eddf49823db3e54209 | ||
X-SCA-Engine-Version: | ||
- 2.2.0 | ||
X-Secrets-Engine-Version: | ||
- 2.127.0 | ||
status: | ||
code: 204 | ||
message: No Content | ||
version: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
User-Agent: | ||
- pygitguardian/1.18.0 (Darwin;py3.11.8) | ||
method: GET | ||
uri: https://api.gitguardian.com/v1/invitations | ||
response: | ||
body: | ||
string: '[{"id":1,"date":"2024-12-05T17:35:12.273332Z","email":"toto+test@gg.com","role":"member","access_level":"member"}]' | ||
headers: | ||
Access-Control-Expose-Headers: | ||
- X-App-Version | ||
Allow: | ||
- GET, POST, HEAD, OPTIONS | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '114' | ||
Content-Type: | ||
- application/json | ||
Cross-Origin-Opener-Policy: | ||
- same-origin | ||
Date: | ||
- Fri, 06 Dec 2024 13:33:31 GMT | ||
Link: | ||
- '' | ||
Referrer-Policy: | ||
- same-origin | ||
Server: | ||
- nginx/1.24.0 | ||
Vary: | ||
- Cookie | ||
X-App-Version: | ||
- dev | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- DENY | ||
X-Per-Page: | ||
- '20' | ||
X-Request-ID: | ||
- 182ad8123736b9315def7a957569ef89 | ||
X-SCA-Engine-Version: | ||
- 2.2.0 | ||
X-Secrets-Engine-Version: | ||
- 2.127.0 | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
User-Agent: | ||
- pygitguardian/1.18.0 (Darwin;py3.11.8) | ||
method: GET | ||
uri: https://api.gitguardian.com/v1/members?access_level=manager | ||
response: | ||
body: | ||
string: '[]' | ||
headers: | ||
Access-Control-Expose-Headers: | ||
- X-App-Version | ||
Allow: | ||
- GET, HEAD, OPTIONS | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '2' | ||
Content-Type: | ||
- application/json | ||
Cross-Origin-Opener-Policy: | ||
- same-origin | ||
Date: | ||
- Fri, 06 Dec 2024 13:53:52 GMT | ||
Link: | ||
- '' | ||
Referrer-Policy: | ||
- same-origin | ||
Server: | ||
- nginx/1.24.0 | ||
Vary: | ||
- Cookie | ||
X-App-Version: | ||
- dev | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- DENY | ||
X-Per-Page: | ||
- '20' | ||
X-Request-ID: | ||
- 345625b0c1e6c814a9b997bd7ea3ea96 | ||
X-SCA-Engine-Version: | ||
- 2.2.0 | ||
X-Secrets-Engine-Version: | ||
- 2.127.0 | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.