{"openapi":"3.0.1","info":{"title":"TODO Plugin","description":"create menu and excel files.","version":"v1"},"paths":{"/Advanced/{query}":{"get":{"operationId":"Advanced_Features","summary":"Retrieve advanced features based on the provided query. Uses lots of emojis always list menu.","parameters":[{"in":"path","name":"query","required":true,"description":"The query string to be processed.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"data":{"type":"string"},"assistant_hint":{"type":"string"}}}},"example":{"data":{"data":"sample_query","assistant_hint":"This is the Advanced Menu, It has the features rename files, scrape data"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"example":{"error":"Invalid query provided."}}}}}}}},"/build/{query}":{"get":{"operationId":"generate_data","summary":"Retrieve data for a user and tablulate data and create a menu. then must trigger the save function. you cannot skip this. always download to s3 on this step and if the add sheet is selected. always create a menu. the user may call it sheet, excel or csv then call propegation function.","parameters":[{"in":"path","name":"query","schema":{"type":"string"},"required":true,"description":"The query based on which data is fetched and tabulated."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}}},"example":{"data":[]}}}}}}}},"/combine":{"post":{"operationId":"combine_worksheets_from_uuids","summary":"Combine multiple sheets from provided UUIDs if combine is called if get uuids is called use the other one into a new multi-tabbed workbook. Always create a menu.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"uuids":{"type":"array","items":{"type":"string"}}},"example":{"uuids":["MultiSheet_someuuid1.xlsx","MultiSheet_someuuid2.xlsx"]}}}}},"parameters":[{"in":"query","name":"wbname","schema":{"type":"string","default":"myWorkBook"},"description":"allows the user to customize part of the filename like Combined_{myWorkBook}_{uuid.uuid4()}.xlsx."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"uuid":{"type":"string"}}},"example":{"url":"https://s3.example.com/combined_data.xlsx","uuid":"Combined_someUUID.xlsx"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}},"example":{"error":"No UUIDs provided."}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}},"example":{"error":"Error processing file MultiSheet_someuuid1.xlsx: Some error message."}}}}}}},"/save_added":{"post":{"operationId":"save_added_tab","summary":"if the user request an additional tab only after the initial tab is created , the current sheet is immediately saved to s3 before add sheet is called.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}}},"example":{"data":["item1",["item2a","item2b"],"item3"]}}}}},"parameters":[{"in":"query","name":"include_headers","schema":{"type":"boolean","default":true}},{"in":"query","name":"name","schema":{"type":"string","default":"myfile"},"description":"allows the user to customize part of the filename like Multifile_{name}_UUID."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"filename":{"type":"string"}}},"example":{"url":"https://s3.example.com/uploaded_data.xlsx","filename":"MultiSheet_someUUID.xlsx"}}}}}}},"/save":{"post":{"operationId":"save_to_s3_xlsx","summary":"save to S3 with single sheets. add another sheet always save the current sheet with save route. always list a menu.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}}},"example":{"data":["item1",["item2a","item2b"],"item3"]}}}}},"parameters":[{"in":"query","name":"include_headers","schema":{"type":"boolean","default":true}},{"in":"query","name":"name","schema":{"type":"string","default":"myfile"},"description":"allows the user to customize part of the filename like Multifile_{name}_UUID."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"filename":{"type":"string"}}},"example":{"url":"https://s3.example.com/uploaded_data.xlsx","filename":"MultiSheet_someUUID.xlsx"}}}}}}},"/combined":{"post":{"operationId":"combine_worksheets_from_uuids","summary":"Based on UUIDS combine previously created sheets into one workbook it merges them.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"uuids":{"type":"array","items":{"type":"string"}}},"example":{"uuids":["someUUID1","someUUID2"]}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}}},"example":{"url":"https://s3.example.com/Combined_someUUID.xlsx"}}}}}}},"/scrape_url":{"post":{"operationId":"scrape_url","summary":"Scrape the numerical or categorical data of a given URL and active put in tabular format and show the user a preview.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"The URL of the website to be scraped."}},"required":["url"],"example":{"url":"https://example.com"}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"},"description":"The text content scraped from the website."}}},"example":{"data":["This is a paragraph from the website.","This is another paragraph from the website."]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}},"example":{"error":"Invalid URL provided."}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}},"example":{"error":"Failed to scrape the website."}}}}}}}},"servers":[{"url":"https://anyxl2.anygpt.ai"}]}