Spaces:
Sleeping
Sleeping
Update api_docs_mck.py
Browse files- api_docs_mck.py +27 -39
api_docs_mck.py
CHANGED
@@ -6,75 +6,63 @@ import json
|
|
6 |
api_docs = {
|
7 |
"base_url": "https://670dccd0073307b4ee447f2f.mockapi.io/daysoff/api/V1/",
|
8 |
"endpoints": {
|
9 |
-
"
|
10 |
"method": "GET",
|
11 |
"url": "booking",
|
12 |
-
"description": "Retrieve booking information
|
13 |
"headers": {
|
14 |
"Content-Type": "application/json"
|
15 |
},
|
16 |
"response": {
|
17 |
-
"description": "
|
18 |
-
"content_type": "application/json",
|
19 |
-
"
|
20 |
-
|
21 |
-
"
|
22 |
-
"
|
23 |
-
"
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
"checkout": "$mockData.checkout",
|
29 |
-
"address": "$mockData.address",
|
30 |
-
"user_id": "$mockData.user_id"
|
31 |
-
}
|
32 |
}
|
33 |
}
|
34 |
},
|
35 |
"firmahytteordning": {
|
36 |
"method": "GET",
|
37 |
"url": "firmahytteordning",
|
38 |
-
"description": "Retrieve details about
|
39 |
"headers": {
|
40 |
"Content-Type": "application/json"
|
41 |
},
|
42 |
"response": {
|
43 |
"description": "Information about DaysOff's Firmahytteordning.",
|
44 |
"content_type": "application/json",
|
45 |
-
"
|
46 |
-
|
47 |
-
"
|
48 |
-
"
|
49 |
-
"fields": {
|
50 |
-
"title": "$mockData.title",
|
51 |
-
"content": "$mockData.content"
|
52 |
-
}
|
53 |
}
|
54 |
}
|
55 |
},
|
56 |
"personvernspolicy": {
|
57 |
"method": "GET",
|
58 |
"url": "personvernspolicy",
|
59 |
-
"description": "Retrieve
|
60 |
"headers": {
|
61 |
"Content-Type": "application/json"
|
62 |
},
|
63 |
"response": {
|
64 |
-
"description": "DaysOff's
|
65 |
"content_type": "application/json",
|
66 |
-
"
|
67 |
-
|
68 |
-
"
|
69 |
-
"
|
70 |
-
"fields": {
|
71 |
-
"title": "$mockData.title",
|
72 |
-
"content": "$mockData.content"
|
73 |
-
}
|
74 |
}
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
}
|
79 |
|
80 |
# Convert to JSON string for usage in your Python application
|
|
|
6 |
api_docs = {
|
7 |
"base_url": "https://670dccd0073307b4ee447f2f.mockapi.io/daysoff/api/V1/",
|
8 |
"endpoints": {
|
9 |
+
"booking": {
|
10 |
"method": "GET",
|
11 |
"url": "booking",
|
12 |
+
"description": "Retrieve booking information associated with a specific booking ID.",
|
13 |
"headers": {
|
14 |
"Content-Type": "application/json"
|
15 |
},
|
16 |
"response": {
|
17 |
+
"description": "The booking information associated with a specific booking ID",
|
18 |
+
"content_type": "application/json",
|
19 |
+
"requestId": "$datatype.uuid",
|
20 |
+
"fields": {
|
21 |
+
"booking_id": "response.get('$mockData')",
|
22 |
+
"full_name": "response.get('$mockData')",
|
23 |
+
"amount": "response.get('$mockData'')",
|
24 |
+
"checkin": "response.get('$mockData')",
|
25 |
+
"checkout": "response.get('$mockData')",
|
26 |
+
"address": "response.get('$mockData')",
|
27 |
+
"user_id": "response.get('$mockData')
|
|
|
|
|
|
|
|
|
28 |
}
|
29 |
}
|
30 |
},
|
31 |
"firmahytteordning": {
|
32 |
"method": "GET",
|
33 |
"url": "firmahytteordning",
|
34 |
+
"description": "Retrieve details about Daysoff's 'Firmahytteordning' service.",
|
35 |
"headers": {
|
36 |
"Content-Type": "application/json"
|
37 |
},
|
38 |
"response": {
|
39 |
"description": "Information about DaysOff's Firmahytteordning.",
|
40 |
"content_type": "application/json",
|
41 |
+
"requestId": "$datatype.uuid",
|
42 |
+
"fields": {
|
43 |
+
"title": "response.get('$mockData')",
|
44 |
+
"content": "response.get('$mockData')"
|
|
|
|
|
|
|
|
|
45 |
}
|
46 |
}
|
47 |
},
|
48 |
"personvernspolicy": {
|
49 |
"method": "GET",
|
50 |
"url": "personvernspolicy",
|
51 |
+
"description": "Retrieve personvernspolicy for DaysOff.",
|
52 |
"headers": {
|
53 |
"Content-Type": "application/json"
|
54 |
},
|
55 |
"response": {
|
56 |
+
"description": "DaysOff's personvernspolicy.",
|
57 |
"content_type": "application/json",
|
58 |
+
"requestId": "$datatype.uuid",
|
59 |
+
"fields": {
|
60 |
+
"title": "response.get('$mockData')",
|
61 |
+
"content": "response.get('$mockData')"
|
|
|
|
|
|
|
|
|
62 |
}
|
63 |
+
}
|
64 |
+
}
|
65 |
+
}
|
66 |
}
|
67 |
|
68 |
# Convert to JSON string for usage in your Python application
|