Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 967 Bytes

File metadata and controls

25 lines (17 loc) · 967 Bytes

JSONPlaceholderAPI

This project demonstrates the usage of the JSONPlaceholder API by making HTTP requests and retrieving data from various endpoints. It is implemented in Python using the requests library.

Installation

  1. Clone the repository to your local machine:https://github.com/radman-s/REST_API
  2. Navigate to the project directory: cd JSONPlaceholderAPI
  3. Install the required dependencies: pip install requests

Usage

  1. Run the main.py script: python main.py
  2. You will be prompted to choose an endpoint:
  • Enter 1 to display users information.
  • Enter 2 to display comments information.
  • Enter 3 to display albums information.
  • Enter 4 to display photos information.
  • Enter 5 to display todos information.
  1. The corresponding data will be retrieved from the JSONPlaceholder API and displayed on the console.

Acknowledgements