mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
13 lines
488 B
Makefile
13 lines
488 B
Makefile
# ==============================================================================
|
|
# 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
|