Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEntityByIDRoute ¶
func GetEntityByIDRoute(c RequestContext, qe queries.QueryExecutor, collectionName string)
GetEntityByIDRoute handles a GET for a specific entity by id (example: GET /users/:id)
Types ¶
type RequestContext ¶
type RequestContext interface { ShouldBindUri(obj interface{}) error JSON(code int, obj interface{}) }
RequestContext abstracts the gin.Context through an interface to simplify mocking for unit tests
Click to show internal directories.
Click to hide internal directories.