Skip to content

Welcome to Smusdi

The Smusdi project provides a set of .NET libraries used to help developing and testing C# services by avoiding boilerplate code.

Creating a WEB API with Smusdi

  • Create project:

    mkdir smusdi-webapi
    cd smusdi-webapi/
    dotnet new console --name smusdi-webapi
    dotnet add smusdi-webapi/smusdi-webapi.csproj package Smusdi.Core 
    

  • Update Program.cs:

    using Smusdi.Core;
    
    SmusdiService.InitAndRun(args);
    

  • Run project:

    dotnet run --project smusdi-webapi/smusdi-webapi.csproj
    

  • Open swagger ui to check that it works:

Swagger UI