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
24
24
25
25
### Simple usage
26
26
27
- ``` json
27
+ ```
28
28
{
29
29
apiFile: string
30
30
schemaFile: string
@@ -51,7 +51,7 @@ rtk-query-codegen -i /path/to/schema.yml -o /path/to/generated-api.js -c /path/t
51
51
52
52
If you only want to include a few endpoints, you can use the ` filterEndpoints ` config option to filter your endpoints.
53
53
54
- ``` json
54
+ ```
55
55
{
56
56
// ...
57
57
// 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
63
63
64
64
If an endpoint is generated as a mutation instead of a query or the other way round, you can override that.
65
65
66
- ``` json
66
+ ```
67
67
{
68
68
// ...
69
69
"endpointOverrides": [
@@ -81,7 +81,7 @@ Setting `hooks: true` will generate `useQuery` and `useMutation` hook exports. I
81
81
82
82
### Multiple output files
83
83
84
- ``` json
84
+ ```
85
85
86
86
schemaFile: 'https://petstore3.swagger.io/api/v3/openapi.json',
87
87
apiFile: './src/store/emptyApi.ts',
You can’t perform that action at this time.
0 commit comments