COSMOS is a web application designed to manage collections indexed in NASA's Science Discovery Engine (SDE), facilitating precise content selection and allowing metadata modification before indexing.
The Purpose of the card is to track the changes incorporated in Api class defined in Sinequa_api.py file
Functional Extension: sql_query Method
-Function: Extends the Api class to interact with the engine.sql endpoint, accessible exclusively via token-based authentication.
-Details: Executes SQL queries against the server, utilizing a secure token to authenticate and send SQL commands. The method receives the response in JSON format and returns it.
-Error Management: Raises detailed errors in case of request failures, to help troubleshoot and maintain reliable operation.
Description
The Purpose of the card is to track the changes incorporated in Api class defined in Sinequa_api.py file
Functional Extension: sql_query Method -Function: Extends the Api class to interact with the engine.sql endpoint, accessible exclusively via token-based authentication. -Details: Executes SQL queries against the server, utilizing a secure token to authenticate and send SQL commands. The method receives the response in JSON format and returns it. -Error Management: Raises detailed errors in case of request failures, to help troubleshoot and maintain reliable operation.
Implementation Considerations
-Secure Token Handling -Error Handling -Request Configuration -Response Processing
Deliverable
A Functional Extension of Api class that can be used to interact with the engine.sql endpoint
Dependencies
#