# msmfathih/restapiautomation architecture

> Architecture diagram of the GitHub repository msmfathih/restapiautomation, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/msmfathih/restapiautomation
- Repository: https://github.com/msmfathih/restapiautomation

## Overview

This repository is a collection of Python API checks and web-admin test code, not an application backend. Its visible workflows send requests to external APIs and inspect responses; separate scripts validate flight and booking payloads, while the web-app area contains admin tests and page locators. The README is empty, and the excerpts do not show how the admin tests use the locators or how the larger schema-validation modules obtain their payloads, so those connections are omitted.

Main entry points: [`APIRequest/RestfulAPI/AllRequest.py`](https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/RestfulAPI/AllRequest.py) (REST request checks), [`APIRequest/Call center request/royalFoodGalleryGET.py`](https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/Call%20center%20request/royalFoodGalleryGET.py) (Gallery GET checks), [`APIRequest/RestfulAPI/responseTime.py`](https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/RestfulAPI/responseTime.py) (Response-time check), [`APIRequest/RestfulAPI/scrap.py`](https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/RestfulAPI/scrap.py) (Product scraping)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api_checks["API checks"]
  node_rest_requests["REST request checks<br/>[AllRequest.py]"]
  node_gallery_checks["Gallery GET checks"]
  node_response_time["Response-time check<br/>[responseTime.py]"]
  node_scraping["Product scraping<br/>[scrap.py]"]
  node_schema_validation["API schema validation"]
end

subgraph group_air_booking["Air and booking"]
  node_flight_schema["Flight schema checks"]
  node_flight_response["Flight response checks"]
  node_tracking_checks["Tracking checks<br/>[VerifyTracking.py]"]
  node_booking_checks["Booking response checks<br/>[AWBBookingTest3.py]"]
  node_modify_booking["Modify booking checks"]
end

subgraph group_call_center["Call center"]
  node_call_post["Call alert POST"]
  node_call_put["Generic PUT check<br/>[validatePUT.py]"]
end

subgraph group_admin_ui["Admin UI"]
  node_chicken_order_tests["Chicken order tests"]
  node_chicken_order_tests_2["Chicken order tests 2"]
  node_appointment_tests["Appointment tests"]
  node_web_order_tests["Web order tests"]
  node_web_search_tests["Order search tests"]
  node_multiple_order_tests["Multi-item order tests"]
  node_dashboard_locators["Dashboard locators"]
  node_appointment_locators["Appointment locators"]
end

node_tester(("Test operator"))
node_gorest{{"GoREST API"}}
node_royalfood{{"Royal Food API"}}
node_amazon{{"Amazon search"}}
node_zabehaty_alert{{"Zabehaty alert API"}}
node_example_api{{"Example resource API"}}

node_tester -->|"runs"| node_rest_requests
node_rest_requests -->|"sends requests"| node_gorest
node_tester -->|"runs"| node_gallery_checks
node_gallery_checks -->|"checks GET"| node_royalfood
node_tester -->|"runs"| node_response_time
node_response_time -->|"measures GET"| node_zabehaty_alert
node_tester -->|"runs"| node_scraping
node_scraping -->|"fetches HTML"| node_amazon
node_tester -->|"runs"| node_call_post
node_call_post -->|"posts alert"| node_zabehaty_alert
node_tester -->|"runs"| node_call_put
node_call_put -->|"sends PUT"| node_example_api

click node_rest_requests "https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/RestfulAPI/AllRequest.py"
click node_gallery_checks "https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/Call%20center%20request/royalFoodGalleryGET.py"
click node_response_time "https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/RestfulAPI/responseTime.py"
click node_scraping "https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/RestfulAPI/scrap.py"
click node_schema_validation "https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/RestfulAPI/schemaValidation.py"
click node_flight_schema "https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/AppCrashesTest/FlighSchemaValidation.py"
click node_flight_response "https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/AppCrashesTest/flighResponseTest.py"
click node_tracking_checks "https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/AppCrashesTest/VerifyTracking.py"
click node_booking_checks "https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/AppCrashesTest/AWBBookingTest3.py"
click node_modify_booking "https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/AppCrashesTest/modifyBookingTest.py"
click node_call_post "https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/Call%20center%20request/callCenterIntegrationPOST.py"
click node_call_put "https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/Call%20center%20request/validatePUT.py"
click node_chicken_order_tests "https://github.com/msmfathih/restapiautomation/blob/master/Tests/test_admin_chickenorder.py"
click node_chicken_order_tests_2 "https://github.com/msmfathih/restapiautomation/blob/master/Tests/test_admin_chickenorder2.py"
click node_appointment_tests "https://github.com/msmfathih/restapiautomation/blob/master/Tests/test_main_category_appmt.py"
click node_web_order_tests "https://github.com/msmfathih/restapiautomation/blob/master/Zabehaty%20Web%20App/Tests/test_chickenorder.py"
click node_web_search_tests "https://github.com/msmfathih/restapiautomation/blob/master/Zabehaty%20Web%20App/Tests/test_chickenorderSearch.py"
click node_multiple_order_tests "https://github.com/msmfathih/restapiautomation/blob/master/Zabehaty%20Web%20App/Tests/test_multiple_order_items.py"
click node_dashboard_locators "https://github.com/msmfathih/restapiautomation/blob/master/PageLocators/dashboard_page_locators.py"
click node_appointment_locators "https://github.com/msmfathih/restapiautomation/blob/master/PageLocators/appointment_locators.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_rest_requests,node_gallery_checks,node_response_time,node_scraping,node_schema_validation toneBlue
class node_flight_schema,node_flight_response,node_tracking_checks,node_booking_checks,node_modify_booking toneAmber
class node_call_post,node_call_put,node_gorest,node_royalfood,node_zabehaty_alert,node_example_api toneMint
class node_chicken_order_tests,node_chicken_order_tests_2,node_appointment_tests,node_web_order_tests,node_web_search_tests,node_multiple_order_tests,node_dashboard_locators,node_appointment_locators toneRose
class node_tester,node_amazon toneIndigo
```

## Components

### API checks

- [REST request checks](https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/RestfulAPI/AllRequest.py): `APIRequest/RestfulAPI/AllRequest.py`
- [Gallery GET checks](https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/Call%20center%20request/royalFoodGalleryGET.py): `APIRequest/Call center request/royalFoodGalleryGET.py`
- [Response-time check](https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/RestfulAPI/responseTime.py): `APIRequest/RestfulAPI/responseTime.py`
- [Product scraping](https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/RestfulAPI/scrap.py): `APIRequest/RestfulAPI/scrap.py`
- [API schema validation](https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/RestfulAPI/schemaValidation.py): `APIRequest/RestfulAPI/schemaValidation.py`

### Air and booking

- [Flight schema checks](https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/AppCrashesTest/FlighSchemaValidation.py): `APIRequest/AppCrashesTest/FlighSchemaValidation.py`
- [Flight response checks](https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/AppCrashesTest/flighResponseTest.py): `APIRequest/AppCrashesTest/flighResponseTest.py`
- [Tracking checks](https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/AppCrashesTest/VerifyTracking.py): `APIRequest/AppCrashesTest/VerifyTracking.py`
- [Booking response checks](https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/AppCrashesTest/AWBBookingTest3.py): `APIRequest/AppCrashesTest/AWBBookingTest3.py`
- [Modify booking checks](https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/AppCrashesTest/modifyBookingTest.py): `APIRequest/AppCrashesTest/modifyBookingTest.py`

### Call center

- [Call alert POST](https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/Call%20center%20request/callCenterIntegrationPOST.py): `APIRequest/Call center request/callCenterIntegrationPOST.py`
- [Generic PUT check](https://github.com/msmfathih/restapiautomation/blob/master/APIRequest/Call%20center%20request/validatePUT.py): `APIRequest/Call center request/validatePUT.py`

### Admin UI

- [Chicken order tests](https://github.com/msmfathih/restapiautomation/blob/master/Tests/test_admin_chickenorder.py): `Tests/test_admin_chickenorder.py`
- [Chicken order tests 2](https://github.com/msmfathih/restapiautomation/blob/master/Tests/test_admin_chickenorder2.py): `Tests/test_admin_chickenorder2.py`
- [Appointment tests](https://github.com/msmfathih/restapiautomation/blob/master/Tests/test_main_category_appmt.py): `Tests/test_main_category_appmt.py`
- [Web order tests](https://github.com/msmfathih/restapiautomation/blob/master/Zabehaty%20Web%20App/Tests/test_chickenorder.py): `Zabehaty Web App/Tests/test_chickenorder.py`
- [Order search tests](https://github.com/msmfathih/restapiautomation/blob/master/Zabehaty%20Web%20App/Tests/test_chickenorderSearch.py): `Zabehaty Web App/Tests/test_chickenorderSearch.py`
- [Multi-item order tests](https://github.com/msmfathih/restapiautomation/blob/master/Zabehaty%20Web%20App/Tests/test_multiple_order_items.py): `Zabehaty Web App/Tests/test_multiple_order_items.py`
- [Dashboard locators](https://github.com/msmfathih/restapiautomation/blob/master/PageLocators/dashboard_page_locators.py): `PageLocators/dashboard_page_locators.py`
- [Appointment locators](https://github.com/msmfathih/restapiautomation/blob/master/PageLocators/appointment_locators.py): `PageLocators/appointment_locators.py`

### Other components

- **Test operator**
- **GoREST API**
- **Royal Food API**
- **Amazon search**
- **Zabehaty alert API**
- **Example resource API**

## Connections

- Test operator → REST request checks: runs (evidence: `APIRequest/RestfulAPI/AllRequest.py`)
- REST request checks → GoREST API: sends requests (evidence: `APIRequest/RestfulAPI/AllRequest.py`)
- Test operator → Gallery GET checks: runs (evidence: `APIRequest/Call center request/royalFoodGalleryGET.py`)
- Gallery GET checks → Royal Food API: checks GET (evidence: `APIRequest/Call center request/royalFoodGalleryGET.py`)
- Test operator → Response-time check: runs (evidence: `APIRequest/RestfulAPI/responseTime.py`)
- Response-time check → Zabehaty alert API: measures GET (evidence: `APIRequest/RestfulAPI/responseTime.py`)
- Test operator → Product scraping: runs (evidence: `APIRequest/RestfulAPI/scrap.py`)
- Product scraping → Amazon search: fetches HTML (evidence: `APIRequest/RestfulAPI/scrap.py`)
- Test operator → Call alert POST: runs (evidence: `APIRequest/Call center request/callCenterIntegrationPOST.py`)
- Call alert POST → Zabehaty alert API: posts alert (evidence: `APIRequest/Call center request/callCenterIntegrationPOST.py`)
- Test operator → Generic PUT check: runs (evidence: `APIRequest/Call center request/validatePUT.py`)
- Generic PUT check → Example resource API: sends PUT (evidence: `APIRequest/Call center request/validatePUT.py`)
