Commit c4c600eb authored by Corentin Barreau's avatar Corentin Barreau
Browse files

Add: bypassSeencheck

parent 5f629af1
......@@ -7,7 +7,7 @@ import (
"net/http"
)
func (c *Client) Discovered(URLs []string, URLType string) (discoveredResponse *DiscoveredResponse, err error) {
func (c *Client) Discovered(URLs []string, URLType string, bypassSeencheck bool) (discoveredResponse *DiscoveredResponse, err error) {
expectedStatusCode := 201
discoveredResponse = new(DiscoveredResponse)
......@@ -18,9 +18,10 @@ func (c *Client) Discovered(URLs []string, URLType string) (discoveredResponse *
}
payload := DiscoveredPayload{
Project: c.Project,
Type: URLType,
URLs: URLsPayload,
Project: c.Project,
BypassSeencheck: bypassSeencheck,
Type: URLType,
URLs: URLsPayload,
}
jsonPayload, err := json.Marshal(payload)
......
......@@ -31,9 +31,10 @@ type FinishedResponse struct {
}
type DiscoveredPayload struct {
Project string `json:"project"`
Type string `json:"type"`
URLs []URL `json:"urls"`
Project string `json:"project"`
Type string `json:"type"`
URLs []URL `json:"urls"`
BypassSeencheck bool `json:"bypassSeencheck"`
}
type FinishedPayload struct {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment