Update api_docs.py
Browse files- api_docs.py +5 -13
api_docs.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
import json
|
4 |
|
5 |
-
# python
|
6 |
api_docs = {
|
7 |
"base_url": "https://aivisions.no/data/daysoff/api/v1/booking/",
|
8 |
"endpoints": {
|
@@ -14,10 +14,11 @@ api_docs = {
|
|
14 |
#"body": {
|
15 |
#"booking_id": {
|
16 |
#"type": "string",
|
|
|
17 |
#"description": "The unique identifier for a booking."
|
18 |
#}
|
19 |
#}
|
20 |
-
}
|
21 |
}
|
22 |
},
|
23 |
"headers": {
|
@@ -41,18 +42,9 @@ api_docs = {
|
|
41 |
}
|
42 |
}
|
43 |
|
|
|
44 |
auth_token = "abc123def456ghi789jkl012mno345pqr678stu901vwx234yz567"
|
45 |
|
46 |
api_docs_str = json.dumps(api_docs, indent=2)
|
47 |
# daysoff_api_docs_str = str(daysoff_api_docs)
|
48 |
-
api_docs_str
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
#"parameters": {
|
54 |
-
#"bestllingskode": {
|
55 |
-
#"type": "string",
|
56 |
-
#"description": "The booking ID to retrieve information for.",
|
57 |
-
#"required": true
|
58 |
-
#}
|
|
|
2 |
|
3 |
import json
|
4 |
|
5 |
+
# python dict.
|
6 |
api_docs = {
|
7 |
"base_url": "https://aivisions.no/data/daysoff/api/v1/booking/",
|
8 |
"endpoints": {
|
|
|
14 |
#"body": {
|
15 |
#"booking_id": {
|
16 |
#"type": "string",
|
17 |
+
#"required": true,
|
18 |
#"description": "The unique identifier for a booking."
|
19 |
#}
|
20 |
#}
|
21 |
+
#}
|
22 |
}
|
23 |
},
|
24 |
"headers": {
|
|
|
42 |
}
|
43 |
}
|
44 |
|
45 |
+
|
46 |
auth_token = "abc123def456ghi789jkl012mno345pqr678stu901vwx234yz567"
|
47 |
|
48 |
api_docs_str = json.dumps(api_docs, indent=2)
|
49 |
# daysoff_api_docs_str = str(daysoff_api_docs)
|
50 |
+
api_docs_str
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|