Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit c847122

Browse files
committed
update API.md
1 parent c6a2a8e commit c847122

File tree

5 files changed

+191
-54
lines changed

5 files changed

+191
-54
lines changed

Source/API.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
[Dictionary Query / 字典查询](API.md/字典)
2525

2626
- [x] [chinese query ](API.md/#汉字查询)
27+
- [x] [word query ](API.md/#词语查询)
2728
- [x] [idiom query ](API.md/#成语查询)
2829
- [x] [check post query ](API.md/#歇后语查询)
2930

@@ -558,7 +559,45 @@
558559
559560
```
560561

562+
561563

564+
<h3 id="词语查询">词语查询</h3>
565+
566+
> words/ci
567+
568+
##### 请求方式:GET
569+
570+
##### 请求参数
571+
572+
|参数|必选|类型|说明|
573+
|:--|:---|:---|:--- |
574+
| str || string | 查询的词语 |
575+
576+
#### 返回字段
577+
578+
|返回字段|字段类型|说明 |
579+
|:----- |:------|:---|
580+
| status | int | 0 = 请求成功 |
581+
| message | string | 描述 |
582+
| ci | string | 包含的词语 |
583+
| explanation | string | 释义 |
584+
585+
#### 接口示例
586+
587+
[http://api.jinxiansen.com/words/ci?str=中国](http://api.jinxiansen.com/words/ci?str=中国)
588+
589+
#### 返回示例
590+
591+
```
592+
{
593+
"ci": "少年中国说",
594+
"explanation": "散文篇名。近代梁启超作。文中极力歌颂少年的朝气蓬勃,指出封建统治下的中国是老大帝国”,热切希望出现少年中国”,振奋人民的精神。文章不拘格式,多用比喻,具有强烈的鼓动性。"
595+
}
596+
597+
```
598+
599+
600+
562601

563602

564603
<h3 id="成语查询">成语查询</h3>

0 commit comments

Comments
 (0)