camparchimedes commited on
Commit
2d8ef09
ยท
verified ยท
1 Parent(s): 8e535ba

Update api_docs_mck.py

Browse files
Files changed (1) hide show
  1. api_docs_mck.py +14 -19
api_docs_mck.py CHANGED
@@ -1,5 +1,3 @@
1
- ### api_docs_mck.py
2
-
3
  import json
4
 
5
  # API Documentation
@@ -18,13 +16,13 @@ api_docs = {
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
  },
@@ -40,8 +38,8 @@ api_docs = {
40
  "content_type": "application/json",
41
  "requestId": "$datatype.uuid",
42
  "fields": {
43
- "title": "response.get('$mockData')",
44
- "content": "response.get('$mockData')"
45
  }
46
  }
47
  },
@@ -57,16 +55,13 @@ api_docs = {
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
69
  api_docs_str = json.dumps(api_docs, indent=2)
70
- api_docs_str
71
-
72
-
 
 
 
1
  import json
2
 
3
  # API Documentation
 
16
  "content_type": "application/json",
17
  "requestId": "$datatype.uuid",
18
  "fields": {
19
+ "booking_id": "response.get('booking_id', 'N/A')",
20
+ "full_name": "response.get('full_name', 'N/A')",
21
+ "amount": "response.get('amount', 'N/A')",
22
+ "checkin": "response.get('checkin', 'N/A')",
23
+ "checkout": "response.get('checkout', 'N/A')",
24
+ "address": "response.get('address', 'N/A')",
25
+ "user_id": "response.get('user_id', 'N/A')"
26
  }
27
  }
28
  },
 
38
  "content_type": "application/json",
39
  "requestId": "$datatype.uuid",
40
  "fields": {
41
+ "title": "response.get('title', 'N/A')",
42
+ "content": "response.get('content', [])"
43
  }
44
  }
45
  },
 
55
  "content_type": "application/json",
56
  "requestId": "$datatype.uuid",
57
  "fields": {
58
+ "title": "response.get('title', 'N/A')",
59
+ "content": "response.get('content', [])"
60
  }
61
+ }
62
+ }
63
+ }
64
  }
65
 
66
  # Convert to JSON string for usage in your Python application
67
  api_docs_str = json.dumps(api_docs, indent=2)