0% found this document useful (0 votes)
73 views3 pages

E2E Testing On Library API

The document describes 4 APIs for a library API: 1) A POST API to add a book which accepts a JSON payload and returns a success message and ID. 2) A GET API to get books by author name which returns an array of book objects. 3) A GET API to get a book by ID which returns a JSON book object. 4) A POST API to delete a book which accepts a book ID as JSON payload and returns a success message.

Uploaded by

Gabriel Simon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views3 pages

E2E Testing On Library API

The document describes 4 APIs for a library API: 1) A POST API to add a book which accepts a JSON payload and returns a success message and ID. 2) A GET API to get books by author name which returns an array of book objects. 3) A GET API to get a book by ID which returns a JSON book object. 4) A POST API to delete a book which accepts a book ID as JSON payload and returns a success message.

Uploaded by

Gabriel Simon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Library API :

BaseURI : http://216.10.245.166

1. Resource : Library/AddBook.php       Method : POST

Input Payload : Json:

"name":"Learn Appium Automation with Java",


"isbn":"bcd",
"aisle":"227",
"author":"John foe"
}
 

Output Json 

"Msg": "successfully added",

"ID": "bcd227"

1. Resource : /Library/GetBook.php?AuthorName=somename Method : GET 

Output Json :

Output the array of Json object books with all below  details 

Name : “bookname”   ( String)

Isbn :  “A2fdsf”   (String)
Aisle : 32 (Integer)

1. Resource : Library/GetBook.php?ID=3389      - Method : GET 

Output Json :

"book_name": "Selenium automation using Java",

"isbn": "a23hd738",

"aisle": "1223"

1. Resource :/Library/DeleteBook.php      Method : POST

Input Payload : Json:

"ID" : "a23h345122332"

Output Response :

msg : book is successfully deleted”

 
}

You might also like