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
The HTTP transport generated by Truss doesn't appear to handle using the same URI with different HTTP verbs (i.e. GET vs POST) for different RPC methods. This means that it's not able to generate a clean RESTful API, as you'd normally have something along the lines of:
If continuing to use stdlib you get into the issue of having to deal with generating code based on r.Method() whereas with gorilla mux you can continue to generate code how you are, but add a .Methods("GET") to the end of the generated HTTP handler.
The HTTP transport generated by Truss doesn't appear to handle using the same URI with different HTTP verbs (i.e. GET vs POST) for different RPC methods. This means that it's not able to generate a clean RESTful API, as you'd normally have something along the lines of:
However, this results in the following error:
The text was updated successfully, but these errors were encountered: