Wrapper for the Announcement Text API.

Fetch the rendered job announcement text for a single job opportunity announcement.

Pair this endpoint with a control number discovered from SearchEndpoint.JOAItem to pull the full HTML description.

AnnouncementTextEndpoint

Bases: BaseModel

Declarative wrapper around the Announcement Text API.

Source code in usajobsapi/endpoints/announcementtext.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class AnnouncementTextEndpoint(BaseModel):
    """
    Declarative wrapper around the [Announcement Text API](https://developer.usajobs.gov/api-reference/get-api-announcementtext).
    """

    METHOD: str = "GET"
    PATH: str = "/api/historicjoa/announcementtext"

    class Params(BaseModel):
        def to_params(self) -> Dict[str, str]:
            return _dump_by_alias(self)

    class Response(BaseModel):
        pass