Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>pull/462/head
parent
aedd16a33a
commit
859d82fcd1
@ -0,0 +1,12 @@
|
|||||||
|
# ==============================================================================
|
||||||
|
# Makefile helper functions for swagger
|
||||||
|
#
|
||||||
|
|
||||||
|
.PHONY: swagger.run
|
||||||
|
swagger.run: tools.verify.swagger
|
||||||
|
@echo "===========> Generating swagger API docs"
|
||||||
|
@swagger generate spec --scan-models -w $(ROOT_DIR)/cmd/genswaggertypedocs -o $(ROOT_DIR)/api/swagger/swagger.yaml
|
||||||
|
|
||||||
|
.PHONY: swagger.serve
|
||||||
|
swagger.serve: tools.verify.swagger
|
||||||
|
@swagger serve -F=redoc --no-open --port 36666 $(ROOT_DIR)/api/swagger/swagger.yaml
|
Loading…
Reference in new issue