-
Notifications
You must be signed in to change notification settings - Fork 1
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
Implement backend endpoint for simulated search results based on GitHub Finesse Data #2
Comments
thanks for taking the time to create very complete issues! |
@k-allagbe I see the checklist is not updated. were all the tasks completed or some things postponed to future issues? |
The implementation is a little different: we have a separate endpoint for each search option. I missed the |
Summary
Create a Flask endpoint
/search
in the Finesse-Backend to serve simulated search results. The endpoint should fetch JSON file contents from a specified GitHub repository and return the file that matches the search query included in the POST request. It should also distinguish between requests for simulated data and requests for real data, which should be fetched from a different source.Details
useSimulatedData
) is set toTrue
in the POST request's JSON payload.useSimulatedData
isTrue
, the server should:https://api.github.com/repos/ai-cfia/finesse-data/contents
.query
(case-insensitive).download_url
and return it as the response.useSimulatedData
isFalse
, or the parameter is missing, the server should not attempt to fetch simulated data. Instead, it should:Acceptance Criteria
/search
accepts a POST request with JSON payload containingquery
anduseSimulatedData
.useSimulatedData
isTrue
.The text was updated successfully, but these errors were encountered: