Creating Books - ACS - Reference Guides

ACS Integration Guide

Product
ACS
Platform
7.9
Category
Reference Guides
Language
English
Target Audience
public

To add a book into the CKS instance community, a CKS user must use the POST method on the book list resource.

WADL file

Resource

Method

book.wadl

/cks/instance/<service_id>-${Service_Status}/book

POST

The following example shows how to create a book for the user Albert Einstein. The id of this new book is 13 and its reference is /cks/instance/<service_id>-${Service_Status}/book/13.

The request line is:

POST /cks/instance/<service_id>-${Service_Status}/book?afs:login=login://aeinstein:albert@CKS/<service_id>-${Service_Status}

The request body is:

<result xsi:type="cks.ws.book" xmlns="antidot:cks:input"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>Albert's Book </name>
<description>Alberts </description>
</result>

The reply body is:

<value xsi:type="ws.response" xmlns="antidot:cks:output"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<result xsi:type="cks.ws.book" reference="/cks/instance/<service_id>-${Service_Status}/book/13">
<id>13</id>
<name>Albert's Book </name>
<description>Alberts </description>
<owner xsi:type="cks.ws.user" partial="true"
reference="/cks/instance/<service_id>-${Service_Status}/user/13">
<tracker>
<creationDate xsi:type="date-time"
timestamp="1281358031000">
2010-08-09T14:47:11+02:00
</creationDate>
<creator xsi:type="cks.ws.user"
partial="true"
reference="/cks/instance/<service_id>-${Service_Status}/user/13"></creator>
</tracker>
<firstName>Albert</firstName>
<lastName>Einstein</lastName>
</owner>
</result>
</value>