You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get() and receive() and other endpoints which get data from serial port should only be accessible via GET requests, and sending data should be accessible via POST requests.
Additionally, the names/terms of some RestApiHandler methods, such as add_endpoint(), are wrong, because it is actually adding a resource. Endpoints are different for different request methods. The method/decorator should be called something like add_conn_resource() instead.
The text was updated successfully, but these errors were encountered:
This isn't breaking change because we can create an alias for the add_endpoint() method but rename it to something else. Additionally, there is API versioning.
I will fix the second part of this issue later because there are too many places where "route", "endpoint", and "resource" are used interchangeably. This includes the documentation, comments in the code, variable names, method names, parameter names, etc.
get()
andreceive()
and other endpoints which get data from serial port should only be accessible viaGET
requests, and sending data should be accessible viaPOST
requests.Additionally, the names/terms of some
RestApiHandler
methods, such asadd_endpoint()
, are wrong, because it is actually adding a resource. Endpoints are different for different request methods. The method/decorator should be called something likeadd_conn_resource()
instead.The text was updated successfully, but these errors were encountered: