1010
1111
1212class 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