Documentation
/
Body Data
Body Data
v0.00
TypeScript
Wappi will pass through specific data into each endpoint function by default. This data is to allow observability and other middleware that you can add.
1
2// CoreHelpers/types.ts
3type Env = 'localhost' | 'dev' | 'stage' | 'prod'
4
5interface WappiBaseNoAuthBody {
6 correlationId: string
7 headers: any
8 env: Env
9}
10
11interface WappiBaseAuthenticatedBody extends WappiBaseNoAuthBody {
12 auth: SuccessResponse
13}
14...
15
16Inside the endpoint, you will receive all the data inside the Body parameter.