I'm trying to make a CRUD REST API with Flask en SQlALchemy. I'm making request with the curl command on the linux shell but I cant get it to work. If I open a python shell and add the things manually they get added to the database.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>400 Bad Request</title>
<h1>Bad Request</h1>
<p>The browser (or proxy) sent a request that this server could not understand.</p>
@app.route('/create', methods = ['POST'])
def create():
username = request.form['username']
age = request.form['age']
email = request.form['email']
curl -X POST -F 'username=Juliana' -F 'age=87' -F 'email=juliana@.com' http://localhost:5000/create