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

Auto API controllers docs integration, covering deprecation of Microsoft.AspNetCore.Mvc Nuget packages. #18437

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 13 additions & 1 deletion docs/en/API/Auto-API-Controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,19 @@ ABP uses a naming convention while determining the HTTP method for a service met
- **Patch**: Used if the method name starts with 'Patch'.
- Otherwise, **Post** is used **by default**.

If you need to customize HTTP method for a particular method, then you can use one of the standard ASP.NET Core attributes ([HttpPost], [HttpGet], [HttpPut]... etc.). This requires to add [Microsoft.AspNetCore.Mvc.Core](https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc.Core) nuget package to your project that contains the service.
If you need to customize the HTTP verb for a particular action, then you can use one of the standard ASP.NET Core attributes ([HttpPost], [HttpGet], [HttpPut]... etc.).
This requires a using statement of `Microsoft.AspNetCore.Mvc.Core`.
For this, you might need to add to the project containing the service a framework reference to the ASP.Net Core shared framework (see also [this](https://github.com/dotnet/aspnetcore/issues/48920) deprecation related issue and [related documentation](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/target-aspnetcore?tabs=visual-studio#use-the-aspnet-core-shared-framework)).

````xml
<Project Sdk="Microsoft.NET.Sdk">
...
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
...
</Project>
````

### Route

Expand Down