🔌后端接口定义
后端接口定义文档用于定义后端服务的接口,包括接口的URL、请求方法(如GET、POST等)、请求参数、返回数据格式。
1 概述
本文档是软件后端接口定义文档,遵循Swagger2.0协议,是对Swagger自动生成的API文档的详细标注。该文档主要起到如下作用:
对开发团队/第三方开发者
前端可以根据本文档进行后端接口调用
测试可以根据本文档进行接口测试
后端可以参考该文档进行迭代开发
对用户
用户可以了解后端系统的可用功能
本文档由 唐锦洲 负责编写。
2 用户模块
2.1 用户注册和登录
用户登录获取JWT
POST /api/v1/users/login/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"username": "text",
"password": "text"
}
{
"success": true,
"results": {
"refresh": "text",
"access": "text"
}
}
创建新用户
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
^[\w.@+-]+$
POST /api/v1/users/register/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 302
{
"username": "text",
"password": "text",
"email": "name@gmail.com",
"telephone": "text",
"nickname": "text",
"signature": "text",
"birthday": "2025-06-27",
"gender": "M",
"vehicle_permit": {
"permit_number": "text",
"issued_date": "2025-06-27",
"expiry_date": "2025-06-27",
"owner_name": "text"
},
"following": [
1
],
"follower": [
1
]
}
{
"username": "text",
"password": "text",
"email": "name@gmail.com",
"telephone": "text",
"nickname": "text",
"signature": "text",
"avatar": "https://example.com",
"birthday": "2025-06-27",
"gender": "M",
"vehicle_permit": {
"permit_number": "text",
"issued_date": "2025-06-27",
"expiry_date": "2025-06-27",
"owner_name": "text"
},
"following": [
1
],
"follower": [
1
]
}
Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid.
POST /api/v1/users/refresh/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"refresh": "text"
}
{
"refresh": "text",
"access": "text"
}
2.2 用户个人信息
获取所有用户的列表
A page number within the paginated result set.
GET /api/v1/users/profile/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
获取成功
{
"success": true,
"results": {}
}
获取指定用户的详细信息
A unique integer value identifying this user.
GET /api/v1/users/profile/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
{
"username": "text",
"password": "text",
"email": "name@gmail.com",
"telephone": "text",
"nickname": "text",
"signature": "text",
"avatar": "https://example.com",
"birthday": "2025-06-27",
"gender": "M",
"vehicle_permit": {
"permit_number": "text",
"issued_date": "2025-06-27",
"expiry_date": "2025-06-27",
"owner_name": "text"
},
"following": [
1
],
"follower": [
1
]
}
更新指定用户的详细信息
A unique integer value identifying this user.
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
^[\w.@+-]+$
PUT /api/v1/users/profile/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 302
{
"username": "text",
"password": "text",
"email": "name@gmail.com",
"telephone": "text",
"nickname": "text",
"signature": "text",
"birthday": "2025-06-27",
"gender": "M",
"vehicle_permit": {
"permit_number": "text",
"issued_date": "2025-06-27",
"expiry_date": "2025-06-27",
"owner_name": "text"
},
"following": [
1
],
"follower": [
1
]
}
{
"username": "text",
"password": "text",
"email": "name@gmail.com",
"telephone": "text",
"nickname": "text",
"signature": "text",
"avatar": "https://example.com",
"birthday": "2025-06-27",
"gender": "M",
"vehicle_permit": {
"permit_number": "text",
"issued_date": "2025-06-27",
"expiry_date": "2025-06-27",
"owner_name": "text"
},
"following": [
1
],
"follower": [
1
]
}
删除指定用户
A unique integer value identifying this user.
DELETE /api/v1/users/profile/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
{
"success": true
}
部分更新指定用户的详细信息
A unique integer value identifying this user.
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
^[\w.@+-]+$
PATCH /api/v1/users/profile/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 302
{
"username": "text",
"password": "text",
"email": "name@gmail.com",
"telephone": "text",
"nickname": "text",
"signature": "text",
"birthday": "2025-06-27",
"gender": "M",
"vehicle_permit": {
"permit_number": "text",
"issued_date": "2025-06-27",
"expiry_date": "2025-06-27",
"owner_name": "text"
},
"following": [
1
],
"follower": [
1
]
}
{
"username": "text",
"password": "text",
"email": "name@gmail.com",
"telephone": "text",
"nickname": "text",
"signature": "text",
"avatar": "https://example.com",
"birthday": "2025-06-27",
"gender": "M",
"vehicle_permit": {
"permit_number": "text",
"issued_date": "2025-06-27",
"expiry_date": "2025-06-27",
"owner_name": "text"
},
"following": [
1
],
"follower": [
1
]
}
2.3 绑定电动车通行证
绑定用户车辆通行证信息
POST /api/v1/users/bind-permit/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 98
{
"permit_number": "text",
"issued_date": "2025-06-27",
"expiry_date": "2025-06-27",
"owner_name": "text"
}
{
"permit_number": "text",
"issued_date": "2025-06-27",
"expiry_date": "2025-06-27",
"owner_name": "text"
}
解绑用户车辆通行证信息
DELETE /api/v1/users/unbind-permit/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
{
"success": true
}
2.4 删除用户(需要管理员权限)
删除用户
DELETE /api/v1/users/delete/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
{
"success": true
}
3 电动车信息模块
3.1 电动车基本信息
获取所有电动车的列表
brand
rating
release_date
min_price
max_price
Which field to use when ordering the results.
A page number within the paginated result set.
GET /api/v1/bikes/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
获取成功
No content
创建新的电动车
POST /api/v1/bikes/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 133
{
"brand": "text",
"model": "text",
"price": "text",
"rating": 1,
"release_date": "2025-06-27",
"description": "text",
"bike_images": [
{
"bike": 1
}
]
}
No content
获取所有电动车ID列表
A page number within the paginated result set.
GET /api/v1/bikes/id/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
获取指定电动车的详细信息
A unique integer value identifying this bike.
GET /api/v1/bikes/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
更新指定电动车的信息
A unique integer value identifying this bike.
PUT /api/v1/bikes/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 133
{
"brand": "text",
"model": "text",
"price": "text",
"rating": 1,
"release_date": "2025-06-27",
"description": "text",
"bike_images": [
{
"bike": 1
}
]
}
No content
删除指定电动车
A unique integer value identifying this bike.
DELETE /api/v1/bikes/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
部分更新指定电动车的信息
A unique integer value identifying this bike.
PATCH /api/v1/bikes/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 133
{
"brand": "text",
"model": "text",
"price": "text",
"rating": 1,
"release_date": "2025-06-27",
"description": "text",
"bike_images": [
{
"bike": 1
}
]
}
No content
3.2 电动车图片
创建电动车图片
POST /api/v1/bikes/images/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 10
{
"bike": 1
}
No content
删除电动车图片
A unique integer value identifying this bike image.
DELETE /api/v1/bikes/images/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
3.3 电动车商家渠道
获取所有渠道的列表
A page number within the paginated result set.
GET /api/v1/bikes/channel/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
获取成功
No content
创建新的渠道
POST /api/v1/bikes/channel/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"bike": 1,
"name": "text",
"url": "https://example.com",
"service_info": "text"
}
No content
获取所有渠道ID列表
A page number within the paginated result set.
GET /api/v1/bikes/channel/id/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
获取成功
No content
获取指定渠道的详细信息
A unique integer value identifying this channel.
GET /api/v1/bikes/channel/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
更新指定渠道的信息
A unique integer value identifying this channel.
PUT /api/v1/bikes/channel/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"bike": 1,
"name": "text",
"url": "https://example.com",
"service_info": "text"
}
No content
删除指定渠道
A unique integer value identifying this channel.
DELETE /api/v1/bikes/channel/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
部分更新指定渠道的信息
A unique integer value identifying this channel.
PATCH /api/v1/bikes/channel/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"bike": 1,
"name": "text",
"url": "https://example.com",
"service_info": "text"
}
No content
4 社交模块
4.1 车小圈帖子
获取所有车小圈帖子
A page number within the paginated result set.
GET /api/v1/social/post/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
创建车小圈帖子
0
0
POST /api/v1/social/post/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 136
{
"title": "text",
"content": "text",
"tags": [
{
"name": "text",
"slug": "text"
}
],
"location": "text",
"likes_count": 0,
"views_count": 0,
"images": [
{}
]
}
No content
获取用户发布过的帖子
A page number within the paginated result set.
GET /api/v1/social/post/mine/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
获取指定的车小圈帖子
A UUID string identifying this post.
GET /api/v1/social/post/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
更新指定的车小圈帖子
A UUID string identifying this post.
0
0
PUT /api/v1/social/post/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 136
{
"title": "text",
"content": "text",
"tags": [
{
"name": "text",
"slug": "text"
}
],
"location": "text",
"likes_count": 0,
"views_count": 0,
"images": [
{}
]
}
No content
删除指定的车小圈帖子
A UUID string identifying this post.
DELETE /api/v1/social/post/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
部分更新指定的车小圈帖子
A UUID string identifying this post.
0
0
PATCH /api/v1/social/post/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 136
{
"title": "text",
"content": "text",
"tags": [
{
"name": "text",
"slug": "text"
}
],
"location": "text",
"likes_count": 0,
"views_count": 0,
"images": [
{}
]
}
No content
4.2 车小圈帖子评论
获取所有评论
A page number within the paginated result set.
GET /api/v1/social/comment/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
为帖子创建新评论
0
POST /api/v1/social/comment/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 91
{
"post": "123e4567-e89b-12d3-a456-426614174000",
"content": "text",
"likes_count": 0,
"parent": 1
}
No content
获取指定的车小圈帖子评论
A unique integer value identifying this comment.
GET /api/v1/social/comment/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
更新指定的车小圈帖子评论
A unique integer value identifying this comment.
0
PUT /api/v1/social/comment/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 91
{
"post": "123e4567-e89b-12d3-a456-426614174000",
"content": "text",
"likes_count": 0,
"parent": 1
}
No content
删除指定的车小圈帖子评论
A unique integer value identifying this comment.
DELETE /api/v1/social/comment/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
部分更新指定的车小圈帖子评论
A unique integer value identifying this comment.
0
PATCH /api/v1/social/comment/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 91
{
"post": "123e4567-e89b-12d3-a456-426614174000",
"content": "text",
"likes_count": 0,
"parent": 1
}
No content
4.3 车小圈用户互动
获取当前用户的所有点赞过的帖子
A page number within the paginated result set.
GET /api/v1/social/post/likes/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
获取当前用户的所有收藏过的帖子
A page number within the paginated result set.
GET /api/v1/social/post/favorites/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
修改当前用户对特定帖子点赞/收藏状态
POST /api/v1/social/post/interaction/toggle/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
获取特定帖子的点赞/收藏数量
POST /api/v1/social/post/interaction/count/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
修改当前用户对另一用户的关注状态
POST /api/v1/social/follow/toggle/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 13
{
"user_id": 1
}
No content
4.4 车小圈首页
获取首页的车小圈帖子,支持指定页码
A page number within the paginated result set.
Number of results to return per page.
GET /api/v1/social/homepage/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
5 二手交易模块
发布新的商品
POST /api/v1/exchange/goods/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
获取当前用户发布的所有商品
GET /api/v1/exchange/goods/mine/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
获取成功
No content
获取指定商品的详细信息
A unique value identifying this goods.
GET /api/v1/exchange/goods/{hash}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
A unique value identifying this goods.
PUT /api/v1/exchange/goods/{hash}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 117
{
"owner": 1,
"hash": "text",
"content": "text",
"money": "text",
"origin_money": "text",
"send_money": "text",
"classify": "text"
}
{
"owner": 1,
"hash": "text",
"content": "text",
"money": "text",
"origin_money": "text",
"send_money": "text",
"classify": "text",
"edit_date": "2025-06-27T02:41:37.788Z"
}
A unique value identifying this goods.
DELETE /api/v1/exchange/goods/{hash}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
A unique value identifying this goods.
PATCH /api/v1/exchange/goods/{hash}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 117
{
"owner": 1,
"hash": "text",
"content": "text",
"money": "text",
"origin_money": "text",
"send_money": "text",
"classify": "text"
}
{
"owner": 1,
"hash": "text",
"content": "text",
"money": "text",
"origin_money": "text",
"send_money": "text",
"classify": "text",
"edit_date": "2025-06-27T02:41:37.788Z"
}
6 维修模块
6.1 维修预约
获取用户的所有预约
A page number within the paginated result set.
GET /api/v1/maintenance/appointments/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
创建新的预约
pending
Possible values: POST /api/v1/maintenance/appointments/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 150
{
"service_type": "text",
"appointment_time": "2025-06-27T02:41:37.788Z",
"status": "pending",
"status_changed": "2025-06-27T02:41:37.788Z",
"user": 1,
"shop": 1
}
No content
获取指定的预约详情
A unique integer value identifying this appointment.
GET /api/v1/maintenance/appointments/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
更新指定的预约信息
A unique integer value identifying this appointment.
pending
Possible values: PUT /api/v1/maintenance/appointments/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 150
{
"service_type": "text",
"appointment_time": "2025-06-27T02:41:37.788Z",
"status": "pending",
"status_changed": "2025-06-27T02:41:37.788Z",
"user": 1,
"shop": 1
}
No content
删除指定的预约
A unique integer value identifying this appointment.
DELETE /api/v1/maintenance/appointments/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
部分更新指定的预约信息
A unique integer value identifying this appointment.
pending
Possible values: PATCH /api/v1/maintenance/appointments/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 150
{
"service_type": "text",
"appointment_time": "2025-06-27T02:41:37.788Z",
"status": "pending",
"status_changed": "2025-06-27T02:41:37.788Z",
"user": 1,
"shop": 1
}
No content
6.2 维修商家
获取所有服务商家
A page number within the paginated result set.
GET /api/v1/maintenance/shops/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
创建新的服务商家
POST /api/v1/maintenance/shops/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 93
{
"name": "text",
"location": "text",
"service_description": "text",
"contact_info": "text",
"user": 1
}
No content
获取指定的服务商家详情
A unique integer value identifying this service shop.
GET /api/v1/maintenance/shops/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
更新指定的服务商家信息
A unique integer value identifying this service shop.
PUT /api/v1/maintenance/shops/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 93
{
"name": "text",
"location": "text",
"service_description": "text",
"contact_info": "text",
"user": 1
}
No content
删除指定的服务商家
A unique integer value identifying this service shop.
DELETE /api/v1/maintenance/shops/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
部分更新指定的服务商家信息
A unique integer value identifying this service shop.
PATCH /api/v1/maintenance/shops/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 93
{
"name": "text",
"location": "text",
"service_description": "text",
"contact_info": "text",
"user": 1
}
No content
6.3 维修贴士
获取所有服务提示
A page number within the paginated result set.
GET /api/v1/maintenance/tips/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
创建新的服务提示
POST /api/v1/maintenance/tips/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"title": "text",
"content": "text",
"category": "text"
}
No content
获取指定的服务提示详情
A unique integer value identifying this service tip.
GET /api/v1/maintenance/tips/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
更新指定的服务提示信息
A unique integer value identifying this service tip.
PUT /api/v1/maintenance/tips/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"title": "text",
"content": "text",
"category": "text"
}
No content
删除指定的服务提示
A unique integer value identifying this service tip.
DELETE /api/v1/maintenance/tips/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
部分更新指定的服务提示信息
A unique integer value identifying this service tip.
PATCH /api/v1/maintenance/tips/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"title": "text",
"content": "text",
"category": "text"
}
No content
7 安全和举报模块
获取所有举报报告
A page number within the paginated result set.
GET /api/v1/safety/reports/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
创建或更新举报报告
pending
Possible values: POST /api/v1/safety/reports/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 107
{
"location": "text",
"description": "text",
"timestamp": "2025-06-27T02:41:37.788Z",
"status": "pending",
"user": 1
}
No content
获取指定举报报告的详细信息
A UUID string identifying this 举报.
GET /api/v1/safety/reports/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Accept: */*
No content
更新指定举报报告的信息
A UUID string identifying this 举报.
pending
Possible values: PUT /api/v1/safety/reports/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 107
{
"location": "text",
"description": "text",
"timestamp": "2025-06-27T02:41:37.788Z",
"status": "pending",
"user": 1
}
No content
部分更新指定举报报告的信息
A UUID string identifying this 举报.
pending
Possible values: PATCH /api/v1/safety/reports/{id}/ HTTP/1.1
Host: www.ebike.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 107
{
"location": "text",
"description": "text",
"timestamp": "2025-06-27T02:41:37.788Z",
"status": "pending",
"user": 1
}
No content
Last updated