request

package
v0.0.0-...-9be93d0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonParams

type CommonParams struct {
	Query  []interface{} `json:"query"`
	Body   []interface{} `json:"body"`
	Cookie []interface{} `json:"cookie"`
	Header []struct {
		Name string `json:"name"`
	} `json:"header"`
}

type JsonSchema

type JsonSchema struct {
	Type       string                 `json:"type"`
	Properties map[string]interface{} `json:"properties,omitempty"`
}

type Param

type Param struct {
	Required    bool   `json:"required"`
	Description string `json:"description"`
	Type        string `json:"type"`
	Id          string `json:"id"`
	Example     string `json:"example"`
	Enable      bool   `json:"enable"`
	Name        string `json:"name"`
}

type Params

type Params struct {
	Query []Param `json:"query"`
}

type ReqBody

type ReqBody struct {
	Type       string     `json:"type"`
	Parameters []Param    `json:"parameters"`
	JsonSchema JsonSchema `json:"json_schema"`
}

type Response

type Response struct {
	Code        int        `json:"code"`
	ContentType string     `json:"content_type"`
	TempId      string     `json:"temp_id"`
	Name        string     `json:"name"`
	JsonSchema  JsonSchema `json:"json_schema"`
}

type SaveApiReq

type SaveApiReq struct {
	Path                  string                 `json:"path"`
	Method                string                 `json:"method"`
	Name                  string                 `json:"name"`
	FolderId              int                    `json:"folder_id"`
	Status                string                 `json:"status"`
	ServerId              string                 `json:"server_id"`
	ResponsibleId         int                    `json:"responsible_id"`
	Tags                  []string               `json:"tags"`
	Description           string                 `json:"description"`
	OperationId           string                 `json:"operation_id"`
	SourceUrl             string                 `json:"source_url"`
	Responses             []Response             `json:"responses"`
	ResponseExamples      []string               `json:"response_examples"`
	CodeSamples           []string               `json:"code_samples"`
	CommonParameters      CommonParams           `json:"common_parameters"`
	CustomApiFields       map[string]interface{} `json:"custom_api_fields"`
	CommonResponseStatus  interface{}            `json:"common_response_status"`
	ResponseId            int                    `json:"response_id"`
	Type                  string                 `json:"type"`
	Parameters            Params                 `json:"parameters"`
	RequestBody           ReqBody                `json:"request_body"`
	ResponseChildren      []string               `json:"response_children"`
	Auth                  interface{}            `json:"auth"`
	AdvancedSettings      interface{}            `json:"advanced_settings"`
	InheritPostProcessors bool                   `json:"inherit_post_processors"`
	InheritPreProcessors  bool                   `json:"inherit_pre_processors"`
	PreProcessors         []string               `json:"pre_processors"`
	PostProcessors        []string               `json:"post_processors"`
}

Jump to

Keyboard shortcuts

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