-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequests.http
48 lines (30 loc) · 1.17 KB
/
requests.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
40
41
42
43
44
45
46
47
48
###
GET http://localhost:3000/users/ HTTP/1.1
###
POST http://localhost:3000/ HTTP/1.1
###
GET http://localhost:3000/businesses/ HTTP/1.1
###
GET http://localhost:3000/businesses/nearby/?lng=-120&lat=41 HTTP/1.1
###
GET http://localhost:3000/businesses/63ed6fe4790fec5f6d438146 HTTP/1.1
###
POST http://localhost:3000/users HTTP/1.1
Content-Type: application/json
{"name": "Cagan4", "email": "[email protected]"}
###
POST http://localhost:3000/businesses/63ec65079ecb2d9c2761b1b4/create HTTP/1.1
Content-Type: application/json
{"name": "ShireFarms15", "description": "Welcome to Farm 15", "email": "[email protected]",
"phone": "1234567890", "location": {"type": "Point", "coordinates": [-122.4194, 37.7749]},
"businessDetails": {"category": ["Farm"], "practice": ["Organic", "Sustainable"],
"products": ["Fruits", "Vegetables"]},
"deliveryTypes": ["Pickup", "Delivery"]}
###
DELETE http://localhost:3000/users/63ebfbadcf4a278b5d48fab9 HTTP/1.1
###
PATCH http://localhost:3000/users/63ec16f1c84a94be849a1642 HTTP/1.1
Content-Type: application/json
{"name": "Cagan New", "email": "[email protected]"}
###
GET http://localhost:3000/location/63ed6c6a974f35b0b012ca09 HTTP/1.1