-
Notifications
You must be signed in to change notification settings - Fork 339
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Ask a question
In the minimal example of doc:
from flask_restx import Resource, Api
app = Flask(__name__)
api = Api(app)
@api.route('/hello')
class HelloWorld(Resource):
def get(self):
return {'hello': 'world'}
if __name__ == '__main__':
app.run(debug=True)it invoked the add_resource() by api directly; however, it seems like it only exists in Namespace. Is the doc wrong?
Additional context
flask-restx==0.3.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested