-
Notifications
You must be signed in to change notification settings - Fork 117
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
Enhancement: clients can use REST url for all methods #219
Open
davidalexandru7013
wants to merge
23
commits into
snyk-labs:master
Choose a base branch
from
davidalexandru7013:feat/client-rest
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
a5803bd
feat: added project v1 to rest conversion class
davidalexandru7013 5cee33b
feat: added method to check if a path is project v1
davidalexandru7013 39d9486
fix: updated delete project tests to mock rest route
davidalexandru7013 62e3c3b
chore: black formatting of client, managers and models files
davidalexandru7013 0ee912d
feat: moved get project by id from v1 to rest
davidalexandru7013 8fc8a36
fix: replace old route with new route for projects in tests
davidalexandru7013 cfe46fe
feat: patch method in client
davidalexandru7013 eeddafe
chore: removed debug from examples
davidalexandru7013 956394e
chore: removed ununsed class
davidalexandru7013 659827e
chore: replaced old api version with new one
davidalexandru7013 5c21f1d
feat: added patch update project test
davidalexandru7013 3b76531
feat: tests for patch update project
davidalexandru7013 f0a05e2
chore: added get project by id and tests back
davidalexandru7013 d6db244
chore: use rest boolean for clients and tests
davidalexandru7013 a04902a
chore: send query params
davidalexandru7013 2bc763f
feat: tests to avoid side-effects for api headers
davidalexandru7013 90f67bc
feat: clients can use rest path for delete and tests
davidalexandru7013 a823df4
chore: removed example file
davidalexandru7013 b849478
chore: rename test from new project to updated project
davidalexandru7013 657d4ec
chore: replace dict with Dict and extract latest version in a variable
davidalexandru7013 45d2ec8
chore: replace type from any to dict
davidalexandru7013 0998780
fix: added rest content type for post requests when calling rest route
davidalexandru7013 d4fe020
fix: added rest content type for put method and tests
davidalexandru7013 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 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 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 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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import abc | ||
import json | ||
from typing import Any, Dict, List | ||
|
||
from deprecation import deprecated # type: ignore | ||
|
This file contains 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
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.
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.
I'm not sure if we should keep consistency here with a rest parameter or not. I know it would be useless, and need to be set to true. It's just triggering my OCD having this lack of uniformity of methods 🙈
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.
According to the documentation(https://snyk.docs.apiary.io/#reference) there is no endpoint which makes use of patch verb in V1.