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

When use the Auto API Controllers to generate endpoint, it's was not found api description with http response code 400,401,403,404,500 in swagger doc #7920

Closed
tbto opened this issue Mar 3, 2021 · 1 comment · Fixed by #7921
Assignees
Milestone

Comments

@tbto
Copy link

tbto commented Mar 3, 2021

https://docs.abp.io/en/abp/latest/API/Auto-API-Controllers

https://github.com/abpframework/abp-samples/tree/master/BookStore-Blazor-EfCore

run Acme.BookStore.HttpApi.Host

open https://localhost:44399/swagger/index.html

it's not found http response code(400 401 403 500), just have http response code 200. Why???
image

@tbto
Copy link
Author

tbto commented Mar 3, 2021

If add RemoteServiceAttribute, it's may be work. why?
But the class BookAppService was already implement IRemoteService... it's make me confused.
I think the class it's implement IRemoteService should have the RemoteServiceApiDescription as default
image

image

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 a pull request may close this issue.

2 participants