-
-
Notifications
You must be signed in to change notification settings - Fork 765
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #414 from danballance/snake_case_params
Fixes #340 | Convert camelcased parameter names to Python style
- Loading branch information
Showing
9 changed files
with
284 additions
and
9 deletions.
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
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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env python3 | ||
def get_path_snake(some_id): | ||
data = {'SomeId': some_id} | ||
return data | ||
|
||
|
||
def get_path_shadow(id_): | ||
data = {'id': id_} | ||
return data | ||
|
||
|
||
def get_query_snake(some_id): | ||
data = {'someId': some_id} | ||
return data | ||
|
||
|
||
def get_query_shadow(list_): | ||
data = {'list': list_} | ||
return data | ||
|
||
|
||
def post_path_snake(some_id, some_other_id): | ||
data = {'SomeId': some_id, 'SomeOtherId': some_other_id} | ||
return data | ||
|
||
|
||
def post_path_shadow(id_, round_): | ||
data = {'id': id_, 'reduce': round_} | ||
return data | ||
|
||
|
||
def post_query_snake(some_id, some_other_id): | ||
data = {'someId': some_id, 'someOtherId': some_other_id} | ||
return data | ||
|
||
|
||
def post_query_shadow(id_, next_): | ||
data = {'id': id_, 'next': next_} | ||
return data |
Oops, something went wrong.