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
My gorilla mux routes are set up using controllers so that each route has access to the app's runtime, which contains important config variables.
The handlers on the controller have a similar signature as the ones provided in the repo's example by accepting http.ReponseWriter and *http.Request as arguments with no return value. The only difference is that it's registered as methods on the controller. Here's the whole setup:
Unfortunately the resulting .apib file looks unusual. None of the route names nor descriptions appear; instead, the raw URL is listed and all descriptions are labeled SERVE H T T P. Here's an excerpt:
...
## /v3.1/orgs/512df1c7-fef8-4e49-9f38-482f40534213
### Serve H T T P [GET]
...
## /v3.1/orgs/875a041d-57f2-4696-b596-a7ee3d9840e9
### Serve H T T P [PUT]
...
Please let me know if there's a possible fix here. Thanks!
The text was updated successfully, but these errors were encountered:
s-mang
changed the title
Setting up endpoint title, endpoint description
endpoint title & description not produced for handlers which are methods
Nov 20, 2017
My gorilla mux routes are set up using controllers so that each route has access to the app's
runtime
, which contains important config variables.The handlers on the controller have a similar signature as the ones provided in the repo's example by accepting
http.ReponseWriter
and*http.Request
as arguments with no return value. The only difference is that it's registered as methods on the controller. Here's the whole setup:Unfortunately the resulting .apib file looks unusual. None of the route names nor descriptions appear; instead, the raw URL is listed and all descriptions are labeled
SERVE H T T P
. Here's an excerpt:Please let me know if there's a possible fix here. Thanks!
The text was updated successfully, but these errors were encountered: