Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
saifrk opened this issue Nov 8, 2024 · 0 comments
Assignees

Comments

@saifrk
Copy link
Collaborator

saifrk commented Nov 8, 2024

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

@saifrk saifrk self-assigned this Nov 8, 2024
saifrk pushed a commit that referenced this issue Nov 8, 2024
saifrk pushed a commit that referenced this issue Nov 8, 2024
saifrk pushed a commit that referenced this issue Nov 11, 2024
@saifrk saifrk closed this as completed Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant