camparchimedes commited on
Commit
bced73b
·
verified ·
1 Parent(s): 7547456

Update api_docs.py

Browse files
Files changed (1) hide show
  1. api_docs.py +11 -15
api_docs.py CHANGED
@@ -28,23 +28,19 @@ api_docs = {
28
  "response": {
29
  "description": "A JSON object containing booking details for a specific booking id.",
30
  "content_type": "application/json",
31
- #"fields": {
32
- #"booking_id": "The unique identifier for the booking.",
33
- #"full_name": "The full name of the customer associated with the booking.",
34
- #"amount": "The total amount for the booking (integer).",
35
- #"checkin": "The check-in date for the booking.", # --datetime format is 2024-12-20T15:00:00
36
- #"checkout": "The check-out date for the booking.", # --datetime format is 2024-12-20T15:00:00
37
- #"address": "The address associated with the booking.",
38
- #"user_id": "The user ID associated with the booking (integer).",
39
- #"infotext": "Additional information related to the booking.",
40
- #"included": "Details of services included in the booking."
41
- #}
42
  }
43
  }
44
 
45
-
46
- auth_token = "abc123def456ghi789jkl012mno345pqr678stu901vwx234yz567"
47
-
48
  api_docs_str = json.dumps(api_docs, indent=2)
49
- # daysoff_api_docs_str = str(daysoff_api_docs)
50
  api_docs_str
 
28
  "response": {
29
  "description": "A JSON object containing booking details for a specific booking id.",
30
  "content_type": "application/json",
31
+ "fields": {
32
+ "booking_id": "The unique identifier for the booking.",
33
+ "full_name": "The full name of the customer associated with the booking.",
34
+ "amount": "The total amount for the booking (integer).",
35
+ "checkin": "The check-in date for the booking.", # --datetime format is 2024-12-20T15:00:00
36
+ "checkout": "The check-out date for the booking.", # --datetime format is 2024-12-20T15:00:00
37
+ "address": "The address associated with the booking.",
38
+ "user_id": "The user ID associated with the booking (integer).",
39
+ "infotext": "Additional information related to the booking.",
40
+ "included": "Details of services included in the booking."
41
+ }
42
  }
43
  }
44
 
 
 
 
45
  api_docs_str = json.dumps(api_docs, indent=2)
 
46
  api_docs_str