Skip to content

Support pushing to a REST API#27

Open
matt-cornell wants to merge 10 commits intoFRC2713:mainfrom
FRC-4121:for-pr
Open

Support pushing to a REST API#27
matt-cornell wants to merge 10 commits intoFRC2713:mainfrom
FRC-4121:for-pr

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