aicra/api
Adrien Marquès af63c4514b
continuous-integration/drone/push Build is passing Details
refactor: idiomatic remove of api.Context for context.Context, custom middlewares for standard http middlewares
- remove api.Context as using context.Context is more idiomatic
 - remove api.Adapter as it is redundant with func(http.Handler) http.Handler
 - remove authentication middlewares as they be achieved as normal middlewares but launched around the handler (after the service has been found and validated)
 - builder.With() adds an standard Middleware that runs before any aicra code
 - builder.WithContext() adds an http middleware that runs just before the service handler is called. The http.Request provided contains a context with useful values such as the required permissions (from the service configuration).
 - handlers take a context.Context variable as first argument instead of api.Context
2021-06-20 02:14:31 +02:00
..
auth.go refactor: idiomatic remove of api.Context for context.Context, custom middlewares for standard http middlewares 2021-06-20 02:14:31 +02:00
auth_test.go feat: create api.Auth wrapping authorization management 2021-05-18 09:34:01 +02:00
context.go refactor: idiomatic remove of api.Context for context.Context, custom middlewares for standard http middlewares 2021-06-20 02:14:31 +02:00
error.defaults.go update: api.Err system 2021-03-28 18:49:23 +02:00
error.go fix: remove error status from json 2021-05-18 11:10:12 +02:00
response.go update: api.Err system 2021-03-28 18:49:23 +02:00