Restful API integration test
Implementation of a Restful API to testing a shopping website
- Python 2.7
- pip
- web.py
- Set the test date on Advance REST client
- git clone https://github.com/anledry/rindus_assignment.git
- cd rindus_assignment/app
- run python rest.py
- CTRL+C
- For try the REST app was used Advance REST client
{
"email": "[email protected]",
"password": "c2hpZWxk"
}
Result: *"response": "Hi Steve welcome to Amazon!"*
Image
- Using curl
curl -X POST -H "Content-Type: application/json" -d '{"email":"[email protected]","password":"c2hpZWxk"}' http://localhost:8080/login/
Feel free to use this code