Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. @ns.route('/', methods=['GET', 'POST', 'PATCH', 'DELETE'])
  2. @api.response(404, 'not found.')
  3. class MyClass(Resource):
  4. @api.doc('Registration', responses={
  5. 200: 'OK'
  6. })
  7. def get(self):
  8. """ Code Here """
  9. return results
  10.  
  11. def post(self):
  12. """ Code Here """
  13. return results
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement