Skip to content

rcgottlieb/badsec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using RESTFul APIs with Python

Requirements

  • git (version 2.32.0 (Apple Git-132) used)
  • Pyhon3.9 (version 3.9.10 used on macOS 12.2)
  • Docker to run the container conaining the RESTFul server (version 4.4.2 (73305) Docker Deskop used)
  • An image or url to a conainer running a RESTful server
  • Note: This project illustrates some native Python3 modules related to RESTFul development

How to run this

After you clone this repository in the terminal of your choice, run the following command:

Note that if the docker image doesn't exist it will be downloaded

$ docker run --rm -p 8888:8888 adhocteam/noclist

In another terminal or tab, from the project directory type:

$ python3 badsec.py

You should expect to see output of several userid's of users from the server as a list of dictionaries as such:

["9757263792576857988", "7789651288773276582", "16283886502782682407", "...etc"]

To run the unittests, type following:

$ python3 test_badsec.py

About

How to use REST with Python3 and urllib

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages