{"openapi":"3.0.1","info":{"title":"AnySheet","description":"A plugin that allows the user to tabulate data then preview it. It is then saved to a CSV File.","version":"v1"},"paths":{"/scrape_url":{"post":{"operationId":"scrape_url","summary":"Scrape the content 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."}}}}}}},"/Step1_make_csv/{query}":{"get":{"operationId":"generate_data","summary":"Retrieve data for a user and tablulate data. this is always the first step.","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":[]}}}}}}}},"/Step2_make_csv":{"post":{"operationId":"save_to_s3","summary":"Convert data to CSV and save to S3. Can only be done if preview menu is shown first. if there is too much text condense it. you cannot skip this step.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}}},"example":{"data":["item1","item2","item3"]}}}}},"parameters":[{"in":"query","name":"include_headers","schema":{"type":"boolean","default":true},"description":"Whether to include headers in the generated CSV."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"example":{"url":"https://s3.example.com/uploaded_data.csv"}}}}}}}}},"servers":[{"url":"https://anysh.anygpt.ai"}]}