Guest User

Untitled

a guest
Jan 22nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. from flask_restplus import Resource, Api, fields
  2.  
  3. class Authentication(Resource):
  4. def post(self):
  5. return "Success"
  6.  
  7. from flask import Flask, request
  8. from flask_restplus import Resource, Api, fields
  9. from .authenticate import Authentication
  10.  
  11. application = Flask(__name__)
  12. api = Api(application,
  13. version='0.1',
  14. title='Our sample API',
  15. description='This is our sample API',
  16. )
  17. @api.add_resource(Authentication)
Add Comment
Please, Sign In to add comment