Bearer Authentication for the whole API can be enabled in Swagger when applying a security property.
swagger.json
Let's implement a general authorization setting (as suggested in #62 (comment)).
Suggestion
async deleteById(id: string): Promise<void> {
const config: AxiosRequestConfig = {
headers: {
Authorization: this.config.accessToken,
},
method: 'delete',
url: `/identity-providers/${id}`,
withCredentials: true,
};
await this.apiClient.request(config);
}
{ "paths": { // ... }, "security": [ { "Bearer": [] } ], "swagger": "2.0", }