Skip to content

Commit

Permalink
Merge pull request #40 from jwma/swagger
Browse files Browse the repository at this point in the history
集成 Swagger 及优化接口
  • Loading branch information
jwma authored Mar 19, 2021
2 parents 13d707c + 67de5da commit 05ad142
Show file tree
Hide file tree
Showing 31 changed files with 3,693 additions and 950 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
dockerimage:
@echo "building Jump Jump docker image..."
docker build -t studiomj/jump-jump:latest -f build/package/Dockerfile .

.PHONY: docs
docs:
swag init -g ./internal/app/routers/router.go
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* [设置短链接域名](#设置短链接域名)
* [获取完整短链接](#获取完整短链接)
* [部署到服务器](#部署到服务器)
* [接口文档](#接口文档)
* [感谢](#感谢)

---
Expand Down Expand Up @@ -100,6 +101,11 @@ docker-compose -f deployments/docker-compose.yaml -p jumpjump exec apiserver ./c

这里提供了使用 docker-compose 的部署方案,[点击查看](http://t.majiawei.com/fk1ta3)

## 接口文档

使用 Swagger UI 提供了一个可调试文档,具体使用方法查看这个 [PR](https://github.com/jwma/jump-jump/pull/40),希望这份文档能够帮助
到大家!

## 感谢

在这里感谢所有为 Jump Jump 提供建议和反馈 bug 的朋友们,有你们 Jump Jump 会变得更好!
Expand Down
85 changes: 0 additions & 85 deletions api/config/v1/basics.http

This file was deleted.

9 changes: 0 additions & 9 deletions api/http-client.env.json

This file was deleted.

120 changes: 0 additions & 120 deletions api/shortlink/v1/base-cases.http

This file was deleted.

Loading

0 comments on commit 05ad142

Please sign in to comment.