camparchimedes commited on
Commit
f963e32
ยท
verified ยท
1 Parent(s): 7839a66

Update api_docs_mck.py

Browse files
Files changed (1) hide show
  1. 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
- "booking_info": {
10
  "method": "GET",
11
  "url": "booking",
12
- "description": "Retrieve booking information for all or a specific booking ID.",
13
  "headers": {
14
  "Content-Type": "application/json"
15
  },
16
  "response": {
17
- "description": "Details about a specific booking.",
18
- "content_type": "application/json",
19
- "template": {
20
- "requestId": "$datatype.uuid",
21
- "items": "$mockData",
22
- "count": "$count",
23
- "fields": {
24
- "booking_id": "$mockData.booking_id",
25
- "full_name": "$mockData.full_name",
26
- "amount": "$mockData.amount",
27
- "checkin": "$mockData.checkin",
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 the 'Firmahytteordning' service.",
39
  "headers": {
40
  "Content-Type": "application/json"
41
  },
42
  "response": {
43
  "description": "Information about DaysOff's Firmahytteordning.",
44
  "content_type": "application/json",
45
- "template": {
46
- "requestId": "$datatype.uuid",
47
- "items": "$mockData",
48
- "count": "$count",
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 the privacy policy for DaysOff.",
60
  "headers": {
61
  "Content-Type": "application/json"
62
  },
63
  "response": {
64
- "description": "DaysOff's privacy policy.",
65
  "content_type": "application/json",
66
- "template": {
67
- "requestId": "$datatype.uuid",
68
- "items": "$mockData",
69
- "count": "$count",
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