camparchimedes commited on
Commit
9d9b56a
·
verified ·
1 Parent(s): 46ed965

Update api_docs.py

Browse files
Files changed (1) hide show
  1. api_docs.py +13 -13
api_docs.py CHANGED
@@ -7,7 +7,7 @@ api_docs = {
7
  "base_url": "https://aivisions.no/data/daysoff/api/v1/booking/",
8
  "endpoints": {
9
  "/": {
10
- "method": "POST",
11
  "description": "Retrieve booking information associated with a booking ID.",
12
  "parameters": None
13
  #"parameters": {
@@ -25,19 +25,19 @@ api_docs = {
25
  "Content-Type": "application/json"
26
  },
27
  "response": {
28
- "description": "A JSON object containing booking details.",
29
  "content_type": "application/json",
30
- "fields": {
31
- "booking_id": "The unique identifier for the booking.",
32
- "full_name": "The full name of the customer associated with the booking.",
33
- "amount": "The total amount for the booking (integer).",
34
- "checkin": "The check-in date for the booking.", # --datetime format is 2024-12-20T15:00:00
35
- "checkout": "The check-out date for the booking.", # --datetime format is 2024-12-20T15:00:00
36
- "address": "The address associated with the booking.",
37
- "user_id": "The user ID associated with the booking (integer).",
38
- "infotext": "Additional information related to the booking.",
39
- "included": "Details of services included in the booking."
40
- }
41
  }
42
  }
43
 
 
7
  "base_url": "https://aivisions.no/data/daysoff/api/v1/booking/",
8
  "endpoints": {
9
  "/": {
10
+ "method": "GET",
11
  "description": "Retrieve booking information associated with a booking ID.",
12
  "parameters": None
13
  #"parameters": {
 
25
  "Content-Type": "application/json"
26
  },
27
  "response": {
28
+ "description": "A JSON object containing booking details for a specific booking id.",
29
  "content_type": "application/json",
30
+ #"fields": {
31
+ #"booking_id": "The unique identifier for the booking.",
32
+ #"full_name": "The full name of the customer associated with the booking.",
33
+ #"amount": "The total amount for the booking (integer).",
34
+ #"checkin": "The check-in date for the booking.", # --datetime format is 2024-12-20T15:00:00
35
+ #"checkout": "The check-out date for the booking.", # --datetime format is 2024-12-20T15:00:00
36
+ #"address": "The address associated with the booking.",
37
+ #"user_id": "The user ID associated with the booking (integer).",
38
+ #"infotext": "Additional information related to the booking.",
39
+ #"included": "Details of services included in the booking."
40
+ #}
41
  }
42
  }
43