TCDev.ApiGenerator 0.1.0-alpha-3f152c

This is a prerelease version of TCDev.ApiGenerator.
There is a newer version of this package available.
See the version list below for details.
dotnet add package TCDev.ApiGenerator --version 0.1.0-alpha-3f152c
                    
NuGet\Install-Package TCDev.ApiGenerator -Version 0.1.0-alpha-3f152c
                    
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="TCDev.ApiGenerator" Version="0.1.0-alpha-3f152c" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TCDev.ApiGenerator" Version="0.1.0-alpha-3f152c" />
                    
Directory.Packages.props
<PackageReference Include="TCDev.ApiGenerator" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TCDev.ApiGenerator --version 0.1.0-alpha-3f152c
                    
#r "nuget: TCDev.ApiGenerator, 0.1.0-alpha-3f152c"
                    
#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.
#:package TCDev.ApiGenerator@0.1.0-alpha-3f152c
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TCDev.ApiGenerator&version=0.1.0-alpha-3f152c&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TCDev.ApiGenerator&version=0.1.0-alpha-3f152c&prerelease
                    
Install as a Cake Tool

Turn your models into fully working APIs in minutes

<a href="https://tcdev.gitbook.io/"><img src="https://img.shields.io/badge/Docs-0.0.4-orange"></a> <a href="https://twitter.com/intent/follow?screen_name=timcadenbach"><img src="https://img.shields.io/badge/Twitter-follow-blue"></a>

First of all this is a really early Alpha, consider things with care.

By using the API Generator, this little code snippet is a fully working CRUD API

/// <summary>
/// This is the minimal sample, yes this is a working api ;)
/// </summary>
[Api("/minimal")]
public class MinimalSample : IObjectBase<int>
{
  public int Id { get; set; }
  public string Name { get; set; }
  public int Value { get; set; }
}

The API Generator takes any class you like and generates a fully working CRUD API with Odata filter+select enabled. In future the service will evolve into a full instant "Database to API" Microservice with no boilerplate code needed.

Heres another sample:

 [Api("/people", ApiMethodsToGenerate.All )]
 public class Person : Trackable, 
    IObjectBase<Guid>,
    IBeforeUpdate<Person>, // Before Update Hook
    IBeforeDelete<Person>, // BeforeDelete Hook
 {
    public string Name { get; set; }
    public DateTime Date { get; set; }
    public string Description { get; set; }
    public int Age { get; set; }
    public Guid Id { get; set; }
 }

How to use:

dotnet add package TCDev.ApiGenerator --version 0.0.4-alpha

Getting Started & Docoumentation

https://tcdev.gitbook.io/

Samples

https://github.com/DeeJayTC/net-dynamic-api/tree/main/sample

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on TCDev.ApiGenerator:

Package Downloads
TCDev.APIGenerator.OData

Adds OData Support to the API Generator

TCDev.APIGenerator.Data.SQL

Adds necessary functionality to use MS SQL Server and Azure SQL Instances with the API Generator.

TCDev.APIGenerator.Data.SQLite

Adds necessary functionality to use SQLLite with the API Generator. Rasepi greates fully working CRUD Apis from just models

TCDev.APIGenerator.Data.Postgres

Adds necessary functionality to use Postgres databases with the API Generator. Rasepi greates fully working CRUD Apis from just models

TCDev.APIGenerator.RabbitMQ

Package adds RabbitMQ events to the APIs. Creates fully working CRUD Apis from just models

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.7.1-RC1 680 10/16/2022
0.7.0 1,387 11/8/2022
0.7.0-RC1 707 7/25/2022
0.6.0 1,487 6/24/2022
0.6.0-RC2 782 6/24/2022
0.6.0-RC1 635 6/24/2022
0.5.0-WeAreDevs 622 6/12/2022
0.5.0-WDWC-DEMO-ODATA 620 6/12/2022
0.5.0-WDWC-DEMO 663 6/11/2022
0.5.0-WDWC 651 6/11/2022
0.5.0-alpha-1 695 6/10/2022
0.1.5 915 5/6/2022
0.1.4 884 4/16/2022
0.1.3 861 4/16/2022
0.1.2 864 4/15/2022
0.1.2-alpha-6ffff 620 4/16/2022
0.1.2-alpha-4a262d 578 4/16/2022
0.1.1-alpha 600 3/29/2022
0.1.0-alpha-4a262d 593 4/8/2022
0.1.0-alpha-3f152c 627 4/7/2022
0.1.0-alpha 651 3/29/2022
0.0.9-alpha 616 3/29/2022
0.0.8-alpha 623 3/29/2022
0.0.7-alpha 609 3/26/2022
0.0.6-alpha 610 3/26/2022
0.0.5-alpha 747 3/26/2022
0.0.4-alpha 612 3/25/2022