diff --git a/README.md b/README.md index 1719f7220..2eef4d975 100644 --- a/README.md +++ b/README.md @@ -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`