Skip to content

Day 4: API Testing with Postman - #139

Open
Bhavish27 wants to merge 5 commits into
mainfrom
feature/BhavishReddy-day1
Open

Day 4: API Testing with Postman#139
Bhavish27 wants to merge 5 commits into
mainfrom
feature/BhavishReddy-day1

Conversation

@Bhavish27

Copy link
Copy Markdown

Overview
Implemented and tested a POST API using FastAPI. The API accepts user data and returns a structured response. All endpoints were tested thoroughly using Postman.

What I Did
Created a FastAPI application using FastAPI

Defined request schema using Pydantic

Implemented:

GET / → Basic status check
POST /user-info → Accepts user data (name, age)
API Testing (Postman)
Tested all endpoints using Postman with different scenarios:

Successful Case
Sent valid JSON data
Verified correct response and message
Edge Cases Tested
Missing fields (e.g., age)
Incorrect data types (e.g., age as string)
Empty request body
Verified proper validation errors (422 Unprocessable Entity)

Proof of Work
Screenshots of:

Successful API response -

postman postman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant