File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ def get_all_endpoints():
15
15
16
16
endpoints .append (root .split (ENDPOINTS_DIR )[1 ] + "/" + file [:- 4 ])
17
17
18
+ endpoints .sort ()
18
19
return endpoints
19
20
20
21
def get_all_documented_endpoints ():
@@ -31,11 +32,20 @@ def get_all_documented_endpoints():
31
32
32
33
endpoints .append (match .group (1 ))
33
34
35
+ endpoints .sort ()
34
36
return endpoints
35
37
36
- print (get_all_endpoints ())
37
- print (get_all_documented_endpoints ())
38
+ if __name__ == "__main__" :
39
+ endpoints = get_all_endpoints ()
40
+ documented_endpoints = get_all_documented_endpoints ()
38
41
39
- print ()
42
+ # Show endpoints that are not documented and endpoints that have been removed
43
+ print ("Undocumented endpoints:" )
44
+ for endpoint in endpoints :
45
+ if endpoint not in documented_endpoints and not endpoint .startswith ("/status/" ):
46
+ print (f" - { endpoint } " )
40
47
41
- print (set (get_all_endpoints ()) ^ set (get_all_documented_endpoints ()))
48
+ print ("Removed endpoints:" )
49
+ for endpoint in documented_endpoints :
50
+ if endpoint not in endpoints :
51
+ print (f" - { endpoint } " )
You can’t perform that action at this time.
0 commit comments