dapr / dapr/dotnet-sdk

Non-Dapr endpoints invocation supported?

Open
#1,311 6 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C#
Stars
1.2k
Forks
378
Avg merge
2d 1h
Merged PRs (30d)
6

Description

## Ask your question here
Dear All,

In the Dapr documentation i noticed that a service can invoke a Non-Dapr endpoints like https://reqres.in/api/users?page=2 (external APIs).

But when i checked the Dotnet Dapr documentation; i could not find any code related to that.

I tried below code and it does not work..

```
var client = DaprClient.CreateInvokeHttpClient("https://reqres.in");
var response = client.GetAsync(client.BaseAddress + "api/users?page=1").Result;
var result = response.Content.ReadAsStringAsync().Result;
```

Please let me know if the support is planned or where can i find a documentation?

Contributor guide

Open the contributing guide

Research direction

Start with DaprClient.CreateInvokeHttpClient and compare the .NET SDK documentation with the Dapr documentation for invoking external APIs. Confirm whether the shown request is supported, then document the supported usage or clarify the limitation and expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.