Spaces:
Sleeping
Sleeping
Update api_docs_mck.py
Browse files- api_docs_mck.py +7 -7
api_docs_mck.py
CHANGED
@@ -3,16 +3,15 @@
|
|
3 |
import json
|
4 |
|
5 |
api_docs = {
|
6 |
-
"api_url": "
|
7 |
"endpoints": {
|
8 |
-
"
|
9 |
-
|
10 |
-
|
11 |
-
"
|
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": {
|
@@ -33,6 +32,7 @@ api_docs = {
|
|
33 |
}
|
34 |
}
|
35 |
|
|
|
36 |
api_docs_str = json.dumps(api_docs, indent=2)
|
37 |
api_docs_str
|
38 |
|
|
|
3 |
import json
|
4 |
|
5 |
api_docs = {
|
6 |
+
"api_url": "https://670dccd0073307b4ee447f2f.mockapi.io/daysoff/api/V1/booking",
|
7 |
"endpoints": {
|
8 |
+
"method": "GET",
|
9 |
+
"description": "Retrieve booking details for a given booking ID.",
|
10 |
+
"parameters": {
|
11 |
+
"booking_id": {
|
|
|
12 |
"type": "string",
|
13 |
"description": "Alphanumeric identifier, (6 capital letters followed by 6 digits, e.g., DAGHNS116478) of the booking to retrieve.",
|
14 |
+
"regex_pattern": "^[A-Z]{6}\\d{6}$"
|
15 |
}
|
16 |
},
|
17 |
"headers": {
|
|
|
32 |
}
|
33 |
}
|
34 |
|
35 |
+
|
36 |
api_docs_str = json.dumps(api_docs, indent=2)
|
37 |
api_docs_str
|
38 |
|