feature/9128_change_radio_endpoints #3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/9128_change_radio_endpoints"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added censored routes
Refactored the youtube streams into the main api calls with params being optional
This covers some but not all of the ticket requirements I think. This works for a direct swap of the paths as they are, but to align with the paths used by the rest of the system some of these will need to be POST requests, the parameters will need to come from the POST params instead of path vars. Here are some links that might provide some helpful info:
https://stackoverflow.com/questions/24892035/how-can-i-get-the-named-parameters-from-a-url-using-flask
https://swagger.io/docs/specification/describing-parameters/
https://swagger.io/docs/specification/describing-request-body/
@ -53,7 +54,6 @@ def radio_report():return jsonify(devices)@app.route("/radio/<radio>/connect")Don't remove this endpoint until the rest of the code handles connecting automatically to connected USB devices. We can add that feature and then remove this route in the same PR (different from this one).
@ -0,0 +1,10 @@endpoint_routes = {Expand this to have default routes so that the program can function without the data being supplied. I think the correct way to do this is:
route_path_ainstead of the empty string<filename>.[json|yml|whatever]exists in the current directory, then:That way we can actually use the microservice outside of the SDE, but if we are inside the SDE with the actual path details (supplied with the config file) then we can interact with the rest of the system.
Checkout
From your project repository, check out a new branch and test the changes.