/api/abp/api-definition Return format #20647
Unanswered
easy999000
asked this question in
Releases
Replies: 1 comment
-
You can add Async suffix to method name like GetBoardingListAsync, i don't know why this happen but it fixes in my experience |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My interface prototype is
Task<PagedResultDto<BoardingDto>> GetBoardingList(BoardingSearchDto input);
/api/abp/api-definition The interface definition returned is
"GetBoardingListByInput": { "uniqueName": "GetBoardingListByInput", "name": "GetBoardingList", "httpMethod": "POST", "url": "api/services/app/Account/GetBoardingList", "supportedVersions": [], "parametersOnMethod": [ { "name": "input", "typeAsString": "Wallet.Identity.Accounts.Dto.BoardingSearchDto, Wallet.Identity.Application.Contracts", "type": "Wallet.Identity.Accounts.Dto.BoardingSearchDto", "typeSimple": "Wallet.Identity.Accounts.Dto.BoardingSearchDto", "isOptional": false, "defaultValue": null } ], "parameters": [ { "nameOnMethod": "input", "name": "input", "jsonName": null, "type": "Wallet.Identity.Accounts.Dto.BoardingSearchDto", "typeSimple": "Wallet.Identity.Accounts.Dto.BoardingSearchDto", "isOptional": false, "defaultValue": null, "constraintTypes": null, "bindingSourceId": "Body", "descriptorName": "" } ], "returnValue": { "type": "Volo.Abp.Application.Dtos.PagedResultDto<Wallet.Identity.Accounts.Dto.BoardingDto>", "typeSimple": "Volo.Abp.Application.Dtos.PagedResultDto<Wallet.Identity.Accounts.Dto.BoardingDto>" }, "allowAnonymous": true, "implementFrom": "Wallet.Identity.Accounts.AccountController" },
Why does JSON have a "ByInput" ?
When I call the interface again, it keeps getting errors:
Volo.Abp.AbpException: Could not found remote action for method: System.Threading.Tasks.Task
1[Volo.Abp.Application.Dtos.PagedResultDto1[Wallet.Identity.Accounts.Dto.BoardingDto]] GetBoardingList(Wallet.Identity.Accounts.Dto.BoardingSearchDto) on the URL: http://identity/
Beta Was this translation helpful? Give feedback.
All reactions