-
Notifications
You must be signed in to change notification settings - Fork 1
Feature/swagger #30
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
Feature/swagger #30
Conversation
…ed details in one loop
…gger documentation
…ter not using safe-get
…reference a definition in reference fields
@@ -32,9 +32,12 @@ def load_config_file(filename): | |||
@click.option('--email', prompt=True, help='Default From Email') | |||
@click.option('--bucket', prompt=True, help='S3 Bucket') | |||
@click.option('--fauna_key', prompt=True, help='Fauna Key') | |||
@click.option('--host', prompt=True, help='Host') |
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.
We should add the host option to the add-stage command.
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.
You can leave description in the init command.
@@ -22,11 +22,15 @@ class StripePackage(Collection): | |||
fields and functions to match your system. | |||
|
|||
Read and detail views are naturally public. Write operations | |||
requires authentication from admin group. | |||
requires authentication from admin group. While it grealty |
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.
typo "grealty" should be greatly
Changes
generate_swagger
function inpfunk/project.py
for generating the swagger API docs from collections that use views.init
now acceptsdescription
andhost
argument to generate needed info for JSON config fileFiles changed
pfunk/project.py
pfunk/cli.py
pfunk/tests/test_project
Documentation
The acquiring of swagger parts are as follows:
Response
Description
Acquired from the view's
get_query
docstringsStatus Code
Acquired from
response_class
class variable of a view. Error status_codes are also acquired from the class variablesOperation
HTTP Methods
Using the
http_methods
variable in a viewSummary
Notated as follows: ({http_method}) -> {collection_name}
Description
Docstrings of the view
Path
Endpoint
Endpoint path of the function, you can it in the
url
method of a view.