-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
60 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,11 +52,11 @@ def on_get_by_id(self, _req, resp, id=None): | |
""" | ||
Return a user. | ||
:param str id: [in=path, required] User ID | ||
:response 200 user: User was retrieved | ||
:response 400: Invalid query parameter | ||
:param str id: [in=path, required] User ID | ||
:response 200 user: User was retrieved | ||
:response 400: Invalid query parameter | ||
:return json: | ||
:return [json,xml]: | ||
""" | ||
try: | ||
resp.media = users[int(id)] | ||
|
@@ -104,10 +104,10 @@ def on_get(self, req, resp): | |
:param str username: [in=query] Username | ||
:param str email: [in=query [email protected]] Email | ||
:param list[int] ids: [in=query] List of IDs | ||
:response 200 users: Users were retrieved | ||
:response 401: Invalid Authorization | ||
:return json: | ||
:return [json xml]: Return JSON of users | ||
""" | ||
results = [] | ||
p = req.params | ||
|
@@ -131,6 +131,7 @@ def on_post(self, req, resp): | |
:param str email: [in=body required=true] Email | ||
:param object config: [in=body] Configuration data | ||
:accepts [json xml]: The body content type | ||
:return json: | ||
""" | ||
p = req.params | ||
|
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