SAService Architect Back to designer
SAService ArchitectDocumentation
Python API reference route() | method() | topic() | endpoint()

HTTP, gRPC, Kafka, and Custom endpoints

Create concrete endpoints whose parameters match their connector transport.

When to use

Pass returned Endpoint objects to Pipeline.input or Pipeline.sink.

Behavior

  • Every endpoint requires Function metadata and derives its key from name.
  • Endpoint objects retain their owning Connector and expose function_name for inspection.
  • Kafka topic options control provisioning and consumer behavior as well as topic identity.

HttpConnector.route() properties

HTTP endpoint.

PropertyTypeDescription
namestr

Endpoint name.

Required
functionFunction

Business callback metadata used to generate the implementation contract.

Required
methodHTTPMethodType

HTTP method enum.

Required
pathstr

Route path.

Required
tracing_enabledbool | None

Inbound tracing override.

Default: None

GrpcConnector.method() properties

gRPC endpoint.

PropertyTypeDescription
name / functionstr / Function

Endpoint identity and callback.

Required
method_namestr

RPC method name.

Required
method_typeGrpcMethodType

NoStreaming, ClientStreaming, ServerStreaming, or BidirectionalStreaming.

Default: NoStreaming
tracing_enabledbool | None

Inbound tracing override.

Default: None

KafkaConnector.topic() properties

Kafka endpoint.

PropertyTypeDescription
name / function / topicstr / Function / str

Endpoint identity, callback, and Kafka topic.

Required
enabledbool

Enable runtime integration.

Default: True
create_topicbool | None

Allow generated provisioning.

Default: None
partitions / replication_factorint | None

Provisioned topic shape.

Default: None
consumer_groupstr | None

Consumer group identity.

Default: None
use_partitionerbool | None

Use configured producer partitioning.

Default: None

CustomConnector.endpoint() properties

Custom integration endpoint.

PropertyTypeDescription
namestr

Endpoint name.

Required
functionFunction

Business callback metadata used to generate the implementation contract.

Required
tracing_enabledbool | None

Tracing override.

Default: None

Python example

create_order = http.route(
    "Create Order",
    function=Function(name="CreateOrder", package=endpoint_package),
    method=HTTPMethodType.POST,
    path="/v1/orders",
)
order_created = kafka.topic(
    "Order Created",
    function=Function(name="OrderCreated", module=LOCAL_MODULE),
    topic="orders.created",
    consumer_group="orderservice",
)