MasaApiCallerGenerator 0.0.10

dotnet add package MasaApiCallerGenerator --version 0.0.10                
NuGet\Install-Package MasaApiCallerGenerator -Version 0.0.10                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MasaApiCallerGenerator" Version="0.0.10" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MasaApiCallerGenerator --version 0.0.10                
#r "nuget: MasaApiCallerGenerator, 0.0.10"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MasaApiCallerGenerator as a Cake Addin
#addin nuget:?package=MasaApiCallerGenerator&version=0.0.10

// Install MasaApiCallerGenerator as a Cake Tool
#tool nuget:?package=MasaApiCallerGenerator&version=0.0.10                

MasaApiCallerGenerator

Automatically generate the source code of Caller.

Only web apis written by MASA.Contrib.Service.MinimalAPIs is supported.

Get Started

MasaApiCallerGenerator can be installed using the Nuget package manager or the dotnet CLI.

dotnet add package MasaApiCallerGenerator

Update csproj in your WebApi project:

<PropertyGroup>
    <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
    
    <CompilerGeneratedFilesOutputPath>$(SolutionDir)\MasaApiCaller</CompilerGeneratedFilesOutputPath>
</PropertyGroup>

<PropertyGroup>
    
    <MasaApiCaller_Name>Test</MasaApiCaller_Name>
    
    <MasaApiCaller_BaseAddress>http://localhost:5177</MasaApiCaller_BaseAddress>
</PropertyGroup>

<ItemGroup>
    <CompilerVisibleProperty Include="MasaApiCaller_Name" />
    <CompilerVisibleProperty Include="MasaApiCaller_BaseAddress" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)' == 'Debug'">
    <PackageReference Include="Masa.Utils.Caller.HttpClient" Version="0.0.0" /> 
    <ProjectReference Include="MasaApiCallerGenerator" Version="0.0.0" /> 
</ItemGroup>

TODOs

  • get, post, put, delete
  • ignore [FromService]
  • give priority to [FromQuery] and [FromBody]
  • fine with BindAsync and TryParse?
  • {id}
  • masa.utils.caller.daprClient
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.10 503 3/24/2022
0.0.6 399 3/24/2022
0.0.5 425 3/24/2022
0.0.4 430 3/24/2022
0.0.3 416 3/24/2022
0.0.2 405 3/23/2022
0.0.1 419 3/23/2022