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
As a developer of an API, I would like to use the REPR pattern with GenHTTP, so that I can quickly create endpoints to handle my requests without the need of boilerplate code but with enough structure to separate the endpoints from each other.
Additional reads: vertical slicing, CQRS
Example
We could easily add endpoints as a concept and let the MethodHandler handle them. As devs may would like to configure their endpoints directly in a single class, we need to check how to implement this with the handler chain and builder pattern that we have in place.
publicclassMyEndpoint:IEndpoint<MyRequest,MyResponse>{publicMyEndpoint(){Compression();// clarify how to implement this or a similar approach}publicMyResponseHandle(MyRequestrequest){// do stuff]}
Acceptance criteria
The functionality is implemented in a new module
The functionality re-uses the MethodHandler if applicable
Clarify how to work with path and query parameters
Clarify how to add concerns re-using the existing modules and functionality (composition over structure/hierarchy)
There is a project template for this kind of project
The documentation is updated for this kind of project
The readme of the GenHTTP server is updated to include this kind of project
The text was updated successfully, but these errors were encountered:
As a developer of an API, I would like to use the REPR pattern with GenHTTP, so that I can quickly create endpoints to handle my requests without the need of boilerplate code but with enough structure to separate the endpoints from each other.
Additional reads: vertical slicing, CQRS
Example
We could easily add endpoints as a concept and let the
MethodHandler
handle them. As devs may would like to configure their endpoints directly in a single class, we need to check how to implement this with the handler chain and builder pattern that we have in place.Acceptance criteria
MethodHandler
if applicableThe text was updated successfully, but these errors were encountered: