Comments (3)
The reason is it's returning the ApiResponse
object directly instead of wrapping it with the IActionResult return types sucb as BadRequest
, NotFound
, UnAuthorize
and etc. AutoWrapper now supports IActionResult
so you should be able to use that instead of returning the object directly as Task. I'll update the same once I convert this to .NET 5. Thanks for brining this up! :)
from apiboilerplate.
Thanks for responding. So if you are not using AutoWrapper for one reason or another I guess you should use ActionResult instead?
from apiboilerplate.
Ideally, Yes. In fact, regardless if you use AutoWrapper or not, you should use ActionResult to take advantage of the default return types that I mentioned. Again, AutoWrapper supports ActionResult now so you are not limited to returning an ApiResponse object.
from apiboilerplate.
Related Issues (20)
- When I run the project I get the error in browser (HTTP Error 500.24) HOT 11
- Can we add support for JWT Auth scheme and related configuration with Authroization Role, Police, permisssion etc HOT 3
- Use Middleware instead of DelegatingHandlers HOT 1
- Swagger authorization not working (401 error) HOT 3
- Trying to upgrade Nuget packages to latest version seem to break HealthChecks HOT 5
- Suggestion for new version HOT 9
- IdentityServer: Is't into this template? HOT 3
- How to use AuthServerConnect class? HOT 1
- HealthChecksUI not start HOT 4
- Why is Microsoft.Extensions.Logging used instead of Serilog? HOT 1
- HealthCheck 3.1.3: Change services.AddHealthChecksUI() to services.AddHealthChecksUI().AddInMemoryStorage() HOT 3
- Info: Which is a good ReactJS panel to add to manange models and CRUD? HOT 1
- When Will be the update for .NET Core 5? HOT 3
- Runtime problem after updating AspNetCoreRateLimit to 4.0+ (with solution) HOT 1
- Is't possible to use SQLite or other db like MySQL? HOT 1
- How to use API Authentication with social network or Azure B2C?
- .NET 6 ApiBoilerPlate HOT 1
- Usinng this with angular 2+ HOT 1
- Add some detail on creating a service from the built API HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apiboilerplate.