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

Generate-proxy:How to configure the service api #5921

Closed
Qlimax2009 opened this issue Oct 24, 2020 · 2 comments · Fixed by #7477
Closed

Generate-proxy:How to configure the service api #5921

Qlimax2009 opened this issue Oct 24, 2020 · 2 comments · Fixed by #7477
Assignees
Milestone

Comments

@Qlimax2009
Copy link

I use the abp3.2.1 with angular .
I use abp generate-proxy to cerate services.
abp generate code:
checkBeamByBeamId = (beamId: number) => this.restService.request<any, boolean>({ method: 'POST', url:/api/app/beam/checkBeam/${beamId}, }, { apiName: this.apiName });

The api in C# code:
public Task<bool> CheckBeam(long beamId)

But I wish the api code
checkBeam = (beamId: number) =>...

I want to keep the name of the API the same as the backend,How can I configure this?
Thanks in advance

@maliming
Copy link
Member

Maybe we should allow developers to customize method names, etc. @hikalkan What do you think?

private static string GetUniqueActionName(MethodInfo method)

@Qlimax2009
Copy link
Author

Qlimax2009 commented Nov 6, 2020

Maybe we should allow developers to customize method names, etc. @hikalkan What do you think?

private static string GetUniqueActionName(MethodInfo method)

I looked up the source code and modified it the provider,and then injected it,it works.
As a user, I hope to be able to customize method names or several styles to choose.
Thank you.

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.

3 participants