Spaces:
Sleeping
Sleeping
Update api_docs_mck.py
Browse files- api_docs_mck.py +9 -7
api_docs_mck.py
CHANGED
@@ -3,21 +3,23 @@
|
|
3 |
import json
|
4 |
|
5 |
api_docs = {
|
6 |
-
"api_url": "https://670dccd0073307b4ee447f2f.mockapi.io/daysoff/api/V1
|
7 |
"endpoints": {
|
8 |
-
"
|
9 |
-
|
10 |
-
|
11 |
-
"
|
|
|
12 |
"type": "string",
|
13 |
-
"description": "
|
|
|
14 |
}
|
15 |
},
|
16 |
"headers": {
|
17 |
"Content-Type": "application/json"
|
18 |
},
|
19 |
"api_response": {
|
20 |
-
"description": "A
|
21 |
"content_type": "application/json",
|
22 |
"booking_info": {
|
23 |
"booking_id": "response.get('booking_id', 'N/A')",
|
|
|
3 |
import json
|
4 |
|
5 |
api_docs = {
|
6 |
+
"api_url": "<https://670dccd0073307b4ee447f2f.mockapi.io/daysoff/api/V1/>",
|
7 |
"endpoints": {
|
8 |
+
"/booking": {
|
9 |
+
"method": "GET",
|
10 |
+
"description": "Retrieve booking details for a given booking ID.",
|
11 |
+
"parameters": {
|
12 |
+
"booking_id": {
|
13 |
"type": "string",
|
14 |
+
"description": "Alphanumeric identifier, (6 capital letters followed by 6 digits, e.g., DAGHNS116478) of the booking to retrieve.",
|
15 |
+
"regex_pattern": "^[A-Z]{6}\\d{6}$",
|
16 |
}
|
17 |
},
|
18 |
"headers": {
|
19 |
"Content-Type": "application/json"
|
20 |
},
|
21 |
"api_response": {
|
22 |
+
"description": "A JSON object containing booking details.",
|
23 |
"content_type": "application/json",
|
24 |
"booking_info": {
|
25 |
"booking_id": "response.get('booking_id', 'N/A')",
|