We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86007af commit dfd3b67Copy full SHA for dfd3b67
ogc_api_processes_fastapi/endpoints.py
@@ -147,6 +147,11 @@ def get_conformance(request: fastapi.Request) -> models.ConfClass:
147
return get_conformance
148
149
150
+# The nesting of endpoint functions inside generator functions is needed
151
+# to be able to pass the client to the endpoint function.
152
+# Client is passed as a dependency to the endpoint function so that all its
153
+# arguments are resolved as endpoints parameters and correctly inserted in the
154
+# automatic documentation.
155
def create_get_processes_endpoint(
156
client: clients.BaseClient,
157
) -> Callable[[fastapi.Request], models.ProcessList]:
0 commit comments