Skip to content

Commit 466166f

Browse files
committed
exo api: pull spec straight from the API endpoint
1 parent 2212800 commit 466166f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ OAS_FILE := public-api.json
4040
RM = rm -rf
4141

4242
$(OAS_FILE):
43-
wget -O public-api.json -q https://openapi-v2.exoscale.com/source.json
43+
wget -O public-api.json -q https://api-ch-gva-2.exoscale.com/v2/openapi.json
4444

4545
.PHONY:
4646
.ONESHELL:
@@ -49,7 +49,7 @@ x-cmd: $(OAS_FILE) ## Generates code for "exo x" experimental subcommands
4949
echo "openapi-cli-generator tool not found, downloading"
5050
go install github.com/exoscale/openapi-cli-generator@latest
5151
fi
52-
wget -q https://openapi-v2.exoscale.com/source.json
52+
wget -q https://api-ch-gva-2.exoscale.com/v2/openapi.json
5353
openapi-cli-generator generate -p x -n x -o cmd/internal/x/x.gen.go $(OAS_FILE)
5454

5555
.PHONY: docker

0 commit comments

Comments
 (0)