0
kwongyuhong created
I created an application service with several function in it. The problem is when I run the swagger, some of the parameter's input is not converted into properties of parameters instead it is displayed as JSON (ex. CopyAddressBookTemp as in image). The rest of the functions' parameter input are fine. How to resolve this?
Application service code:
public class AddressBookGroupAppService : FlurrAppServiceBase, IAddressBookGroupAppService
{
...
public async Task CopyAddressBookTemp(CopyAddressBookTempInput input){
...
}
}
Input DTO code (CopyAddressBookGroupTempInput class):
public class CopyAddressBookTempInput
{
public bool IsPrivate { get; set; }
}
4 Answer(s)
-
1
-
0
-
1
http get will pass arguments in the query string, post will use the body.
You can manually specify the http verb of the method.
Related documents https://aspnetboilerplate.com/Pages/Documents/Dynamic-Web-API#http-attributes https://aspnetboilerplate.com/Pages/Documents/AspNet-Core#application-services-as-controllers
-
0
@maliming
Got it, thank a lot!