-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
25 lines (21 loc) · 861 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
API_NAME=OpenAPI-Example
USER=$(shell id -u)
GROUP=$(shell id -g)
GEN_VER=6.2.1
build-server: clean
java -jar /openapi-generator-cli-${GEN_VER}.jar generate \
--additional-properties=apiNameSuffix=controller_impl \
-t .openapi-generator-server/ \
-i ${API_NAME}.v1.yaml \
-g python-flask \
-o server/
build-server-local: clean
docker run --user ${USER}\:${GROUP} --rm \
-v ${PWD}:/local openapitools/openapi-generator-cli:v${GEN_VER} generate \
--additional-properties=apiNameSuffix=controller_impl \
-t /local/.openapi-generator-server/ \
-i /local/${API_NAME}.yaml \
-g python-flask \
-o /local/server/
clean:
rm -f -r client python_server dist *.egg-info