Closed erikjasso closed 4 years ago
See src/backend/expungeservice/endpoints/hello.py
for an example of a Flask endpoint
@ash-tamraz noticed this was assigned to you so I assume you're working on it. Moved it to "In Progress", feel free to move it back to "Backlog" and let me know if you think that's more appropriate.
Current design based on #361 and subsequent discussion:
GET /api/search
@maxkwallace you suggested this should be a GET method because it only saves logging data, but I still hesitate on that because the data we're recording is a processed result from the remote search results, e.g. number of eligible/ineligible records, or other non-trivial data collection. Feel a lot more like a POST.
Endpoint for searching the remote site. The web app will
POST
to this endpoint with search params in the body, and the endpoint will make a request of the remote site.Data format TBD.