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

Angular proxy generator handle Guid return type in wring way #20219

Open
1 task done
antonGritsenko opened this issue Jul 13, 2024 · 0 comments
Open
1 task done

Angular proxy generator handle Guid return type in wring way #20219

antonGritsenko opened this issue Jul 13, 2024 · 0 comments

Comments

@antonGritsenko
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Description

If Guid used as return type for the Application Service method that proxy generate responseType: 'text',

Reproduction Steps

Create methos in any Application Service like this:

public async Task<Guid> PostGuid()
{
    return Guid.NewGuid()
}

Expected behavior

Angular proxy should not add responseType: 'text',

Actual behavior

Its there:

getGuid = (config?: Partial<Rest.Config>) =>
    this.restService.request<any, string>({
      method: 'POST',
      responseType: 'text',
      url: '/api/app/testservice/giud',
    },
    { apiName: this.apiName,...config });

Regression?

No response

Known Workarounds

No response

Version

8.1.1

User Interface

Angular

Database Provider

EF Core (Default)

Tiered or separate authentication server

None (Default)

Operation System

Windows (Default)

Other information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants