{"openapi":"3.0.1","info":{"title":"ChatWithCode","description":"Analyze, query, and generate code from Private and Public Github repos.","version":"v1"},"paths":{"/api/FetchRepoFileStructure":{"post":{"tags":["Repository"],"summary":"Fetches the file structure of a GitHub repository with a repositoryURL that looks like this: https://github.com/sdan/vlite","operationId":"FetchRepoFileStructure","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructureRequest"}}}},"responses":{"200":{"description":"Returns the file structure of the repository in an array with the file name","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructureResponse"}}}}}}},"/api/FetchFileContentsFromRepo":{"post":{"tags":["Repository"],"summary":"Fetches the contents of specified files in a GitHub repository with a repositoryURL that looks like this: https://github.com/sdan/vlite","operationId":"FetchFileContentsFromRepo","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryRequest"}}}},"responses":{"200":{"description":"Returns the contents of the requested files","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryResponse"}}}}}}},"/api/ExtractFunctionsFromRepoFiles":{"post":{"tags":["Repository"],"summary":"Extracts functions from specified files in a GitHub repository with a repositoryURL that looks like this: https://github.com/sdan/vlite","operationId":"ExtractFunctionsFromRepoFiles","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionExtractionRequest"}}}},"responses":{"200":{"description":"Returns the extracted functions from the files","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionExtractionResponse"}}}}}}}},"components":{"schemas":{"StructureRequest":{"type":"object","properties":{"repositoryUrl":{"type":"string"}}},"StructureResponse":{"type":"object","properties":{"fileStructure":{"type":"array","items":{"type":"string"}}}},"QueryRequest":{"type":"object","properties":{"repositoryUrl":{"type":"string"},"filePaths":{"type":"array","items":{"type":"string"}}}},"QueryResponse":{"type":"object","properties":{"fileContents":{"type":"array","items":{"type":"object","properties":{"filePath":{"type":"string"},"content":{"type":"string"}}}}}},"FunctionExtractionRequest":{"type":"object","properties":{"repositoryUrl":{"type":"string"},"filePaths":{"type":"array","items":{"type":"string"}}}},"FunctionExtractionResponse":{"type":"object","properties":{"functions":{"type":"array","items":{"type":"object","properties":{"filePath":{"type":"string"},"functions":{"type":"array","items":{"type":"string"}}}}}}}}}}