Interface: OperationV3<Request, RequestJSON, Response, ResponseJSON, Body, BodyJSON>
moralis-monorepo / @moralisweb3/common-core / OperationV3
Interface: OperationV3<Request, RequestJSON, Response, ResponseJSON, Body, BodyJSON>
@moralisweb3/common-core.OperationV3
Type parameters
Name |
---|
Request |
RequestJSON |
Response |
ResponseJSON |
Body |
BodyJSON |
Table of contents
Properties
- groupName
- hasBody
- hasResponse
- httpMethod
- operationId
- parameterNames
- parseResponse
- routePattern
- serializeBody
- serializeRequest
Properties
groupName
• groupName: string
hasBody
• hasBody: boolean
hasResponse
• hasResponse: boolean
httpMethod
• httpMethod: string
operationId
• operationId: string
parameterNames
• parameterNames: string
[]
parseResponse
• Optional
parseResponse: (json
: ResponseJSON
) => Response
Type declaration
▸ (json
): Response
Parameters
Name | Type |
---|---|
json | ResponseJSON |
Returns
Response
routePattern
• routePattern: string
serializeBody
• Optional
serializeBody: (body
: Body
) => BodyJSON
Type declaration
▸ (body
): BodyJSON
Parameters
Name | Type |
---|---|
body | Body |
Returns
BodyJSON
serializeRequest
• Optional
serializeRequest: (request
: Request
) => RequestJSON
Type declaration
▸ (request
): RequestJSON
Parameters
Name | Type |
---|---|
request | Request |
Returns
RequestJSON