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

Add web server for serving validator over an API #1

Merged
merged 4 commits into from
Oct 29, 2024

Conversation

mrchrisadams
Copy link
Member

@mrchrisadams mrchrisadams commented Oct 29, 2024

This PR adds a the ability to run the carbon-txt as a web service, using the bundled web server with django, or a production quality one, Granian.

The API is provided by Django-Ninja, a fast, well documented API server, that internally uses Pydantic to validate submitted data.

This allows us to use the same validation logic in the CLI and the web server (and ideally in the main admin-portal django platform)

@mrchrisadams mrchrisadams merged commit c4c1429 into main Oct 29, 2024
2 checks passed
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 this pull request may close these issues.

1 participant