File tree 2 files changed +13
-0
lines changed
ogc_api_processes_fastapi
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 25
25
class BaseClient (abc .ABC ):
26
26
"""Defines a pattern for implementing OGC API - Processes endpoints."""
27
27
28
+ endpoints_description : Dict [str , str ] = {
29
+ "GetLandingPage" : "Get landing page" ,
30
+ "GetConformance" : "Get conformance classes" ,
31
+ "GetProcesses" : "Get all available processes" ,
32
+ "GetProcess" : "Get description of the process" ,
33
+ "PostProcessExecution" : "Post request for execution of the process" ,
34
+ "GetJobs" : "Get the list of submitted jobs" ,
35
+ "GetJob" : "Get status information of the job" ,
36
+ "GetJobResults" : "Get results of the job" ,
37
+ "DeleteJob" : "Cancel the job" ,
38
+ }
39
+
28
40
@abc .abstractmethod
29
41
def get_processes (
30
42
self , limit : Optional [int ] = fastapi .Query (None )
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ def register_route(
35
35
route_endpoint = endpoints .create_endpoint (route_name , client = client )
36
36
router .add_api_route (
37
37
name = route_name ,
38
+ description = client .endpoints_description .get (route_name , "" ),
38
39
response_model = response_model ,
39
40
response_model_exclude_unset = True ,
40
41
response_model_exclude_none = True ,
You can’t perform that action at this time.
0 commit comments