-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtestcases.sh
More file actions
66 lines (57 loc) · 1.33 KB
/
testcases.sh
File metadata and controls
66 lines (57 loc) · 1.33 KB
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
59
60
61
62
63
64
65
66
HOST_IP='127.0.0.1:5000'
echo
echo "Starting curl requests"
echo
# Hello World
URL=$HOST_IP
URL+='/' #paste your relative path here
echo "Sending request to $URL"
curl $URL
echo "Expected: Hello World"
echo
# Get a list of library books
# ex[app]/books
URL=$HOST_IP
URL+='/books' #paste your relative path here
echo "Sending request to $URL"
curl $URL
echo "Expected: Not Implemented"
echo
# Get a specific library book
# [app]/book/5
URL=$HOST_IP
URL+='/book/5' #paste your relative path here
echo "Sending request to $URL"
curl $URL
echo "Expected: Book 5"
echo
# Find out if a library book is available
# GET [app]/book/5/status
URL='/' #paste your relative path here
echo "Expected: Not Implemented"
echo
# Add a book to the library
# POST [app]/book/add
URL='/' #paste your relative path here
echo "Expected: Not Implemented"
echo
# Check out a book to a user
# GET [app]/user/5/checkout/5
URL='/' #paste your relative path here
echo "Expected: Not Implemented"
echo
# Return a book
# GET [app]/book/5/return
URL='/' #paste your relative path here
echo "Expected: Not Implemented"
echo
# list users
# GET [app]/users
URL='/' #paste your relative path here
echo "Expected: Not Implemented"
echo
# list library books checked out to a specific user
# GET [app]/user/5/books
URL='/' #paste your relative path here
echo "Expected: Not Implemented"
echo