|
7 | 7 | create_sample_project, |
8 | 8 | get_project_detail, |
9 | 9 | set_project_schema, |
10 | | - delete_model_transformation, |
11 | 10 | delete_project, |
12 | | - generate_formula, |
13 | 11 | get_lineage, |
14 | 12 | get_lineage_info, |
15 | 13 | get_model_file_content, |
|
21 | 19 | get_project_tables, |
22 | 20 | get_projects_list, |
23 | 21 | get_sql_flow, |
24 | | - get_supported_models, |
25 | 22 | get_table_schema, |
26 | 23 | reload_model, |
27 | 24 | rollback_model_file_content, |
28 | | - save_model_file, |
29 | | - set_model_config_and_reference, |
30 | | - set_model_presentation, |
31 | | - set_model_transformation, |
32 | 25 | update_project, |
33 | | - validate_model_file, |
34 | 26 | write_database_file, |
35 | | - get_transformation_columns, |
36 | 27 | ) |
37 | 28 |
|
38 | 29 | # This API will initialize a new visitran project, |
|
116 | 107 | name="write-database-file", |
117 | 108 | ) |
118 | 109 |
|
119 | | -# This API will fetch the content of the file from the given path. |
120 | | -VALIDATE_MODEL_FILE = path( |
121 | | - "/<str:project_id>/no_code_model/<str:file_name>/validate", |
122 | | - validate_model_file, |
123 | | - name="validate-no-code-model-file", |
124 | | -) |
125 | | - |
126 | | -# This API is used to store the YAML data |
127 | | -# This method is depreciated |
128 | | -SAVE_MODEL_FILE = path( |
129 | | - "/<str:project_id>/no_code_model/<str:file_name>", |
130 | | - save_model_file, |
131 | | - name="save-no-code-model-file", |
132 | | -) |
133 | | - |
134 | | -# This API will capture the source and model data from the configuration window |
135 | | -SET_MODEL_CONFIG = path( |
136 | | - "/<str:project_id>/no_code_model/<str:file_name>/set-model", |
137 | | - set_model_config_and_reference, |
138 | | - name="set-no-code-model-config", |
139 | | -) |
140 | | - |
141 | | - |
142 | | -# This API will capture the source and model data from the configuration window |
143 | | -SET_MODEL_TRANSFORMATION = path( |
144 | | - "/<str:project_id>/no_code_model/<str:file_name>/set-transform", |
145 | | - set_model_transformation, |
146 | | - name="set-no-code-model-transformation", |
147 | | -) |
148 | | - |
149 | | -# This API will capture the source and model data from the configuration window |
150 | | -DELETE_MODEL_TRANSFORMATION = path( |
151 | | - "/<str:project_id>/no_code_model/<str:file_name>/delete-transform", |
152 | | - delete_model_transformation, |
153 | | - name="delete-no-code-model-transformation", |
154 | | -) |
155 | | - |
156 | | - |
157 | | -# This API will capture the source and model data from the configuration window |
158 | | -SET_MODEL_PRESENTATION = path( |
159 | | - "/<str:project_id>/no_code_model/<str:file_name>/set-presentation", |
160 | | - set_model_presentation, |
161 | | - name="set-no-code-model-presentation", |
162 | | -) |
163 | | - |
164 | | - |
165 | | -# This API will return the available columns in the specific transformation |
166 | | -GET_TRANSFORMATION_COLUMNS = path( |
167 | | - "/<str:project_id>/no_code_model/<str:file_name>/columns", |
168 | | - get_transformation_columns, |
169 | | - name="get-transformation-columns", |
170 | | -) |
171 | | - |
172 | 110 |
|
173 | 111 | # This API will fetch the content of the file from the given path. |
174 | 112 | FETCH_MODEL_TABLE_CONTENT = path( |
|
192 | 130 | name="export-no-code-model-file-csv", |
193 | 131 | ) |
194 | 132 |
|
195 | | -GET_SUPPORTED_REFERENCE_MODELS = path( |
196 | | - "/<str:project_id>/no_code_model/<str:file_name>/supported_references", |
197 | | - get_supported_models, |
198 | | - name="get-supported-reference-models", |
199 | | -) |
200 | 133 |
|
201 | 134 | GET_LINEAGE = path("/<str:project_id>/lineage", get_lineage, name="get-lineage") |
202 | 135 |
|
|
205 | 138 | # SQL Flow - Table-level lineage with ER diagram style visualization |
206 | 139 | GET_SQL_FLOW = path("/<str:project_id>/sql-flow", get_sql_flow, name="get-sql-flow") |
207 | 140 |
|
208 | | -# This API will generate formula from given prompt |
209 | | -GENERATE_FORMULA = path( |
210 | | - "/<str:project_id>/no_code_model/<str:model_name>/generate_formula", |
211 | | - generate_formula, |
212 | | - name="generate-formula", |
213 | | -) |
214 | 141 |
|
215 | 142 | DELETE_A_PROJECT = path("/<str:project_id>/delete", delete_project, name="delete_project") |
216 | 143 |
|
|
231 | 158 | GET_TABLE_CONTENT, |
232 | 159 | RELOAD_MODEL, |
233 | 160 | WRITE_DATABASE_FILE, |
234 | | - VALIDATE_MODEL_FILE, |
235 | | - SAVE_MODEL_FILE, |
236 | | - SET_MODEL_CONFIG, |
237 | | - SET_MODEL_TRANSFORMATION, |
238 | | - DELETE_MODEL_TRANSFORMATION, |
239 | | - SET_MODEL_PRESENTATION, |
240 | | - GET_TRANSFORMATION_COLUMNS, |
241 | 161 | FETCH_MODEL_TABLE_CONTENT, |
242 | 162 | EXPORT_MODEL_CONTENT_CSV, |
243 | | - GET_SUPPORTED_REFERENCE_MODELS, |
244 | 163 | ROLLBACK_MODEL_TABLE_CONTENT, |
245 | 164 | GET_LINEAGE, |
246 | 165 | GET_LINEAGE_INFO, |
247 | 166 | GET_SQL_FLOW, |
248 | 167 | GET_TABLE_SCHEMA, |
249 | | - GENERATE_FORMULA, |
250 | 168 | ] |
251 | 169 |
|
252 | 170 |
|
|
0 commit comments