mirror of
https://github.com/langgenius/dify.git
synced 2026-04-20 14:17:18 +08:00
28 lines
580 B
TypeScript
28 lines
580 B
TypeScript
import { BlockEnum } from '../../types'
|
|
import { MethodEnum } from './types'
|
|
import type { HttpNodeType } from './types'
|
|
|
|
export const mockData: HttpNodeType = {
|
|
title: 'Test',
|
|
desc: 'Test',
|
|
type: BlockEnum.HttpRequest,
|
|
variables: [
|
|
{
|
|
variable: 'name',
|
|
value_selector: ['aaa', 'name'],
|
|
},
|
|
{
|
|
variable: 'age',
|
|
value_selector: ['bbb', 'b', 'c'],
|
|
},
|
|
],
|
|
method: MethodEnum.get,
|
|
url: 'https://api.dify.com/xx',
|
|
headers: 'Content-Type: application/json\nAccept: */*',
|
|
params: '',
|
|
body: {
|
|
type: 'json',
|
|
data: '',
|
|
},
|
|
}
|