-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.http
39 lines (26 loc) · 785 Bytes
/
test.http
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
### post the api in laravel
# POST http://127.0.0.1:8000/api/add HTTP/1.1
# Content-Type: application/json
# Accept: "application/json"
# {
# "cat_name":"cat_4"
# }
# GET http://127.0.0.1:8000/api/getdata HTTP/1.1
# PUT http://127.0.0.1:8000/api/update/1 HTTP/1.1
# Content-Type: application/json
# {
# "cat_name":"jquery"
# }
# GET http://127.0.0.1:8000/api/search/cat_2 HTTP/1.1
# Accept: "application/json"
# DELETE http://127.0.0.1:8000/api/delete/1 HTTP/1.1
# POST http://127.0.0.1:8000/api/register HTTP/1.1
# Content-Type: "application/json"
# Accept: "application/json"
# {
# "name":"hilal",
# "email":"hilal123@gmail.com",
# "password":"hilalahmad",
# "password_confirmation":"hilalahmad"
# }
GET http://127.0.0.1:8000/api/logout HTTP/1.1