Skip to content
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

Add support for documentation for standalone functions #109

Open
ghsatpute opened this issue May 5, 2017 · 0 comments
Open

Add support for documentation for standalone functions #109

ghsatpute opened this issue May 5, 2017 · 0 comments

Comments

@ghsatpute
Copy link

I'm trying to generate document for following function

"Some code ommitted"
@swagger.operation(
        notes='some random note',
        responseClass=str,
        nickname='upload',
        parameters=[
          ],
        responseMessages=[
            {
              "code": 201,
              "message": "Created. The URL of the created blueprint should be in the Location header"
            }
          ]
        )
@app.route('/hello')
def get(self, todo_id):
	return "Hello World!"

api.add_resource(get, '/hello')

When I try to run this I get
type object 'function' has no attribute 'methods'

Can we add support for standalone functions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant