Documentation
¶
Index ¶
- func DefaultServiceFromSource(source string) string
- func ResolveServiceName(serviceOverride, title, sourceHint string) (string, error)
- type APISpec
- type GETOperation
- type Loader
- type NestedSpec
- type Operation
- type OperationSpec
- type Parameter
- type ParameterSpec
- type Parser
- type PathItem
- type PathNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveServiceName ¶
Types ¶
type GETOperation ¶
type NestedSpec ¶
type NestedSpec struct {
Title string `json:"title"`
Version string `json:"version"`
Paths *PathNode `json:"paths"`
}
func BuildNestedSpec ¶
func BuildNestedSpec(api APISpec) (*NestedSpec, error)
type OperationSpec ¶
type OperationSpec struct {
ID string `json:"id"`
PathTemplate string `json:"pathTemplate"`
PathFormat string `json:"pathFormat"`
PathArgNames []string `json:"pathArgNames"`
QueryParams []ParameterSpec `json:"queryParams"`
HeaderParams []ParameterSpec `json:"headerParams"`
}
type ParameterSpec ¶
type PathNode ¶
type PathNode struct {
Operation *OperationSpec `json:"operation,omitempty"`
Children map[string]*PathNode `json:"children,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.