How on earth do I get the post data from a flask app using blueprints and flask-restfull? why so hard?
In my views.py file
api.add_resource(register, '/api/driver/register')
In my resource file:
from flask_restful import fields, marshal_with, reqparse, Resource
class register(Resource):
def post(self):
ACCESS MY POST DATA!!!!!!!!!!!!!
return 'omg'
curl -H "Content-Type: application/json" -X POST -d '{"f":"xyz","u":"xyz"}' http://0.0.0.0:5000/api/driver/register