Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from flask_restplus import Resource, Api, fields
- class Authentication(Resource):
- def post(self):
- return "Success"
- from flask import Flask, request
- from flask_restplus import Resource, Api, fields
- from .authenticate import Authentication
- application = Flask(__name__)
- api = Api(application,
- version='0.1',
- title='Our sample API',
- description='This is our sample API',
- )
- @api.add_resource(Authentication)
Add Comment
Please, Sign In to add comment