POST api/person/SaveBook
保存一个书籍信息
请求信息
URI 参数
None.
Body 参数
书籍信息对象
BookModel名称 | 说明 | 类型 | 其他信息 |
---|---|---|---|
Id | string |
None. |
|
Name | string |
None. |
|
AuthorId | string |
None. |
|
AuthorName | string |
None. |
请求格式
application/json, text/json
Sample:
{ "Id": "sample string 1", "Name": "sample string 2", "AuthorId": "sample string 3", "AuthorName": "sample string 4" }
application/xml, text/xml
Sample:
<BookModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZJ.GX.Application.IBLL"> <AuthorId>sample string 3</AuthorId> <AuthorName>sample string 4</AuthorName> <Id>sample string 1</Id> <Name>sample string 2</Name> </BookModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
响应信息
响应说明
ResponseEx名称 | 说明 | 类型 | 其他信息 |
---|---|---|---|
StatusCode |
状态码 |
ResponseStatusCode |
None. |
Message |
信息 |
string |
None. |
Data |
数据 |
Object |
None. |
响应格式
application/json, text/json
Sample:
{ "StatusCode": 0, "Message": "sample string 1", "Data": {} }
application/xml, text/xml
Sample:
<ResponseEx xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZJ.GX.Application.WebApi.Models"> <Data /> <Message>sample string 1</Message> <StatusCode>OK</StatusCode> </ResponseEx>