flowup / api-client-generator

Angular REST API client generator from Swagger YAML or JSON file with camel case settigs
MIT License
115 stars 21 forks source link

Allow passing http options to all requests #4

Closed petomalina closed 6 years ago

petomalina commented 6 years ago

This will allow adding more options into each request. These options will be then merged by the angular http implementation together with the default options provided by the generator.

Sample implementation:

class APIService {
  readUsers(arguments ..., options): Observable<User[]> {
    return http.get('/users', options)
  }
}

The specification can be found here https://angular.io/guide/http#configuring-other-parts-of-the-request