apis

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package apis 预定义的各类型的 API 数据

Index

Constants

This section is empty.

Variables

View Source
var APIS = []*Collection{
	{
		Name: "所有",
		Desc: "所有接口混合测试",
		APIS: make([]*API, 0, 1000),
	},
}

APIS 所有 API 的集体

Functions

This section is empty.

Types

type API

type API struct {
	Method string // 请求方法
	Brace  string // {id} 风格的路由项
	Colon  string // :id 风格的路由项
	Test   string // 本条路由对应的测试地址
}

API 单个 API 接口的定义

type Collection

type Collection struct {
	Name string
	Desc string
	APIS []*API
}

Collection 表示一组 API 的定义。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL