Skip to content

Day4 & Day5 : Postman Testing and FastApi Calculator Api created - #140

Open
SunnySudarsi wants to merge 2 commits into
mainfrom
Guruchandra
Open

Day4 & Day5 : Postman Testing and FastApi Calculator Api created#140
SunnySudarsi wants to merge 2 commits into
mainfrom
Guruchandra

Conversation

@SunnySudarsi

Copy link
Copy Markdown
Contributor
Screenshot 2026-03-27 193430 Screenshot 2026-03-27 200303 Screenshot 2026-03-27 200225 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 -

Screenshot 2026-03-27 191459 Screenshot 2026-03-27 192853 Screenshot 2026-03-27 192924

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