File size: 2,986 Bytes
daf2ab5
 
a6e4abe
555d347
2d2333e
daf2ab5
77ba750
a6e4abe
f963e32
2d2333e
a6e4abe
b4624aa
 
 
 
 
 
 
 
 
 
 
 
 
daf2ab5
 
77ba750
a6e4abe
77ba750
 
a6e4abe
77ba750
 
a76c74c
daf2ab5
77ba750
 
 
 
 
 
 
 
 
 
a6e4abe
77ba750
 
 
 
 
 
 
 
 
2c8c8a7
77ba750
a6e4abe
2c8c8a7
77ba750
2d8ef09
77ba750
2d8ef09
daf2ab5
b06e6cd
555d347
a76c74c
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
import json

# API Documentation
api_docs = {
    "base_url": "https://670dccd0073307b4ee447f2f.mockapi.io/daysoff/api/V1",
    "endpoints": {
        "/booking": {
            "method": "GET",
            "description": "Retrieve booking information associated with a specific booking ID.",
            "parameters": None,
            "response": {
                "description": "A JSON object listing information associated with a booking ID (bestillingskode).",
                "content_type": "application/json",
                "fields": {
                    "Bestillingskode": "response.get('Bestillingskode', 'N/A')",
                    "Navn": "response.get('Navn', 'N/A')",
                    "Beløp": "response.get('Beløp', 'N/A')",
                    "Checkin": "response.get('Checkin', 'N/A')",
                    "Checkout": "response.get('Checkout', 'N/A')",
                    "Addresse": "response.get('Addresse', 'N/A')",
                    "Bruker ID": "response.get('Bruker ID', 'N/A')",
                    "Viktig informasjon": "response.get('Viktig informasjon', 'N/A')",
                    "Message": "response.get('Message', 'N/A')",
                },
            }
        },
        "/firmahytteordning": {
            "method": "GET",
            "description": "Retrieve general information about Daysoff's services.",
            "parameters": None,
            "response": {
                "description": "A JSON object containing general information about Daysoff's services. ",
                "content_type": "application/json"
           }
        },
        "/personvernspolicy": { 
            "method": "GET",
            "description": "Retrieve questions and answers about personvernspolicy for DaysOff.",
            "parameters": None,
            "response": {
                "description": "A JSON object containing questions and answers about personvernspolicy for DaysOff. ",
                "content_type": "application/json"
            }
        },
        "/faq_ansatte": { 
            "method": "GET",
            "description": "Retrieve spørsmål og svar vi ofte får fra ansatte i bedrifter med DaysOff firmahytteordning.",
            "parameters": None,
            "response": {
                "description": "A JSON object containing spørsmål og svar vi ofte får fra ansatte i bedrifter med DaysOff firmahytteordning.",
                "content_type": "application/json"
            }
        },
        "/faq_utleiere": { 
            "method": "GET",
            "description": "Retrieve spørsmål og svar vi ofte får fra utleiere om DaysOff firmahytteordning.",
            "parameters": None,
            "response": {
                "description": "A JSON object containing spørsmål og svar vi ofte får fra utleiere om DaysOff firmahytteordning.",
                "content_type": "application/json"
            }
        }       
    }
}

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