Update README.md with latest swagger (#1079)

pull/3484/head
Johannes Batzill 2024-02-28 23:42:54 +00:00 committed by Harness
parent a70222e73d
commit 73bc82a091
1 changed files with 2 additions and 3 deletions

View File

@ -91,9 +91,8 @@ To start the server at `localhost:3000`, simply run the following command:
Please make sure to update the autogenerated client code used by the UI when adding new rest APIs.
To regenerate the code, please execute the following steps:
- Run local gitness instance with latest changes
- Get latest OpenAPI specs from `http://localhost:3000/openapi.yaml` and store it in `web/src/services/code/swagger.yaml`
- navigate into the `web` folder and run `yarn services`
- Regenerate swagger with latest gitness binary `./gitness swagger > web/src/services/code/swagger.yaml`
- navigate to the `web` folder and run `yarn services`
The latest API changes should now be reflected in `web/src/services/code/index.tsx`