camparchimedes commited on
Commit
2d2333e
ยท
verified ยท
1 Parent(s): 2d8ef09

Update api_docs_mck.py

Browse files
Files changed (1) hide show
  1. api_docs_mck.py +9 -14
api_docs_mck.py CHANGED
@@ -2,21 +2,20 @@ import json
2
 
3
  # API Documentation
4
  api_docs = {
5
- "base_url": "https://670dccd0073307b4ee447f2f.mockapi.io/daysoff/api/V1/",
6
  "endpoints": {
7
- "booking": {
8
  "method": "GET",
9
- "url": "booking",
10
  "description": "Retrieve booking information associated with a specific booking ID.",
 
11
  "headers": {
12
  "Content-Type": "application/json"
13
  },
14
  "response": {
15
- "description": "The booking information associated with a specific booking ID",
16
- "content_type": "application/json",
17
- "requestId": "$datatype.uuid",
18
  "fields": {
19
- "booking_id": "response.get('booking_id', 'N/A')",
20
  "full_name": "response.get('full_name', 'N/A')",
21
  "amount": "response.get('amount', 'N/A')",
22
  "checkin": "response.get('checkin', 'N/A')",
@@ -26,9 +25,8 @@ api_docs = {
26
  }
27
  }
28
  },
29
- "firmahytteordning": {
30
  "method": "GET",
31
- "url": "firmahytteordning",
32
  "description": "Retrieve details about Daysoff's 'Firmahytteordning' service.",
33
  "headers": {
34
  "Content-Type": "application/json"
@@ -36,16 +34,14 @@ api_docs = {
36
  "response": {
37
  "description": "Information about DaysOff's Firmahytteordning.",
38
  "content_type": "application/json",
39
- "requestId": "$datatype.uuid",
40
  "fields": {
41
  "title": "response.get('title', 'N/A')",
42
  "content": "response.get('content', [])"
43
  }
44
  }
45
  },
46
- "personvernspolicy": {
47
  "method": "GET",
48
- "url": "personvernspolicy",
49
  "description": "Retrieve personvernspolicy for DaysOff.",
50
  "headers": {
51
  "Content-Type": "application/json"
@@ -53,7 +49,6 @@ api_docs = {
53
  "response": {
54
  "description": "DaysOff's personvernspolicy.",
55
  "content_type": "application/json",
56
- "requestId": "$datatype.uuid",
57
  "fields": {
58
  "title": "response.get('title', 'N/A')",
59
  "content": "response.get('content', [])"
@@ -62,6 +57,6 @@ api_docs = {
62
  }
63
  }
64
  }
65
-
66
  # Convert to JSON string for usage in your Python application
67
  api_docs_str = json.dumps(api_docs, indent=2)
 
 
2
 
3
  # API Documentation
4
  api_docs = {
5
+ "base_url": "https://670dccd0073307b4ee447f2f.mockapi.io/daysoff/api/V1",
6
  "endpoints": {
7
+ "/booking": {
8
  "method": "GET",
 
9
  "description": "Retrieve booking information associated with a specific booking ID.",
10
+ "parameters": None,
11
  "headers": {
12
  "Content-Type": "application/json"
13
  },
14
  "response": {
15
+ "description": "The booking information associated with a specific booking ID.",
16
+ "content_type": "application/json",
 
17
  "fields": {
18
+ "booking_id": "response.get('booking_id', 'N/A')",
19
  "full_name": "response.get('full_name', 'N/A')",
20
  "amount": "response.get('amount', 'N/A')",
21
  "checkin": "response.get('checkin', 'N/A')",
 
25
  }
26
  }
27
  },
28
+ "/firmahytteordning": {
29
  "method": "GET",
 
30
  "description": "Retrieve details about Daysoff's 'Firmahytteordning' service.",
31
  "headers": {
32
  "Content-Type": "application/json"
 
34
  "response": {
35
  "description": "Information about DaysOff's Firmahytteordning.",
36
  "content_type": "application/json",
 
37
  "fields": {
38
  "title": "response.get('title', 'N/A')",
39
  "content": "response.get('content', [])"
40
  }
41
  }
42
  },
43
+ "/personvernspolicy": {
44
  "method": "GET",
 
45
  "description": "Retrieve personvernspolicy for DaysOff.",
46
  "headers": {
47
  "Content-Type": "application/json"
 
49
  "response": {
50
  "description": "DaysOff's personvernspolicy.",
51
  "content_type": "application/json",
 
52
  "fields": {
53
  "title": "response.get('title', 'N/A')",
54
  "content": "response.get('content', [])"
 
57
  }
58
  }
59
  }
 
60
  # Convert to JSON string for usage in your Python application
61
  api_docs_str = json.dumps(api_docs, indent=2)
62
+ api_docs_str