File size: 2,594 Bytes
daf2ab5
 
 
 
a6e4abe
555d347
a6e4abe
daf2ab5
f963e32
a6e4abe
 
f963e32
a6e4abe
 
 
 
f963e32
 
 
 
 
 
 
 
 
 
 
a6e4abe
daf2ab5
 
a6e4abe
 
 
f963e32
a6e4abe
 
 
 
 
 
f963e32
 
 
 
a6e4abe
 
daf2ab5
9069a07
a6e4abe
9069a07
f963e32
a6e4abe
 
 
 
f963e32
a6e4abe
f963e32
 
 
 
a6e4abe
f963e32
 
 
daf2ab5
 
a6e4abe
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
### api_docs_mck.py

import json

# API Documentation
api_docs = {
    "base_url": "https://670dccd0073307b4ee447f2f.mockapi.io/daysoff/api/V1/",
    "endpoints": {
        "booking": {
            "method": "GET",
            "url": "booking",
            "description": "Retrieve booking information associated with a specific booking ID.",
            "headers": {
                "Content-Type": "application/json"
            },
            "response": {
                "description": "The booking information associated with a specific booking ID",
                "content_type": "application/json", 
                "requestId": "$datatype.uuid",
                "fields": {
                    "booking_id": "response.get('$mockData')", 
                    "full_name": "response.get('$mockData')",
                    "amount": "response.get('$mockData'')",
                    "checkin": "response.get('$mockData')",
                    "checkout": "response.get('$mockData')",
                    "address": "response.get('$mockData')",
                    "user_id": "response.get('$mockData')
                }
            }
        },
        "firmahytteordning": {
            "method": "GET",
            "url": "firmahytteordning",
            "description": "Retrieve details about Daysoff's 'Firmahytteordning' service.",
            "headers": {
                "Content-Type": "application/json"
            },
            "response": {
                "description": "Information about DaysOff's Firmahytteordning.",
                "content_type": "application/json",
                "requestId": "$datatype.uuid",
                "fields": {
                    "title": "response.get('$mockData')",
                    "content": "response.get('$mockData')"
                }
            }
        },
        "personvernspolicy": {
            "method": "GET",
            "url": "personvernspolicy",
            "description": "Retrieve personvernspolicy for DaysOff.",
            "headers": {
                "Content-Type": "application/json"
            },
            "response": {
                "description": "DaysOff's personvernspolicy.",
                "content_type": "application/json",
                "requestId": "$datatype.uuid",
                "fields": {
                    "title": "response.get('$mockData')",
                    "content": "response.get('$mockData')"
                }
           }
       }
   }
}

# Convert to JSON string for usage in your Python application
api_docs_str = json.dumps(api_docs, indent=2)
api_docs_str