cangdu 8 tahun lalu
induk
melakukan
9c4df22a5c
1 mengubah file dengan 11 tambahan dan 10 penghapusan
  1. 11 10
      API.md

+ 11 - 10
API.md

@@ -6,7 +6,7 @@
 ### 1.获取城市列表
 
 #### 请求URL:  
-> /v1/cities
+> http://cangdu.org:8001/v1/cities
 
 #### 示例:
  [http://cangdu.org:8001/v1/cities?type=guess](http://cangdu.org:8001/v1/cities?type=guess)
@@ -14,13 +14,13 @@
 #### 请求方式: 
 > GET
 
-### 请求参数:
+#### 请求参数:
 
 |参数|是否必选|类型|说明|
 |:-----|:-------:|:-----|:-----|
 |type      |Y       |string  |类型  guess:定位城市,  hot:热门城市, group:所有城市 |
 
-#### 返回示例
+#### 返回示例
 
 ```javascript
 {
@@ -36,18 +36,19 @@
 }
 ```
 
-## 2.获取所选城市信息
+### 2.获取所选城市信息
 
-### 请求URL
-> **/v1/cities/:id**
+#### 请求URL:
 
-### 示例:
+> /v1/cities/:id
+
+#### 示例:
 >  [http://cangdu.org:8001/v1/cities/1](http://cangdu.org:8001/v1/cities/1)
 
-### 请求方式
->**GET**
+#### 请求方式
+>  GET
 
-### 请求参数
+#### 请求参数
 
 |参数|是否必选|类型|说明|
 |:-----|:-------:|:-----|:-----|