{"id":19751980,"url":"https://github.com/romfos/autoendpoints","last_synced_at":"2025-02-28T01:18:51.354Z","repository":{"id":210565018,"uuid":"726795866","full_name":"Romfos/AutoEndpoints","owner":"Romfos","description":"AutoEndpoints is a WebAPI framework for automatic endpoint building for database entities","archived":false,"fork":false,"pushed_at":"2025-02-04T09:46:53.000Z","size":125,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-04T10:29:55.188Z","etag":null,"topics":["asp-net","asp-net-core","database","minimap-api","webapi"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Romfos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-03T12:34:46.000Z","updated_at":"2025-02-04T09:46:50.000Z","dependencies_parsed_at":"2023-12-12T20:36:39.346Z","dependency_job_id":"51d3d517-c25f-4f84-8e2c-03787589aa49","html_url":"https://github.com/Romfos/AutoEndpoints","commit_stats":null,"previous_names":["romfos/autoendpoints"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romfos%2FAutoEndpoints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romfos%2FAutoEndpoints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romfos%2FAutoEndpoints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romfos%2FAutoEndpoints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Romfos","download_url":"https://codeload.github.com/Romfos/AutoEndpoints/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241084166,"owners_count":19907065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asp-net","asp-net-core","database","minimap-api","webapi"],"created_at":"2024-11-12T02:46:58.118Z","updated_at":"2025-02-28T01:18:51.336Z","avatar_url":"https://github.com/Romfos.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\n\nAutoEndpoints is a WebAPI framework for automatic endpoint building for database entities\n\n[![.github/workflows/build.yml](https://github.com/Romfos/AutoEndpoints/actions/workflows/build.yml/badge.svg)](https://github.com/Romfos/AutoEndpoints/actions/workflows/build.yml)\n\n[![AutoEndpoints.Redis](https://img.shields.io/nuget/v/AutoEndpoints.Redis?label=AutoEndpoints.Redis)](https://www.nuget.org/packages/AutoEndpoints.Redis)\\\n[![AutoEndpoints.Cosmos](https://img.shields.io/nuget/v/AutoEndpoints.Cosmos?label=AutoEndpoints.Cosmos)](https://www.nuget.org/packages/AutoEndpoints.Cosmos)\\\n[![AutoEndpoints.Dapper.SqlServer](https://img.shields.io/nuget/v/AutoEndpoints.Dapper.SqlServer?label=AutoEndpoints.Dapper.SqlServer)](https://www.nuget.org/packages/AutoEndpoints.Dapper.SqlServer)\n\nSupported databases:\n1) Redis\n2) Microsoft Azure Cosmos DB\n3) Microsoft SQL Server\n\nSupported platforms:\n - .NET 8+\n\n# Example\n\nProgram.cs:\n```csharp\nvar builder = WebApplication.CreateBuilder(args);\n\nbuilder.Services.AddRedisEndpoints(\"localhost:6379\");\n\nvar app = builder.Build();\n\napp.MapRedisGetEndpoint\u003cRedisTestModel\u003e(\"{id}\")\n    .KeyFromRoute(\"id\")\n    .Build();\n\napp.MapRedisPostEndpoint\u003cRedisTestModel\u003e(\"{id}\")\n    .KeyFromRoute(\"id\")\n    .Build();\n\nawait app.RunAsync();\n```\n\n# Nuget packages links  \n- https://www.nuget.org/packages/AutoEndpoints.Redis\n- https://www.nuget.org/packages/AutoEndpoints.Cosmos\n- https://www.nuget.org/packages/AutoEndpoints.Dapper.SqlServer\n\n  \n# How to use\nBasic steps:\n1) Create new web api project\n2) Added nuget package for target database\n   \n| Database                         | Nuget package                                                                                   |\n|----------------------------------|-------------------------------------------------------------------------------------------------|\n| Redis                            | [AutoEndpoints.Redis](https://www.nuget.org/packages/AutoEndpoints.Redis)                       |\n| Microsoft Azure Cosmos DB        | [AutoEndpoints.Cosmos](https://www.nuget.org/packages/AutoEndpoints.Cosmos)                     |\n| Microsoft SQL Server with Dapper | [AutoEndpoints.Dapper.SqlServer](https://www.nuget.org/packages/AutoEndpoints.Dapper.SqlServer) |\n\n3) Register database provider in services\n```\nbuilder.Services.AddRedisEndpoints(\"localhost:6379\");\n```\n4) Map endpoints\n```\napp.MapRedisGetEndpoint\u003cRedisTestModel\u003e(\"{id}\")\n    .KeyFromRoute(\"id\")\n    .Build();\n```\nDone\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromfos%2Fautoendpoints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromfos%2Fautoendpoints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromfos%2Fautoendpoints/lists"}