POST api/book
V1 - Add a new book to the database.
Request Information
URI Parameters
None.
Body Parameters
BookImportData| Name | Description | Type | Additional information |
|---|---|---|---|
| EAN |
A unique EAN is is used to identify a book. |
string |
Required Max length: 13 |
| PublisherID |
Every book is linked to a single publisher through its PublisherID. |
integer |
Required |
| Data |
The Data property contains CSV-style data. This is the actual data used for importing the title. It expects the actual datafields in the following order, separated by semicolons on a single line.
|
string |
Required |
Request Formats
application/json, text/json, text/javascript, application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
YindoApiResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Status |
YindoApiStatus defines statuscodes. |
YindoApiStatus |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": {
"Code": 0,
"Text": "sample string 1"
}
}
text/javascript
Sample:
{"Status":{"Code":0,"Text":"sample string 1"}}
application/xml, text/xml
Sample:
<YindoApiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Yindo.BLL.API">
<Status>
<Code>Success</Code>
<Text>sample string 1</Text>
</Status>
</YindoApiResult>