Skip to content

@vtj / Modules / core / ApiSchema

Interface: ApiSchema

core.ApiSchema

项目级API类型数据源

Table of contents

Properties

Properties

headers

Optional headers: JSExpression | JSFunction

请求头配置

Defined in

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


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:55


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:40


mock

Optional mock: boolean

是否开启模拟数据

Defined in

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


mockTemplate

Optional mockTemplate: JSFunction

模拟数据模板

Defined in

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


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:45


url

url: string

接口请求url

Defined in

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

Released under the MIT License.