phlask-map icon indicating copy to clipboard operation
phlask-map copied to clipboard

Deploy Database Input Validation

Open gcardonag opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe. I would like to take the database input validation script (https://github.com/phlask/phlask-map/issues/181) and expose it as an API that is accessible from the internet.

This could be run using AWS Lambda + Python/Node.JS/etc with a layer in front to provide API-like interfacing (ex - API Gateway). Ideally, the deployment could be simplified for future maintenance using something like the Serverless framework (https://www.serverless.com/)

This could be deployed to https://github.com/phlask/phlask-data-handlers

Describe the solution you'd like An API endpoint (ex- validate.api.phlask.me) accepts a data input and returns a 200 OK status if the input is valid and a 500 Error if the input is invalid.

TODO @gcardonag : Provide sample API requests for testing.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

gcardonag avatar Nov 17 '21 01:11 gcardonag