camparchimedes commited on
Commit
6deeb03
ยท
verified ยท
1 Parent(s): 9d20b87

Update api_docs_mck.py

Browse files
Files changed (1) hide show
  1. 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/booking",
7
  "endpoints": {
8
- "method": "GET",
9
- "description": "Retrieve booking information for a given booking ID.",
10
- "parameters": {
11
- "booking_id": {
 
12
  "type": "string",
13
- "description": "The unique identifier of the booking to retrieve."
 
14
  }
15
  },
16
  "headers": {
17
  "Content-Type": "application/json"
18
  },
19
  "api_response": {
20
- "description": "A decoded JSON object containing booking details.",
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')",