获取随机句子
GET
/sentence
请求参数
Query 参数
type
string
句子种类
示例值:
n
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/sentence'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
可选
One of
id
integer
必需
>= 1
type
string
必需
正则匹配:
^[a-z]$
sentence
string
必需
author
string | null
必需
from
string | null
必需
committerName
string | null
必需
示例
{
"code": 0,
"msg": "string",
"data": {
"id": 1,
"type": "string",
"sentence": "string",
"author": "string",
"from": "string",
"committerName": "string"
}
}
修改于 2022-06-19 13:15:26