We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It could be similar with @RegisterRestClient in quarkus. such as
@RegisterRestClient
@RegisterDaprClient public interface someService { void invoke(String id); }
We need to process this annotation with injecting the DaprClient and mapping the method to do invoking.
DaprClient
The text was updated successfully, but these errors were encountered:
yes,it need two annotations like @RegisterRestClient and @RestClient
@RestClient
i proposed that they are @RegisterDaprInvokeClient and @DaprInvokeClient,such as
@RegisterDaprInvokeClient
@DaprInvokeClient
@Path("/dapr-invoke-client") @RegisterDaprInvokeClient public interface ExtensionsService { @GET String getById(@QueryParam String id); } @ApplicationScoped public class DaprRestClient2ExtensionResource { @DaprInvokeClient ExtensionsService extensionsService; }
Sorry, something went wrong.
Why it needs @Path here ? is it refer to javax.ws.rs.Path?
@Path
javax.ws.rs.Path
The dapr-client does the http invokings like JaxRS style? @aosky can you provide a typical example of dapr http usage?
dapr invoke is a kind of rpc,so it need @Path. below is method of dapr client ,it is too original,we need package it such as quarkus-rest-client
quarkus-rest-client
public <T> T invokeMethod(String appId, String methodName, Object data, HttpExtension httpExtension, Map<String, String> metadata, TypeRef<T> type) { return daprClient.invokeMethod(appId, methodName, data, httpExtension, metadata, type).block(); }
zhfeng
No branches or pull requests
It could be similar with
@RegisterRestClient
in quarkus. such asWe need to process this annotation with injecting the
DaprClient
and mapping the method to do invoking.The text was updated successfully, but these errors were encountered: