Skip to content

Commit 8c42d8e

Browse files
committed
Implement Phase 2: Core Methods for Confluence API v2 support
1 parent 069d82c commit 8c42d8e

File tree

5 files changed

+1716
-43
lines changed

5 files changed

+1716
-43
lines changed

atlassian/confluence_base.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010

1111

1212
class ConfluenceEndpoints:
13-
"""Class for storing Confluence endpoints for different API versions"""
14-
13+
"""
14+
Class to define endpoint mappings for different Confluence API versions.
15+
These endpoints can be accessed through the ConfluenceBase get_endpoint method.
16+
"""
1517
V1 = {
1618
"page": "rest/api/content",
1719
"page_by_id": "rest/api/content/{id}",
@@ -22,12 +24,14 @@ class ConfluenceEndpoints:
2224
}
2325

2426
V2 = {
25-
"page": "api/v2/pages",
26-
"page_by_id": "api/v2/pages/{id}",
27-
"child_pages": "api/v2/pages/{id}/children",
28-
"content_search": "api/v2/search",
29-
"space": "api/v2/spaces",
30-
"space_by_key": "api/v2/spaces/{key}",
27+
'page_by_id': 'api/v2/pages/{id}',
28+
'page': 'api/v2/pages',
29+
'child_pages': 'api/v2/pages/{id}/children/page',
30+
'search': 'api/v2/search',
31+
'spaces': 'api/v2/spaces',
32+
'space_by_id': 'api/v2/spaces/{id}',
33+
34+
# More v2 endpoints will be added in Phase 2 and 3
3135
}
3236

3337

0 commit comments

Comments
 (0)