ApiEndpoints
ApiEndpoints copied to clipboard
A project for supporting API Endpoints in ASP.NET Core web applications.
Currently, you can document endpoint using ``SwaggerOperation`` attribute above ``HandleAsync`` method: ```cs [SwaggerOperation( Summary = "Submit a new article", Description = "Enables the submission of new articles", OperationId = "B349A6C4-1198-4B53-B9BE-85232E06F16E",...
- NuGet Package Version: 4.0.1 - .NET SDK Version: 6.0 Steps to Reproduce: 1. Create a post endpoint without request and without result 2. Try to read the request body...
Right now, in order to return an IAsyncEnumerable you need to use EndpointBaseSync and access the request cancellationToken form HttpContext like this: ``` public class List : EndpointBaseSync.WithoutRequest.WithResult { ///...
Solves #175 `IAsyncEnumerable` is only available since netstandard2.1. So I made the `EndpointBase` classes partial, added a new partial class file and removed it from compilation when the targetframework is...
The pipeline runs: 1. CI - projects build - unit tests 2. CD - publishing to NuGet With this contribution, we consolidate the current pipelines into a single pipeline, so...
Version 3.1 sometimes had issues with request types being pulled from multiple locations (route, query, body). [Nick Chapsas shows a solution to this problem here](https://youtu.be/SDu0MA6TmuM?t=647). The MultiSourceAttribute. I'm not sure...
Model this on the Ardalis.Specification approach: - https://github.com/ardalis/Specification/tree/main/docs - https://ardalis.github.io/Specification/ - https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-github-pages-site
Some of the code listings on the main README page are out of date with the newest release. Fix them.
Support routable attributes on records. Currently the [FromHeader], [FromQuery] attributes only work when the request is a class but not with records.