Update api_docs.py
Browse files- api_docs.py +8 -10
api_docs.py
CHANGED
@@ -6,16 +6,14 @@ import json
|
|
6 |
api_docs = {
|
7 |
"api_url": "https://aivisions.no/data/daysoff/api/v1/booking/",
|
8 |
"endpoints": {
|
9 |
-
"
|
10 |
-
|
11 |
-
|
12 |
-
"
|
|
|
13 |
"type": "string",
|
14 |
-
"description": "
|
15 |
-
|
16 |
-
"booking_id": {
|
17 |
-
"type": "string",
|
18 |
-
"description": "The unique identifier of the booking to retrieve."
|
19 |
}
|
20 |
},
|
21 |
"headers": {
|
@@ -25,7 +23,7 @@ api_docs = {
|
|
25 |
"api_response": {
|
26 |
"description": "A JSON object containing booking details.",
|
27 |
"content_type": "application/json",
|
28 |
-
"
|
29 |
"booking_id": "response.get('booking_id', 'N/A')",
|
30 |
"full_name": "response.get('full_name', 'N/A')",
|
31 |
"amount": "response.get('amount', 'N/A')",
|
|
|
6 |
api_docs = {
|
7 |
"api_url": "https://aivisions.no/data/daysoff/api/v1/booking/",
|
8 |
"endpoints": {
|
9 |
+
"/booking": {
|
10 |
+
"method": "GET",
|
11 |
+
"description": "Retrieve booking details for a given booking ID.",
|
12 |
+
"parameters": {
|
13 |
+
"booking_id": {
|
14 |
"type": "string",
|
15 |
+
"description": "Alphanumeric identifier, (6 capital letters followed by 6 digits, e.g., DAGHNS116478) of the booking to retrieve.",
|
16 |
+
"regex_pattern": "^[A-Z]{6}\\d{6}$",
|
|
|
|
|
|
|
17 |
}
|
18 |
},
|
19 |
"headers": {
|
|
|
23 |
"api_response": {
|
24 |
"description": "A JSON object containing booking details.",
|
25 |
"content_type": "application/json",
|
26 |
+
"booking_info": {
|
27 |
"booking_id": "response.get('booking_id', 'N/A')",
|
28 |
"full_name": "response.get('full_name', 'N/A')",
|
29 |
"amount": "response.get('amount', 'N/A')",
|