{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/dashboards-widgets":{"post":{"summary":"Get Reports","operationId":"get_reports_dashboards_widgets_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardServiceSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/widgets":{"post":{"summary":"Get Report","operationId":"get_report_widgets_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetServiceSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/add-product":{"post":{"summary":"Post Products","description":"Create new Tenant using API","operationId":"post_products_add_product_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/add-dashboard":{"post":{"summary":"Post Dashboards","description":"Create new Dashboard using API","operationId":"post_dashboards_add_dashboard_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/add-widget":{"post":{"summary":"Post Widgets","description":"Create new Widget using API","operationId":"post_widgets_add_widget_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/update-widget":{"get":{"summary":"Update Widget Page","operationId":"update_widget_page_update_widget_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Post Update Widget","description":"Create new Widget using API","operationId":"post_update_widget_update_widget_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetUpdateSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/add-tenants_dashboards_mapping":{"post":{"summary":"Post Tenants Dashboards Mapping","description":"Create new Widget using API","operationId":"post_tenants_dashboards_mapping_add_tenants_dashboards_mapping_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantsDashboardsMappingSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health_check":{"get":{"summary":"Health Check","operationId":"health_check_health_check_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/token":{"post":{"summary":"Generate Token","operationId":"generate_token_token_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_generate_token_token_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin":{"get":{"summary":"Admin Page Load","operationId":"admin_page_load_admin_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Perform Login","operationId":"perform_login_admin_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_perform_login_admin_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin-dashboard":{"get":{"summary":"Index Page Load","operationId":"index_page_load_admin_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/create_product_form":{"post":{"summary":"Create Product Form","operationId":"create_product_form_create_product_form_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_create_product_form_create_product_form_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/create_dashboard_form":{"post":{"summary":"Create Dashboard Form","operationId":"create_dashboard_form_create_dashboard_form_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_create_dashboard_form_create_dashboard_form_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/create_widget_form":{"post":{"summary":"Create Widget Form","operationId":"create_widget_form_create_widget_form_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_create_widget_form_create_widget_form_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/create_TD_mapping_form":{"post":{"summary":"Create Td Mapping Form","operationId":"create_TD_mapping_form_create_TD_mapping_form_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_create_TD_mapping_form_create_TD_mapping_form_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/update_widget_form":{"post":{"summary":"Update Widget Form","operationId":"update_widget_form_update_widget_form_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_update_widget_form_update_widget_form_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/view_products/{id}":{"get":{"summary":"Get Product Data","operationId":"get_product_data_view_products__id__get","parameters":[{"required":true,"schema":{"type":"string","title":"Id"},"name":"id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/view_products/":{"get":{"summary":"Get Product Data","operationId":"get_product_data_view_products__get","parameters":[{"required":false,"schema":{"type":"string","title":"Id"},"name":"id","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/view_dashboards/{id}":{"get":{"summary":"Get Dashboard Data","operationId":"get_dashboard_data_view_dashboards__id__get","parameters":[{"required":true,"schema":{"type":"string","title":"Id"},"name":"id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/view_dashboards/":{"get":{"summary":"Get Dashboard Data","operationId":"get_dashboard_data_view_dashboards__get","parameters":[{"required":false,"schema":{"type":"string","title":"Id"},"name":"id","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/view_widgets/{id}":{"get":{"summary":"Get Widgets Data","operationId":"get_widgets_data_view_widgets__id__get","parameters":[{"required":true,"schema":{"type":"string","title":"Id"},"name":"id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/view_widgets/":{"get":{"summary":"Get Widgets Data","operationId":"get_widgets_data_view_widgets__get","parameters":[{"required":false,"schema":{"type":"string","title":"Id"},"name":"id","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/view_TD_mapping_form/":{"get":{"summary":"Get Mapping Data","operationId":"get_mapping_data_view_TD_mapping_form__get","parameters":[{"required":false,"schema":{"type":"string","title":"Id"},"name":"id","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/view":{"post":{"summary":"Post Data","operationId":"post_data_view_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/request_audit_dashboard/":{"get":{"summary":"Get Request Audit Data","operationId":"get_request_audit_data_request_audit_dashboard__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/sample/":{"get":{"summary":"Get Sample Dash Data","operationId":"get_sample_dash_data_sample__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/sample":{"get":{"summary":"Get Sample Dash Data","operationId":"get_sample_dash_data_sample_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Generate Sample Dash","operationId":"generate_sample_dash_sample_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_generate_sample_dash_sample_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/download_products_csv":{"get":{"summary":"Download Products Csv","operationId":"download_products_csv_download_products_csv_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/download_dashboards_csv":{"get":{"summary":"Download Dashboards Csv","operationId":"download_dashboards_csv_download_dashboards_csv_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/download_widgets_csv":{"get":{"summary":"Download Widgets Csv","operationId":"download_widgets_csv_download_widgets_csv_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/download_mappings_csv":{"get":{"summary":"Download Mappings Csv","operationId":"download_mappings_csv_download_mappings_csv_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Body_create_TD_mapping_form_create_TD_mapping_form_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_create_TD_mapping_form_create_TD_mapping_form_post"},"Body_create_dashboard_form_create_dashboard_form_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_create_dashboard_form_create_dashboard_form_post"},"Body_create_product_form_create_product_form_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_create_product_form_create_product_form_post"},"Body_create_widget_form_create_widget_form_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_create_widget_form_create_widget_form_post"},"Body_generate_sample_dash_sample_post":{"properties":{"dropdown_student_id":{"type":"string","title":"Dropdown Student Id"},"dropdown_testtype":{"type":"string","title":"Dropdown Testtype"}},"type":"object","title":"Body_generate_sample_dash_sample_post"},"Body_generate_token_token_post":{"properties":{"grant_type":{"type":"string","pattern":"password","title":"Grant Type"},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"scope":{"type":"string","title":"Scope","default":""},"client_id":{"type":"string","title":"Client Id"},"client_secret":{"type":"string","title":"Client Secret"}},"type":"object","required":["username","password"],"title":"Body_generate_token_token_post"},"Body_perform_login_admin_post":{"properties":{"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"}},"type":"object","title":"Body_perform_login_admin_post"},"Body_update_widget_form_update_widget_form_post":{"properties":{"widget_id":{"type":"string","title":"Widget Id"},"last_modified_by":{"type":"string","title":"Last Modified By"},"widget_name":{"type":"string","title":"Widget Name"},"sql_template_query":{"type":"string","title":"Sql Template Query"},"query_metadata":{"type":"string","title":"Query Metadata"},"is_active":{"type":"string","title":"Is Active"}},"type":"object","required":["widget_id","last_modified_by"],"title":"Body_update_widget_form_update_widget_form_post"},"DashboardSchema":{"properties":{"id":{"type":"string","title":"Id"},"dashboard_name":{"type":"string","title":"Dashboard Name"},"query_metadata":{"type":"object","title":"Query Metadata"},"version_id":{"type":"integer","title":"Version Id"},"last_modified_by":{"type":"string","title":"Last Modified By"},"is_active":{"type":"boolean","title":"Is Active"},"created_by":{"type":"string","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["dashboard_name","query_metadata","version_id","last_modified_by","is_active","created_by"],"title":"DashboardSchema"},"DashboardServiceSchema":{"properties":{"dashboard_id":{"type":"string","title":"Dashboard Id"},"product_id":{"type":"string","title":"Product Id"},"tenant_id":{"type":"string","title":"Tenant Id"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"filters":{"type":"object","title":"Filters"},"data_source":{"type":"string","title":"Data Source"}},"type":"object","title":"DashboardServiceSchema"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ProductSchema":{"properties":{"id":{"type":"string","title":"Id"},"product_name":{"type":"string","title":"Product Name"},"secret_key":{"type":"string","title":"Secret Key"},"is_active":{"type":"boolean","title":"Is Active"},"created_by":{"type":"string","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["product_name","secret_key","is_active","created_by"],"title":"ProductSchema"},"TenantsDashboardsMappingSchema":{"properties":{"id":{"type":"string","title":"Id"},"product_id":{"type":"string","title":"Product Id"},"tenant_id":{"type":"string","title":"Tenant Id"},"dashboard_id":{"type":"string","title":"Dashboard Id"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["product_id","tenant_id","dashboard_id","is_active"],"title":"TenantsDashboardsMappingSchema"},"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"},"WidgetSchema":{"properties":{"id":{"type":"string","title":"Id"},"dashboard_id":{"type":"string","title":"Dashboard Id"},"widget_name":{"type":"string","title":"Widget Name"},"sql_template_query":{"type":"string","title":"Sql Template Query"},"query_metadata":{"type":"object","title":"Query Metadata"},"version_id":{"type":"integer","title":"Version Id"},"is_active":{"type":"boolean","title":"Is Active"},"created_by":{"type":"string","title":"Created By"},"last_modified_by":{"type":"string","title":"Last Modified By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["dashboard_id","widget_name","sql_template_query","query_metadata","version_id","is_active","created_by","last_modified_by"],"title":"WidgetSchema"},"WidgetServiceSchema":{"properties":{"dashboard_id":{"type":"string","title":"Dashboard Id"},"widget_id":{"type":"string","title":"Widget Id"},"product_id":{"type":"string","title":"Product Id"},"tenant_id":{"type":"string","title":"Tenant Id"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"filters":{"type":"object","title":"Filters"},"data_source":{"type":"string","title":"Data Source"}},"type":"object","title":"WidgetServiceSchema"},"WidgetUpdateSchema":{"properties":{"widget_id":{"type":"string","title":"Widget Id"},"dashboard_id":{"type":"string","title":"Dashboard Id"},"widget_name":{"type":"string","title":"Widget Name"},"sql_template_query":{"type":"string","title":"Sql Template Query"},"query_metadata":{"type":"object","title":"Query Metadata"},"is_active":{"type":"boolean","title":"Is Active"},"last_modified_by":{"type":"string","title":"Last Modified By"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["widget_id","last_modified_by"],"title":"WidgetUpdateSchema"}}}}