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
Before I try this tool (it looks great!), I want to confirm: is it possible to generate a single file, like users.service.ts in Angular, with the following structure?
@Injectable({providedIn: 'root'})exportclassUserApiService{
#http =inject(HttpClient);getUsers(){returnthis.#http.get(`/api/v1/users`);}user(id: number): Observable<HttpResponse<User>>{returnthis.#http.post<User[]>(`/api/v1/users/search`,{ id },{observe: 'response'});}}
Specifically:
Can I generate the HttpResponse type based on matching specific URLs I provide in a list?
Can the tool avoid generating additional files, keeping everything (like interfaces) in the same file?