Library Information System: REST Web Service


Click here for a complete list of operations.

POST: book?session_id={session_id}

Description

Adds a new book to the system

How to Execute

To access this REST web service, you need to use the following URL:

https://libraryinformationsystem.org/services/RestService.svc/book?session_id={session_id}

Request Parameters

Name Description
session_id The unique session id
book The book data

Request Body

Nothing Expected

Return Data

<Book xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SampleApplications.LibraryInformationSystem.Web.DataObjects">
  <Author i:nil="true" />
  <AuthorId>0</AuthorId>
  <DateAdded>0001-01-01T00:00:00</DateAdded>
  <DateAddedIso>0001-01-01T05:00:00</DateAddedIso>
  <Genre i:nil="true" />
  <GenreId>0</GenreId>
  <Id>0</Id>
  <IsOutOfPrint>false</IsOutOfPrint>
  <Name i:nil="true" />
</Book>