From da429fb4feef3c683823b5f773fa740966307d5a Mon Sep 17 00:00:00 2001 From: MarkusJoe Date: Sat, 9 Apr 2022 11:11:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9API=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/README.md b/docs/README.md index 5a5b376..19c3ba9 100644 --- a/docs/README.md +++ b/docs/README.md @@ -5,7 +5,6 @@ # 灵感来源 [Moe-Counter](https://github.com/journey-ad/Moe-counter) -> 看到这个项目感觉挺有意思就用Python写了一个 此项目中添加了原项目中没有的功能 `Length` `设置长度` # 工作原理 @@ -28,7 +27,7 @@ - Python版本: `3.10.x` - 请求方法: `GET` `POST` -- 请求地址: `/count/` or `/api/v1/` +- 请求地址: `/count/` - 你需要在 请求地址末尾加入你需要使用的名称来进行计数 - 可选参数: `theme` `length` @@ -48,7 +47,7 @@ ### 调用示例 ```shell -$ curl -X GET https://requestcounter.herokuapp.com/api/overall/?limit=20 +$ curl -L -X GET https://requestcounter.herokuapp.com/api/v1/overall/?limit=20 ``` ```json @@ -81,7 +80,7 @@ $ curl -X GET https://requestcounter.herokuapp.com/api/overall/?limit=20 ### 调用示例 ```shell -$ curl -X GET https://requestcounter.herokuapp.com/api/query/?name=main&nochange=1 +$ curl -L -X GET https://requestcounter.herokuapp.com/api/v1/query/?name=main&nochange=1 ``` ```json @@ -103,7 +102,7 @@ $ curl -X GET https://requestcounter.herokuapp.com/api/query/?name=main&nochange ### 调用示例 ```shell -$ curl -X GET https://requestcounter.herokuapp.com/api/theme/?name=lewd +$ curl -L -X GET https://requestcounter.herokuapp.com/api/v1/theme/?name=lewd ``` ```json @@ -129,7 +128,7 @@ $ curl -X GET https://requestcounter.herokuapp.com/api/theme/?name=lewd > 无参数 ```shell -$ curl -X GET https://requestcounter.herokuapp.com/api/alltables/ +$ curl -L -X GET https://requestcounter.herokuapp.com/api/v1/alltables/ ``` ```json