GitHub - anledry/rindus_assignment: Restful API integration test · GitHub
Skip to content

anledry/rindus_assignment

Folders and files

Repository files navigation

Rindus assignment

Restful API integration test

Description

Implementation of a Restful API to testing a shopping website

Requirements

  • Python 2.7
  • pip
  • web.py

Implementation details

  • Set the test date on Advance REST client

Install project

Server deployment

  • run python rest.py

Stop application

  • CTRL+C

Usage and examples

  • For try the REST app was used Advance REST client
    {
        "email": "cap@gmail.com",
        "password": "c2hpZWxk"
    }

Result: *"response": "Hi Steve welcome to Amazon!"*

Image

  • Using curl
curl -X POST -H "Content-Type: application/json" -d '{"email":"cap@gmail.com","password":"c2hpZWxk"}' http://localhost:8080/login/

License

Feel free to use this code

About

Restful API integration test

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages