How bala0303/api works
Purpose and Entry Points
This is a Maven-based Java API-testing training/practice repository. It contains standalone examples of HTTP operations, JSON-path extraction, and CRUD API chaining rather than a deployable application. pom.xml defines the build/runtime dependency boundary. src/main/java/org/example/Main.java is the nominal application entry point; most executable behavior is under test sources.
API Test Execution Layer
Individual Java classes act as API-test or request-driver entry points, likely run through Maven/test tooling or directly from an IDE:
• src/test/java/AutomationStepByStep/Get.java
• src/test/java/Practice/GetandPOST.java
• src/test/java/Practice/HttpRequests.java
These examples establish basic GET/POST and general HTTP request patterns.
REST-Assured Practice Boundary
REST-assured-focused exercises are isolated into dedicated packages:
• src/test/java/restAussured/Program1.java
• src/test/java/restAussured/Program2.java
• src/test/java/Udemy_Rahul_Shetty/Post.java
This separates tutorial/provider-specific request examples from broader practice code, although no shared production API client layer is visible.
CRUD API-Chaining Flows
Two packages model sequential user lifecycle operations. Their core control flow is: create a user, retain/extract its identifier or response value, retrieve it, update it, then delete it.
• src/test/java/api_Chaining/CreateUser.java
• src/test/java/api_Chaining/GetUser.java
• src/test/java/api_Chaining/UpdateUser.java
• src/test/java/api_Chaining/DeleteUser.java
A parallel student API flow uses the same staged pattern:
• src/test/java/studentAPIChaining/CreateUser.java
• src/test/java/studentAPIChaining/ExtractingValues.java
• src/test/java/studentAPIChaining/DeleteUser.java
The handoff between stages—particularly IDs and response values—is the repository’s primary data-flow boundary.
Response Parsing and Assertions
JSON response extraction/parsing is represented as a separate concern:
• src/test/java/JsonPathParsing/Program1.java
• src/test/java/studentAPIChaining/ExtractingValues.java
These components consume HTTP responses produced by request stages and expose values needed for validation or subsequent chained requests.
Runtime and External Dependencies
The repository runs on the JVM through Maven (pom.xml). It targets external HTTP API services, but the file tree does not identify endpoint hosts, credentials, databases, containers, or cloud infrastructure. API state is therefore external and lifecycle tests may depend on service availability, endpoint behavior, and cleanup via delete stages.
Documentation Assets
Training and test-design artifacts accompany the source but are not runtime components:
• API_Testing_Complete_Training.pptx
• API_Test_Case_Template.xlsx
• API_Testing_KT_Topics.xlsx
Main entry points: api_Chaining/CreateUser.java Create User · GetUser.java Get User · UpdateUser.java Update User · studentAPIChaining/CreateUser.java Create Student
Components 18
Build Runtime
- Maven Build · Defines JVM dependencies and test execution boundary.
pom.xml - Nominal Entry Point
src/main/java/org/example/Main.java - Test Execution · Most executable exercises run from test sources.
Request Examples
- GET Example
src/test/java/AutomationStepByStep/Get.java - GET and POST Practice
src/test/java/Practice/GetandPOST.java - HTTP Requests Practice
src/test/java/Practice/HttpRequests.java - REST-Assured Exercise 1
src/test/java/restAussured/Program1.java - REST-Assured Exercise 2
src/test/java/restAussured/Program2.java - REST-Assured POST
src/test/java/Udemy_Rahul_Shetty/Post.java
User CRUD Chain
- Create User
src/test/java/api_Chaining/CreateUser.java - Get User
src/test/java/api_Chaining/GetUser.java - Update User
src/test/java/api_Chaining/UpdateUser.java - Delete User · Cleans up external user state.
src/test/java/api_Chaining/DeleteUser.java
Student API Chain
- Create Student
src/test/java/studentAPIChaining/CreateUser.java - Extract Response Values · Parses response values for validation or follow-up requests.
src/test/java/studentAPIChaining/ExtractingValues.java - Delete Student · Cleans up external student state.
src/test/java/studentAPIChaining/DeleteUser.java
Other components
- External HTTP APIs · Service state and availability are outside this repository.
- JSONPath Parsing · Standalone JSON response extraction exercise.
src/test/java/JsonPathParsing/Program1.java
Connections 28
- Maven Build → Nominal Entry Point: builds
- Maven Build → Test Execution: runs
- Test Execution → GET Example: executes
- Test Execution → GET and POST Practice: executes
- Test Execution → HTTP Requests Practice: executes
- Test Execution → REST-Assured Exercise 1: executes
- Test Execution → REST-Assured Exercise 2: executes
- Test Execution → REST-Assured POST: executes
- Test Execution → Create User: executes
- Test Execution → Create Student: executes
- GET Example → External HTTP APIs: GET
- GET and POST Practice → External HTTP APIs: requests
- HTTP Requests Practice → External HTTP APIs: requests
- REST-Assured Exercise 1 → External HTTP APIs: REST calls
- REST-Assured Exercise 2 → External HTTP APIs: REST calls
- REST-Assured POST → External HTTP APIs: POST
- Create User → Get User: user ID
- Get User → Update User: user ID
- Update User → Delete User: user ID
- Create User → External HTTP APIs: creates
- Get User → External HTTP APIs: retrieves
- Update User → External HTTP APIs: updates
- Delete User → External HTTP APIs: deletes
- Create Student → Extract Response Values: response
- Extract Response Values → Delete Student: extracted ID
- Create Student → External HTTP APIs: creates
- Delete Student → External HTTP APIs: deletes
- External HTTP APIs → JSONPath Parsing: JSON response