Skip to content
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

[POST-MVP] Add API endpoint to validate one row #29

Open
aharjati opened this issue Aug 10, 2023 · 2 comments
Open

[POST-MVP] Add API endpoint to validate one row #29

aharjati opened this issue Aug 10, 2023 · 2 comments

Comments

@aharjati
Copy link
Contributor

Add API endpoint that receive and validate one row data.

This endpoint shall receive data in JSON format with keys sets to FIG column names

This endpoint shall return response in JSON format.
When the data contains error(s), response shall contain error code(s) and message(s)
When the data is valid, response shall contain successful message.

@aharjati aharjati self-assigned this Aug 10, 2023
@aharjati
Copy link
Contributor Author

@hkeeler this is ticket to track the validate endpoint API work. do you have any details to add/change?

@hkeeler
Copy link
Member

hkeeler commented Aug 11, 2023

Here's the branch with structure output for validation results.

https://github.com/cfpb/regtech-data-validator/compare/structure-output

Most of the interesting bits related to how we may want to structure our API response is all in main.py.

This also includes changes to is_unique_column. Something about the Series being returned was making the JSON serialization fail. It's working now.

And there's also quite a few type checker fixups in there.

@aharjati aharjati linked a pull request Aug 17, 2023 that will close this issue
@jcadam14 jcadam14 changed the title Add API endpoint to validate one row [POST-MVP] Add API endpoint to validate one row Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants