File size: 1,170 Bytes
daf2ab5
 
 
 
555d347
daf2ab5
 
42471e4
daf2ab5
 
 
 
9a9d8fa
daf2ab5
 
 
 
 
 
9a9d8fa
daf2ab5
 
 
 
 
 
 
 
 
 
 
 
 
555d347
 
9bbdce4
daf2ab5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
### api_docs_mck.py

import json

api_docs = {
    "base_url": "https://670dccd0073307b4ee447f2f.mockapi.io/daysoff/api/V1/booking",
    "endpoints": {
        "method": "GET",
        "description": "Retrieve booking information for a given booking ID.",
        "parameters": {
            "booking_id": {
                "type": "string",
                "description": "The unique identifier of the booking to retrieve."
            }
        },
        "headers": {
            "Content-Type": "application/json"
        },
        "response": {
            "description": "A decoded JSON object containing booking details.",
            "content_type": "application/json",
            "booking_info": {
                "booking_id": "response.get('booking_id', 'N/A')",
                "full_name": "response.get('full_name', 'N/A')",
                "amount": "response.get('amount', 'N/A')",
                "date": "response.get('date', 'N/A')",
                "address": "response.get('address', 'N/A')",
                "user_id": "response.get('user_id', 'N/A')"
            }
        }
    }
}

api_docs_str = json.dumps(api_docs, indent=2)
api_docs_str