codeforpdx / recordexpungPDX

A project to automate the expungement of qualifying criminal records in Oregon. This project is done in conjunction with Qiu-Qiu Law.
https://recordsponge.com
MIT License
49 stars 87 forks source link

Endpoint: /api/search #48

Closed erikjasso closed 4 years ago

erikjasso commented 5 years ago

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.

erikjasso commented 5 years ago

See src/backend/expungeservice/endpoints/hello.py for an example of a Flask endpoint

maxkwallace commented 5 years ago

@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.

wittejm commented 4 years ago

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.