Loading...

Loading...

Call this API from C#

1. Include ServiceStack.Client package in your projects.csproj

<PackageReference Include="ServiceStack.Client" Version="5.*" />
2. Copy the DTOs source code for this API
3. Use the API DTOs with the JsonServiceClient or JsonApiClient(net6+)
using ServiceStack;
var client = new JsonServiceClient("https://staging-api.billiecart.com.au");
var response = await client.SendAsync(new SearchAllContributionsRequest {
    //...
});
// Quickly inpsect response
Inspect.printDump(response);

To easily update DTOs for all APIs install the x dotnet tool

$ dotnet tool install --global x

To generate all DTOs for https://staging-api.billiecart.com.au run:

$ x csharp https://staging-api.billiecart.com.au

Once generated, the DTOs can be updated with:

$ x csharp