Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement HTTP endpoints using Minimal APIs #288

Merged
merged 15 commits into from
Feb 23, 2023

Conversation

wazzamatazz
Copy link
Contributor

This PR implements #264.

Instead of re-writing the MVC project to use Minimal APIs, a new DataCore.Adapter.AspNetCore.MinimalApi project has been added. This project targets .NET 7.0 due to the more limited capabilities of Minimal APIs in .NET 6.0.

The HTTP proxy is now used to test both the MVC endpoints and the Minimal API endpoints when the unit tests project targets .NET 7.0.

Adds a .NET 7 class library that registers the HTTP API using Minimal API routing instead of MVC.

The long-term goal is for this library to replace the MVC library to simplify OpenAPI generation and improve performance compared to MVC, especially since the momentum within ASP.NET Core  seems to be towards Minimal APIs rather than API controllers in MVC.
Now uses new Minimal API class library instead of MVC controllers
Moves the System.Diagnostics.DiagnosticSource reference from DataCore.Adapter.OpenTelemetry to DataCore.Adapter.Abstractions
@wazzamatazz wazzamatazz merged commit 594eefb into develop/3.1.0 Feb 23, 2023
@wazzamatazz wazzamatazz deleted the feature/minimal-apis branch February 23, 2023 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant