[HttpPost] being ignored on IAppService methods
See original GitHub issueI am trying to make one of my Get requests a Post request instead (it has complex objects in the Input dto).
https://aspnetboilerplate.com/Pages/Documents/Dynamic-Web-API#http-attributes
Problem number 1 is that the documentation says that Microsoft.AspNet.WebApi.Core
package is needed, and I have this on my Application
project, yet when I type HttpPost
no references to it appear. So is the documentation wrong? Or is this a needed package, but the Attribute doesn’t come from there?
Problem 2 is I cannot get it to ignore the Get request with attributes: I checked though past projects and found this sample: https://github.com/aspnetboilerplate/aspnetboilerplate-samples/blob/8a104f0b22298f8d4d4ce2d2f6bf6f62b8bc1e19/AbpSwaggerDemo/AbpSwagger.Application/Students/IStudentAppService.cs#L5
So it seems I am doing it the right way, yet it remains a Get request according to Swagger etc.
Is something amiss with the documentation?
I also downloaded a new project(october) and tried the same thing, it wouldn’t work.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (8 by maintainers)
Top GitHub Comments
Ah, so I am using the wrong package that’s why. Sorry I misunderstood - thanks!