Skip to content

Api Gateway  >  Structures  >  Resource

Resource

Structure Class

Resource dataclass

Represents an API resource.

Attributes

id class-attribute instance-attribute
id: str | None = None

The resource's identifier.

parent_id class-attribute instance-attribute
parent_id: str | None = None

The parent resource's identifier.

path class-attribute instance-attribute
path: str | None = None

The full path for this resource.

path_part class-attribute instance-attribute
path_part: str | None = None

The last path segment for this resource.

resource_methods class-attribute instance-attribute
resource_methods: dict[str, Method] | None = None

Gets an API resource's method of a given HTTP verb.