Skip to content

@vtj


@vtj / core / ApiSchema

Interface: ApiSchema

项目级API类型数据源

Properties

category?

optional category: string

分组

Defined in

packages/core/src/protocols/schemas/dataSource.ts:40


headers?

optional headers: JSExpression | JSFunction

请求头配置

Defined in

packages/core/src/protocols/schemas/dataSource.ts:55


id

id: string

唯一标识

Defined in

packages/core/src/protocols/schemas/dataSource.ts:20


jsonpOptions?

optional jsonpOptions: Record<string, any>

jsonp请求配置

Defined in

packages/core/src/protocols/schemas/dataSource.ts:60


label?

optional label: string

接口描述说明

Defined in

packages/core/src/protocols/schemas/dataSource.ts:30


method?

optional method: ApiMethod

接口请求方法

Defined in

packages/core/src/protocols/schemas/dataSource.ts:45


mock?

optional mock: boolean

是否开启模拟数据

Defined in

packages/core/src/protocols/schemas/dataSource.ts:70


mockTemplate?

optional mockTemplate: JSFunction

模拟数据模板

Defined in

packages/core/src/protocols/schemas/dataSource.ts:65


name

name: string

接口名称

Defined in

packages/core/src/protocols/schemas/dataSource.ts:25


settings?

optional settings: Record<string, any>

请求 设置配置

Defined in

packages/core/src/protocols/schemas/dataSource.ts:50


url

url: string

接口请求url

Defined in

packages/core/src/protocols/schemas/dataSource.ts:35

Released under the MIT License.