toResponseEntity
Converts a Tapik Response produced by an endpoint with a single output into a Spring ResponseEntity.
Receiver
Tapik endpoint that defines the available outputs.
Return
Spring response entity containing the encoded payload, headers, and status.
Parameters
endpoint response to render.
Converts a Tapik OneOf response produced by an endpoint with multiple outputs into a Spring ResponseEntity.
Receiver
Tapik endpoint that defines the available outputs.
Return
Spring response entity containing the encoded payload, headers, and status.
Parameters
union capturing which output branch was selected.
Converts an arbitrary Tapik response representation into a Spring ResponseEntity.
Receiver
Tapik endpoint that defines the available outputs.
Return
Spring response entity containing the encoded payload, headers, and status.
Parameters
either a concrete Response or OneOf union emitted by the endpoint implementation.