scalecube-services
scalecube-services copied to clipboard
Add new service annotation - `@Method(GET|POST|PUT|...)`
Add support of optional service annotation @Method with value as HTTP method. Must be defined only on methods with annotation @ServiceMethod.
Idea is to support clients who wants to call scalecube service through the HTTP gateway and to support http methods RESTful semantic.
Expected changes
- There must be new enum type in
scalecube-services-apiwith all http methods. ServiceReference,ServiceMethodDefinitionobjects must havemethodfield (optional).- Add logic to our "out-of-the-box" routers (
RandomServiceRouterandRoundRobinServiceRouter) so they begin to supportmethodin the routing logic.
Depends on
https://github.com/scalecube/scalecube-services/issues/856