Component Callbacks
Demonstrates how to define reusable callback components for asynchronous operations.
Note: This feature is currently not yet implemented in Kestrun. The example below is a placeholder for future support.
Full source
File: pwsh/tutorial/examples/10.11-OpenAPI-Component-Callback.ps1
<#
Sample: OpenAPI Callback Components
Purpose: Demonstrate reusable request header components with multiple content types.
File: 10.11-OpenAPI-Component-Callback.ps1
Notes: Shows class inheritance, component wrapping, and content type negotiation.
#>
throw "This example is not yet implemented."
Step-by-step
- Not Implemented: This feature is planned for a future release.
- Concept: Callbacks describe out-of-band webhooks that the API will send to the consumer (e.g., subscription notifications).
Try it
This example cannot be executed yet.
Troubleshooting
Issue: Feature not implemented.
- Status: This feature is planned for a future release of Kestrun.
- Workaround: For now, document callback webhooks manually in your API documentation or use external documentation links with
Add-KrOpenApiExternalDoc.
References
Previous / Next
Previous: Component Links Next: WebHooks