Documentation
¶
Index ¶
- Variables
- func CheckAndConfigureProxy() (client http.Client)
- func CheckContentType(client http.Client, target string) string
- func CheckSecDefs(doc3 openapi3.T) (apiInQuery bool, apiKey string, apiKeyName string)
- func EnforceSingleContentType(newContentType string)
- func Execute()
- func ExtractSpecFromJS(bodyBytes []byte) []byte
- func GenerateRequests(bodyBytes []byte, client http.Client) []string
- func HandleSchemaReference(schema *openapi3.SchemaRef)
- func MakeRequest(client http.Client, method, target string, timeout int64, reqData io.Reader) ([]byte, string, int)
- func PrintSpecInfo(i openapi3.Info)
- func SetScheme(swaggerURL string) (scheme string)
- func TrimHostScheme(apiTarget, fullUrlHost string) (host string)
- func UnmarshalSpec(bodyBytes []byte) (newDoc *openapi3.T)
- func WriteConvertedDefinitionFile(data []byte)
- type Result
- type SchemaReference
- type SwaggerRequest
- func (s SwaggerRequest) AddParametersToRequest(op *openapi3.Operation) SwaggerRequest
- func (s SwaggerRequest) BuildDefinedRequests(client http.Client, method string, pathItem *openapi3.PathItem, ...) SwaggerRequest
- func (s SwaggerRequest) GetBasePath() string
- func (s SwaggerRequest) IterateOverPaths(client http.Client) SwaggerRequest
- func (s SwaggerRequest) PrintPreparedCommands(method string)
- func (s SwaggerRequest) SetParametersFromSchema(param *openapi3.ParameterRef, location, schemaRef string, ...) SwaggerRequest
- type VerboseResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Headers []string UserAgent string )
Functions ¶
func CheckAndConfigureProxy ¶
func CheckSecDefs ¶
func EnforceSingleContentType ¶
func EnforceSingleContentType(newContentType string)
func ExtractSpecFromJS ¶
func HandleSchemaReference ¶
func MakeRequest ¶
func PrintSpecInfo ¶
func TrimHostScheme ¶
TrimHostScheme trims the scheme from the provided URL if the '-T' flag is supplied to sj.
func UnmarshalSpec ¶
func WriteConvertedDefinitionFile ¶
func WriteConvertedDefinitionFile(data []byte)
Types ¶
type SchemaReference ¶
type SwaggerRequest ¶
type SwaggerRequest struct { ApiKey string ApiKeyName string ApiInQuery bool BasePath string Body map[string]any BodyData []byte Def *openapi3.T Path string Paths []string Query url.Values RawQuery string ResultsJSON []string URL url.URL }
func (SwaggerRequest) AddParametersToRequest ¶
func (s SwaggerRequest) AddParametersToRequest(op *openapi3.Operation) SwaggerRequest
This whole function needs to be refactored/cleaned up a bit
func (SwaggerRequest) BuildDefinedRequests ¶
func (s SwaggerRequest) BuildDefinedRequests(client http.Client, method string, pathItem *openapi3.PathItem, op *openapi3.Operation) SwaggerRequest
func (SwaggerRequest) GetBasePath ¶
func (s SwaggerRequest) GetBasePath() string
func (SwaggerRequest) IterateOverPaths ¶
func (s SwaggerRequest) IterateOverPaths(client http.Client) SwaggerRequest
func (SwaggerRequest) PrintPreparedCommands ¶
func (s SwaggerRequest) PrintPreparedCommands(method string)
func (SwaggerRequest) SetParametersFromSchema ¶
func (s SwaggerRequest) SetParametersFromSchema(param *openapi3.ParameterRef, location, schemaRef string, req *openapi3.RequestBodyRef, counter int) SwaggerRequest
Click to show internal directories.
Click to hide internal directories.