We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05487fe commit be33d03Copy full SHA for be33d03
2 files changed
sample/dockerfiled/requirements.txt
@@ -1 +1 @@
1
-git+https://github.com/TheRacetrack/job-runner-python-lib.git@rest
+git+https://github.com/TheRacetrack/job-runner-python-lib.git@master
src/racetrack_job_wrapper/endpoint_config.py
@@ -5,7 +5,16 @@
5
6
@dataclass
7
class EndpointConfig:
8
+ """Definition of a single HTTP endpoint.
9
+
10
+ Attributes:
11
+ path: HTTP path at which the endpoint is registered.
12
+ method: HTTP verb used to bind the handler - only GET and POST are supported at moment.
13
+ handler: Callable invoked when the endpoint is hit.
14
+ other_options: Additional FastAPI route options.
15
+ """
16
17
path: str
18
method: HTTPMethod
19
handler: Callable
- other_options: Dict[str, Any] = field(default_factory=dict)
20
+ other_options: Dict[str, Any] = field(default_factory=dict)
0 commit comments