-
Notifications
You must be signed in to change notification settings - Fork 7
/
Endpoint List.txt
70 lines (47 loc) · 1.14 KB
/
Endpoint List.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
59
60
61
62
63
64
65
66
67
URL Base: https://peepoo.azurewebsites.net
Endpoints
*Register
{{url}}/api/account/register
{
"email": "jim2@test.com",
"username": "jim2",
"displayName": "James",
"password": "Pa$$w0rd"
}
*1. Login
{{url}}/api/account/login
{
"email": "starling@test.com",
"password": "Pa$$w0rd"
}
*2. Get All Places
{{url}}/api/places
*3. Submit Place (You could use the "Add Place With Photo From Form")
{{url}}/api/places
id:{{$guid}}
Name:Test place with alfredo as owner
description:Description of the place
type:Familiar
createdAt:{{activityDate}}
rating:4
long:18.667685390037644
lat:-70.30475501628834
observations:Observations and reserves
HaveBabyChanger:true
IsRoomy:true
Urinals:4
Toilets:4
*4. Get Place (Place Detail)
{{url}}/api/places/4628aac4-69c0-4c74-92b8-6db82bfd73ad
*5. Submit Review
{{url}}/api/visits
id:{{$guid}}
placeId:934fa33b-ef3b-47b8-375d-08da377876c1
title:Comment title
description:Comment description
createdAt:{{activityDate}}
rating:4
*6. Delete Review
{{url}}/api/visits/4628aac4-69c0-4c74-92b8-6db82bfd73ad
*7. Get All Reviews From a Place
{{url}}/api/Visits/visitsFromPlace/934fa33b-ef3b-47b8-375d-08da377876c1