api

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Routes

func Routes(r *gin.Engine, h *Handler)

Types

type HTTPResponseReports added in v0.6.1

type HTTPResponseReports struct {
	Reports []*report.ScanReport `json:"reports"`
}

type Handler

type Handler struct{}

func NewHandler

func NewHandler() *Handler

func (*Handler) ScanGraphQL

func (h *Handler) ScanGraphQL(ctx *gin.Context)

func (*Handler) ScanOpenAPI

func (h *Handler) ScanOpenAPI(ctx *gin.Context)

func (*Handler) ScanURL

func (h *Handler) ScanURL(ctx *gin.Context)

type NewGraphQLScanRequest

type NewGraphQLScanRequest struct {
	Endpoint string `form:"endpoint" json:"endpoint" binding:"required"`

	Opts *ScanOptions `json:"options"`
}

type NewOpenAPIScanRequest

type NewOpenAPIScanRequest struct {
	Schema          string `json:"schema" binding:"required"`
	SecuritySchemes map[string]struct {
		Value string `json:"value" binding:"required"`
	} `json:"security_schemes"`

	Opts *ScanOptions `json:"options"`
}

type NewURLScanRequest

type NewURLScanRequest struct {
	URL    string `form:"url" json:"url" binding:"required"`
	Method string `form:"method" json:"method" binding:"required"`
	Data   string `form:"data" json:"data"`

	Opts *ScanOptions `json:"options"`
}

type ScanOptions added in v0.6.1

type ScanOptions struct {
	RateLimit int    `json:"rateLimit"`
	ProxyURL  string `json:"proxy"`

	Scans        []string `json:"scans"`
	ExcludeScans []string `json:"excludeScans"`
}

Jump to

Keyboard shortcuts

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