mindsdb api create datasource question #1967
-
Hi, I have been looking at this https://apidocs.mindsdb.com/?version=latest#5cb802e0-d458-4ffc-9fee-fbf77b69baa6 but I am not sure which arguments I need to pass into the body in order to achieve the example above. For example, how would I pass in "Query"? Also, is there also an example for creating datasource from sdk? I have been reading this https://github.com/mindsdb/mindsdb_js_sdk#readme but not find so far. Thank you for reading. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @henry145145 that page in our docs was removed, but looks like it is still indexed on search. With the latest version of MindsDB, the data sources are just connection to the database where you pass the SELECT statement to get the data, you can check the code https://github.com/mindsdb/mindsdb/tree/staging/mindsdb/api/httphttps://github.com/mindsdb/mindsdb/tree/staging/mindsdb/api/http. Is it there specific requirements for using the REST API? If not, I would suggest you use our SQL API because it is well supported and maintained. |
Beta Was this translation helpful? Give feedback.
Hey @henry145145 that page in our docs was removed, but looks like it is still indexed on search. With the latest version of MindsDB, the data sources are just connection to the database where you pass the SELECT statement to get the data, you can check the code https://github.com/mindsdb/mindsdb/tree/staging/mindsdb/api/httphttps://github.com/mindsdb/mindsdb/tree/staging/mindsdb/api/http. Is it there specific requirements for using the REST API? If not, I would suggest you use our SQL API because it is well supported and maintained.