atoti.pyapi package


atoti.pyapi.http_request module

class atoti.pyapi.http_request.HttpRequest(url, body, path_parameters)

Bases: object

Info of an HTTP request.

body: Any

Parsed JSON body of the request.

path_parameters: Mapping[str, str]

Mapping from the name of the path parameters to their value for this request.

url: str

URL on which the client request was made.

atoti.pyapi.user module

class atoti.pyapi.user.User(name, roles)

Bases: object

Info of a user calling a custom HTTP endpoint.

name: str

Name of the user calling the endpoint.

roles: Collection[str]

Roles of the user calling the endpoint.

Module contents