-
Notifications
You must be signed in to change notification settings - Fork 0
/
libraryapi.txt
59 lines (39 loc) · 940 Bytes
/
libraryapi.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Library API :
BaseURI : https://rahulshettyacademy.com/Library/Addbook.php
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”
}