-
Notifications
You must be signed in to change notification settings - Fork 0
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
HTTP Server #7
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🚀 Feature
We need an HTTP server to communicate with the Ground Control Station.
This server will be listening for the following information from the GCS:
Eventually these routes will call other functions and kick off parts of the mission. For now it's fine to just receive the data and unmarshal it to a C++ struct.
Documentation
Create a page under obc on the wiki called http server. Enumerate each route and specify how their input body data should look like (or link to the protobuf message definition). Also specify the usage instructions for URL parameters, if there are any. If there is a response returned, explain it. Each route should have the possible HTTP status codes that can be returned by the route. If there are any headers expected, explain them as well.
For input request body, give an example of valid input in JSON. Also, give an examples of invalid input.
Show an example of how the response body would look like as well.
Testing
Create a mock HTTP Client that communicates with the server you spin up in the test functions. The mock client will try to make HTTP requests to the server and verify that the response received is correct.
The text was updated successfully, but these errors were encountered: