-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.json
1 lines (1 loc) · 2.79 KB
/
openapi.json
1
{"openapi":"3.0.2","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/v1/nlu/":{"post":{"tags":["nlu"],"summary":"Nlu","operationId":"nlu_v1_nlu__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NluPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/skills/":{"get":{"tags":["skills"],"summary":"Get Skills","operationId":"get_skills_v1_skills__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Skills V1 Skills Get","type":"array","items":{"$ref":"#/components/schemas/SkillSchema"}}}}}}},"post":{"tags":["skills"],"summary":"Create Skill","operationId":"create_skill_v1_skills__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillSchema"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/skills/{intent}":{"delete":{"tags":["skills"],"summary":"Delete Skill","operationId":"delete_skill_v1_skills__intent__delete","parameters":[{"required":true,"schema":{"title":"Intent","type":"string"},"name":"intent","in":"path"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"title":"HTTPValidationError","type":"object","properties":{"detail":{"title":"Detail","type":"array","items":{"$ref":"#/components/schemas/ValidationError"}}}},"NluPayload":{"title":"NluPayload","required":["input_text"],"type":"object","properties":{"input_text":{"title":"Input Text","type":"string"}}},"SkillSchema":{"title":"SkillSchema","required":["intent","utterances"],"type":"object","properties":{"intent":{"title":"Intent","type":"string"},"utterances":{"title":"Utterances","type":"array","items":{"type":"string"}},"slots":{"title":"Slots","type":"array","items":{"$ref":"#/components/schemas/SlotSchema"}}}},"SlotSchema":{"title":"SlotSchema","required":["type"],"type":"object","properties":{"type":{"title":"Type","type":"string"}}},"ValidationError":{"title":"ValidationError","required":["loc","msg","type"],"type":"object","properties":{"loc":{"title":"Location","type":"array","items":{"anyOf":[{"type":"string"},{"type":"integer"}]}},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}}}}}}