You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my opinion it would be nice the pass an object instread of multiple values to the generated api service. If the arguments' orders change this can simply cause problems without noticing it.
Single parameters wouldn't be wrapped in RequestParams is a bit confusing, guess it's discussable / unneccessary. But I think If all properties are optional, the RequestParams would be optional, too is quite handy!
In my opinion it would be nice the pass an object instread of multiple values to the generated api service. If the arguments' orders change this can simply cause problems without noticing it.
E.g. instead of
public GetValues(a?: string, b?: string, c?: string, d?: string, e?: string, f?: boolean, g?: boolean, h?: boolean, i?: number, j?: number, k?: number, l?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext})
I'd rather use
public GetValues(query: { a?: string, b?: string, c?: string, d?: string, e?: string, f?: boolean, g?: boolean, h?: boolean, i?: number, j?: number, k?: number, l?: number }, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext})
The text was updated successfully, but these errors were encountered: