From 73bc82a09131f4dcafcbf29dd5900d72a8f3116c Mon Sep 17 00:00:00 2001 From: Johannes Batzill Date: Wed, 28 Feb 2024 23:42:54 +0000 Subject: [PATCH] Update README.md with latest swagger (#1079) --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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`