2.x/chapter2-5/src/docs/markdown/generated/paths.md
<a name="paths"></a>
<a name="postuserusingpost"></a>
POST /users/
根据User对象创建用户
| Type | Name | Description | Schema |
|---|---|---|---|
| Body | user | ||
| required | user | User |
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | OK | string |
| 201 | Created | No Content |
| 401 | Unauthorized | No Content |
| 403 | Forbidden | No Content |
| 404 | Not Found | No Content |
application/json\*/*| Type | Name | Scopes |
|---|---|---|
| apiKey | Authorization | global |
<a name="getuserlistusingget"></a>
GET /users/
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | OK | < User > array |
| 401 | Unauthorized | No Content |
| 403 | Forbidden | No Content |
| 404 | Not Found | No Content |
\*/*| Type | Name | Scopes |
|---|---|---|
| apiKey | Authorization | global |
<a name="getuserusingget"></a>
GET /users/{id}
根据url的id来获取用户详细信息
| Type | Name | Description | Schema |
|---|---|---|---|
| Path | id | ||
| required | id | integer (int64) |
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | OK | User |
| 401 | Unauthorized | No Content |
| 403 | Forbidden | No Content |
| 404 | Not Found | No Content |
\*/*| Type | Name | Scopes |
|---|---|---|
| apiKey | Authorization | global |
<a name="putuserusingput"></a>
PUT /users/{id}
根据url的id来指定更新对象,并根据传过来的user信息来更新用户详细信息
| Type | Name | Description | Schema |
|---|---|---|---|
| Path | id | ||
| required | 用户编号 | integer (int64) | |
| Body | user | ||
| required | user | User |
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | OK | string |
| 201 | Created | No Content |
| 401 | Unauthorized | No Content |
| 403 | Forbidden | No Content |
| 404 | Not Found | No Content |
application/json\*/*| Type | Name | Scopes |
|---|---|---|
| apiKey | Authorization | global |
<a name="deleteuserusingdelete"></a>
DELETE /users/{id}
根据url的id来指定删除对象
| Type | Name | Description | Schema |
|---|---|---|---|
| Path | id | ||
| required | id | integer (int64) |
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | OK | string |
| 204 | No Content | No Content |
| 401 | Unauthorized | No Content |
| 403 | Forbidden | No Content |
\*/*| Type | Name | Scopes |
|---|---|---|
| apiKey | Authorization | global |