Skip to content

Commit ff3e102

Browse files
committed
docs(README): http options config
Signed-off-by: Vojtech Masek <[email protected]>
1 parent da64fdd commit ff3e102

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ This command will generate API client described in swagger.json file to ./output
6767
/* Default configuration and all of it's properties is optional */
6868
APIClientModule.forRoot({
6969
domain: 'https://api.url', // or use value defined in environment `environment.apiUrl`
70-
headers: {myCustomHeader: 'this will appear in every request as one of the headers'},
71-
params: {someParam: 'customParam'},
70+
httpOptions: {
71+
headers: {myCustomHeader: 'this will appear in every request as one of the headers'},
72+
params: {someParam: 'customParam'},
73+
}
7274
}),
7375
/* ... other imports */
7476
HttpClientModule, // <<= this is very important import

0 commit comments

Comments
 (0)