NASA-IMPACT / COSMOS

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.
https://sde-indexing-helper.nasa-impact.net/
3 stars 1 forks source link

Extending the Api Class in sinequa_api.py to Include Support for the engine.sql Endpoint #1085

Closed saifrk closed 1 week ago

saifrk commented 2 weeks ago

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

#