-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
18 lines (16 loc) · 816 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.PHONY: openapi_http
openapi_http:
oapi-codegen -generate types -o internal/ports/openapi_types.gen.go -package ports api/openapi/notification.yml
oapi-codegen -generate chi-server -o internal/ports/openapi.gen.go -package ports api/openapi/notification.yml
oapi-codegen -generate types -o internal/tests/client/openapi_types.gen.go -package client api/openapi/notification.yml
oapi-codegen -generate client -o internal/tests/client/openapi_client.gen.go -package client api/openapi/notification.yml
.PHONY: openapi_documentation
openapi_documentation:
docker run --rm \
-v ${PWD}:/local openapitools/openapi-generator-cli generate \
-i /local/api/openapi/notification.yml \
-g html2 \
-o /local/internal/docs
.PHONY: plantuml_up
plantuml_up:
docker run -d -p 8080:8080 plantuml/plantuml-server:jetty