-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi_openapi.json
More file actions
14 lines (14 loc) · 1.22 KB
/
api_openapi.json
File metadata and controls
14 lines (14 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},
"paths":{"/ask/":{"post":{"summary":"Ask Sales Question","operationId":"ask_sales_question_ask__post",
"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryRequest"}}},"required":true},
"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},
"422":{"description":"Validation Error",
"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},
"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},
"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},
"QueryRequest":{"properties":{"merchantId":{"type":"integer","title":"Merchantid"},
"query":{"type":"string","title":"Query"}},"type":"object","required":["merchantId","query"],
"title":"QueryRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},
"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},
"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],
"title":"ValidationError"}}}}