Speed up development with full-stack environments for every branch.

Learn More

Data validation in Eve [Python]

613 Runs 2200 Views 316 Copies
Saved

Saved

eduardoejp 51

eduardoejp
published 4 years ago

from eve import Eve

Eve().run()

### Run these commands in the terminal to test the server:
# curl -i http://127.0.0.1:5000
# curl -i http://127.0.0.1:5000/people
# curl -d '[{"firstname": "barack", "lastname": "obama"}, {"firstname": "mitt", "lastname": "romney"}]' -H 'Content-Type: application/json'  http://127.0.0.1:5000/people
# curl -i http://127.0.0.1:5000/people/obama
Please login/signup to get access to the terminal.

Your session has timed out.

Dismiss (the page may not function properly).