For checking wether the api was tempered with, we need separate action, that just checks the code against the currently pulled spec. This introduces two subactions for `npx api`. These are `npx api:generate` and `npx api:pull`.
19 lines
No EOL
287 B
Markdown
19 lines
No EOL
287 B
Markdown
# API
|
|
|
|
This folder contains generated code for API endpoints needed by this repo.
|
|
|
|
## Updating API changes
|
|
|
|
To pull new API changes and regenerating the code run
|
|
|
|
```shell
|
|
npm run api
|
|
```
|
|
|
|
## Regenerating the code only
|
|
|
|
To regenerate the code only, run
|
|
|
|
```shell
|
|
npm run api:generate
|
|
``` |