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

Support pushing to a REST API #27

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

matt-cornell
Copy link

Hi! This project is really impressive, but one thing that could make it better is being able to POST the results somewhere. I added a field for the URL of the API to push to, along with an optional auth token that can be sent. There's a button on the modal that can be used to send the data.
The data is sent as JSON, with two fields: data, which is the text data from the form, and auth, which can be specified. The frontend doesn't do anything with it, it's purely for the backend to use.

In addition, a few form fields didn't have defaults, which was leading to undefined values being sent. That's been addressed in 9f45849 and 1f0b11a`.

@matt-cornell matt-cornell marked this pull request as ready for review February 26, 2024 15:36
@tytremblay
Copy link
Collaborator

Thanks for adding this! We're very busy getting ready for competition, but I'll look at this soon.

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.

2 participants