Thank you so much! Please add this information into documentation
Could anyony help me??
Does it mean that I have to have DTOs models not in Contracts layer?
Create
HttpApi.Client
project for each service.[DependsOn( typeof(AbpHttpClientModule), //used to create client proxies typeof(AbpVirtualFileSystemModule) //virtual file system )] public class XXXServiceHttpClientModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { // Prepare for static client proxy generation context.Services.AddStaticHttpClientProxies( typeof(XXXServiceHttpClientModule).Assembly, XXXServiceRemoteServiceConsts.RemoteServiceName ); // Include the generated app-generate-proxy.json in the virtual file system Configure<AbpVirtualFileSystemOptions>(options => { options.FileSets.AddEmbedded<XXXServiceHttpClientModule>(); }); } }
then generate proxy file(Dtos, services etc...)
For example:
abp generate-proxy -t csharp -u xxx -m identity (XXXServiceRemoteServiceConsts.RemoteServiceName's value)
Other services can then reference this project for API calls
it does not help. I have the same result
I see it but in which solution?? I have 2 solutions: auth service (client) and Identity (server). In which one I have to add HttpApi.Client
Auth Solution (has just 1 project):
Identoty Solution (has 2 projects):
So as far as I understood I have to add HttpApi.Client project into Auth Solution. Am I right?
It shoud be on the client side (in my case in the auth service)?
I do not have web project. I have only Service and Service.Contract on server side. and only Service on the client side (auth service)