ATAPI Twin
Pages

Build

gRPC, GraphQL, and SOAP

The non-REST presets and how a call selects an operation.

gRPC

A gRPC route is unary JSON. Call the method path, or /__grpc/{path}. application/grpc+json is framed. The gRPC preset starts with one SayHello method. Import proto reads service and rpc lines and adds one route per rpc.

curl -sS -X POST https://apitwin.dev/sim/YOUR-SLUG/__grpc/helloworld.Greeter/SayHello \
  -H 'content-type: application/json' \
  -d '{"name":"Ada"}'

GraphQL

The body is either {"operations":{"GetUser":{...}}} or a single {"data":{...}}. The operation name in the query selects the payload. Federation across subgraphs is not a separate feature; each twin is one endpoint.

SOAP

The body is raw XML, or {"operations":{"Add":"<AddResponse/>"}}. SOAPAction, or the element inside the body, picks the operation. Import WSDL builds one route from the operations it finds.