Skip to content

Commit be33d03

Browse files
Fix
1 parent 05487fe commit be33d03

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
git+https://github.com/TheRacetrack/job-runner-python-lib.git@rest
1+
git+https://github.com/TheRacetrack/job-runner-python-lib.git@master

src/racetrack_job_wrapper/endpoint_config.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,16 @@
55

66
@dataclass
77
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+
817
path: str
918
method: HTTPMethod
1019
handler: Callable
11-
other_options: Dict[str, Any] = field(default_factory=dict)
20+
other_options: Dict[str, Any] = field(default_factory=dict)

0 commit comments

Comments
 (0)