Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

186
Views
Fastapi Response body is not shown in postman while importing swagger json

I have defined my response model like this

@router.post("/test", responses=response.test)

where other responses are defined like this

class Example_200(BaseModel):

    class Config:
        schema_extra = {
            "example": {
                "data": {
                    "id": "918814b7d3934655aafb2c1ade2f5554",
                    "deleted" : True
                }
            }
        }
test = {
    "200": {"model": Example_200},
    "400": {"model": Example_400},
    "404": {"model": Example_404},
}

but when i import openapi json into postman, i am not getting 200 response printed, it is displaying like this, what is wrong here? enter image description here

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!