10
10
11
11
12
12
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
+ """
15
17
V1 = {
16
18
"page" : "rest/api/content" ,
17
19
"page_by_id" : "rest/api/content/{id}" ,
@@ -22,12 +24,14 @@ class ConfluenceEndpoints:
22
24
}
23
25
24
26
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
31
35
}
32
36
33
37
0 commit comments