forked from retaildevcrews/ngsa-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcrud.http
More file actions
33 lines (21 loc) · 612 Bytes
/
crud.http
File metadata and controls
33 lines (21 loc) · 612 Bytes
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
#should return 200
PUT http://localhost:8080/api/movies/zz1272878 HTTP/1.1
###
# should return 200
GET http://localhost:8080/api/movies/zz1272878 HTTP/1.1
###
# should return 204
DELETE http://localhost:8080/api/movies/zz1272878 HTTP/1.1
###
# should return 404
GET http://localhost:8080/api/movies/zz1272878 HTTP/1.1
###
# should return 404
PUT http://localhost:8080/api/movies/zz127287800 HTTP/1.1
###
# should return 400
# must use 'zz' + valid numeric ID
PUT http://localhost:8080/api/movies/tt127287800 HTTP/1.1
###
# should return 400
DELETE http://localhost:8080/api/movies/tt1272878 HTTP/1.1