Sample Libary API - PostMan



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”

}

Comments

  1. Here, API Url's are designed by the dev team .
    As a QA we need to know about the purpose of API (GET,POST,PUT,Delete)
    Delete can use by POST or DELETE and its how dev team develops.

    ReplyDelete

Post a Comment

Popular posts from this blog

Implicit and Explicit Waits,FluentWait,PageLoadTimeOut

A Interview Questions- selenium