project Utilities / File Location Listing avatar

utilities/file_location_listing#4: Create Search Portal



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: proof-of-concept
Created: 28-Dec-23 16:55



Description

Will want to be able to search via HTTP, so need to create a webserver able to read indexes and answer queries



Toggle State Changes

Activity


assigned to @btasker

verified

mentioned in commit 9156df64d6ba234a3970cd51a2a31be96988af84

Commit: 9156df64d6ba234a3970cd51a2a31be96988af84 
Author: B Tasker                            
                            
Date: 2023-12-28T17:06:54.000+00:00 

Message

Implement basic flask server (utilities/file_location_listing#4)

+57 -0 (57 lines changed)

Created a basic server which answers queries provided on /search

curl -d '{"term":"foo", "type":"IMAGE"}' http://127.0.0.1:5000/search/

The response is a list containing stored information for each match pulled from the DB

verified

mentioned in commit c34599e13562154b3265134a986acf8929914f23

Commit: c34599e13562154b3265134a986acf8929914f23 
Author: B Tasker                            
                            
Date: 2023-12-28T17:46:37.000+00:00 

Message +984 -3 (987 lines changed)

OK, we have a working proof-of-concept

Screenshot_20231228_174817

Screenshot_20231228_174829