File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ rtk-query-codegen -i /path/to/schema.yml -o /path/to/generated-api.js -c /path/t
2424
2525### Simple usage
2626
27- ``` json
27+ ```
2828 {
2929 apiFile: string
3030 schemaFile: string
@@ -51,7 +51,7 @@ rtk-query-codegen -i /path/to/schema.yml -o /path/to/generated-api.js -c /path/t
5151
5252If you only want to include a few endpoints, you can use the ` filterEndpoints ` config option to filter your endpoints.
5353
54- ``` json
54+ ```
5555 {
5656 // ...
5757 // should only have endpoints loginUser, placeOrder, getOrderById, deleteOrder
@@ -63,7 +63,7 @@ If you only want to include a few endpoints, you can use the `filterEndpoints` c
6363
6464If an endpoint is generated as a mutation instead of a query or the other way round, you can override that.
6565
66- ``` json
66+ ```
6767{
6868 // ...
6969 "endpointOverrides": [
@@ -81,7 +81,7 @@ Setting `hooks: true` will generate `useQuery` and `useMutation` hook exports. I
8181
8282### Multiple output files
8383
84- ``` json
84+ ```
8585
8686 schemaFile: 'https://petstore3.swagger.io/api/v3/openapi.json',
8787 apiFile: './src/store/emptyApi.ts',
You can’t perform that action at this time.
0 commit comments