aboutsummaryrefslogtreecommitdiff
path: root/pkg/api/Makefile
blob: 6da5fb57e1f2120e94ff6bf3b5669b1fa0972dc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export GO111MODULE=off

SWAGGER_OUT ?= swagger.yaml

validate: ${SWAGGER_OUT}
	swagger validate ${SWAGGER_OUT}

serve: ${SWAGGER_OUT}
	swagger serve -F redoc -p=8080 swagger.yaml

.PHONY: ${SWAGGER_OUT}
${SWAGGER_OUT}:
	# generate doesn't remove file on error
	rm -f ${SWAGGER_OUT}
	swagger generate spec -o ${SWAGGER_OUT} -i tags.yaml -w ./ -m