Skip to content

MonikaKaraszewska/PythonRequests

Repository files navigation

API Automation with Python

This repository contains scripts for learning and practicing API automation using Python. It includes examples of GET, DELETE, and POST requests, handling HTTP headers, parsing JSON responses, and working with cookies and user agents. The focus is on using the requests library along with pytest to write automated tests for various API endpoints.

Contents

  • API_automation: Scripts for basic API requests like GET, DELETE, and handling HTTP headers.
  • pytest_REST_API: Automated tests using pytest to validate different API behaviors.
  • Utilities: Helper functions, JSON parsing examples, and user-agent handling examples.

Technologies Used

  • Python: Programming language for scripting.
  • Requests: For making HTTP requests.
  • pytest: For automating API tests.