Starter Templates
Jumpstart your API gateway development process with our pre-built starter templates
Templates
Log Request & Response
Capture the full request and response to send to your log provider.
Programmability
Logging
Repository
zuplo/examples/log-request-responseRun Locally
npx create-zuplo-api --example log-request-responseLog Request & Response#
This sample shows how to add logging for every request that captures the full request and response in order to send to your log provider.
This example uses the OnResponseSendingFinal hook in the zuplo.runtime.ts file to register a global log event.
Use this example locally#
To develop with this example locally, you can create a new Zuplo project using our CLI
npx create-zuplo-api@latest my-api --example log-request-response
Then, in the project directory run the following commands:
npm install
npm run devOther Examples
Jumpstart your API gateway development process with our pre-built starter templates
OpenAI App
Example ChatGPT App using an MCP Server and the OpenAI Apps SDK.
GraphQL MCP Server
Exposing GraphQL APIs as an MCP Server with built-in introspection.
MCP Custom Tools
MCP Server with a custom tool that orchestrates multiple API calls.
MCP Server Prompts
An example MCP Server with additional MCP Prompts to enhance the end user experience.