POST Get group level audit logs
{{baseUrl}}/group/:groupId/audit
QUERY PARAMS

groupId
BODY json

{
  "filters": {
    "email": "",
    "event": "",
    "excludeEvent": "",
    "projectId": "",
    "userId": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/group/:groupId/audit");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/group/:groupId/audit" {:content-type :json
                                                                 :form-params {:filters {:email ""
                                                                                         :event ""
                                                                                         :excludeEvent ""
                                                                                         :projectId ""
                                                                                         :userId ""}}})
require "http/client"

url = "{{baseUrl}}/group/:groupId/audit"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/group/:groupId/audit"),
    Content = new StringContent("{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/group/:groupId/audit");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/group/:groupId/audit"

	payload := strings.NewReader("{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/group/:groupId/audit HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 118

{
  "filters": {
    "email": "",
    "event": "",
    "excludeEvent": "",
    "projectId": "",
    "userId": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/group/:groupId/audit")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/group/:groupId/audit"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/group/:groupId/audit")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/group/:groupId/audit")
  .header("content-type", "application/json")
  .body("{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  filters: {
    email: '',
    event: '',
    excludeEvent: '',
    projectId: '',
    userId: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/group/:groupId/audit');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/group/:groupId/audit',
  headers: {'content-type': 'application/json'},
  data: {filters: {email: '', event: '', excludeEvent: '', projectId: '', userId: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/group/:groupId/audit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"email":"","event":"","excludeEvent":"","projectId":"","userId":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/group/:groupId/audit',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "filters": {\n    "email": "",\n    "event": "",\n    "excludeEvent": "",\n    "projectId": "",\n    "userId": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/group/:groupId/audit")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/group/:groupId/audit',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({filters: {email: '', event: '', excludeEvent: '', projectId: '', userId: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/group/:groupId/audit',
  headers: {'content-type': 'application/json'},
  body: {filters: {email: '', event: '', excludeEvent: '', projectId: '', userId: ''}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/group/:groupId/audit');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  filters: {
    email: '',
    event: '',
    excludeEvent: '',
    projectId: '',
    userId: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/group/:groupId/audit',
  headers: {'content-type': 'application/json'},
  data: {filters: {email: '', event: '', excludeEvent: '', projectId: '', userId: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/group/:groupId/audit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"email":"","event":"","excludeEvent":"","projectId":"","userId":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"filters": @{ @"email": @"", @"event": @"", @"excludeEvent": @"", @"projectId": @"", @"userId": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/group/:groupId/audit"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/group/:groupId/audit" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/group/:groupId/audit",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'filters' => [
        'email' => '',
        'event' => '',
        'excludeEvent' => '',
        'projectId' => '',
        'userId' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/group/:groupId/audit', [
  'body' => '{
  "filters": {
    "email": "",
    "event": "",
    "excludeEvent": "",
    "projectId": "",
    "userId": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/group/:groupId/audit');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'filters' => [
    'email' => '',
    'event' => '',
    'excludeEvent' => '',
    'projectId' => '',
    'userId' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'filters' => [
    'email' => '',
    'event' => '',
    'excludeEvent' => '',
    'projectId' => '',
    'userId' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/group/:groupId/audit');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/group/:groupId/audit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "email": "",
    "event": "",
    "excludeEvent": "",
    "projectId": "",
    "userId": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/group/:groupId/audit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "email": "",
    "event": "",
    "excludeEvent": "",
    "projectId": "",
    "userId": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/group/:groupId/audit", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/group/:groupId/audit"

payload = { "filters": {
        "email": "",
        "event": "",
        "excludeEvent": "",
        "projectId": "",
        "userId": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/group/:groupId/audit"

payload <- "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/group/:groupId/audit")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/group/:groupId/audit') do |req|
  req.body = "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/group/:groupId/audit";

    let payload = json!({"filters": json!({
            "email": "",
            "event": "",
            "excludeEvent": "",
            "projectId": "",
            "userId": ""
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/group/:groupId/audit \
  --header 'content-type: application/json' \
  --data '{
  "filters": {
    "email": "",
    "event": "",
    "excludeEvent": "",
    "projectId": "",
    "userId": ""
  }
}'
echo '{
  "filters": {
    "email": "",
    "event": "",
    "excludeEvent": "",
    "projectId": "",
    "userId": ""
  }
}' |  \
  http POST {{baseUrl}}/group/:groupId/audit \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "filters": {\n    "email": "",\n    "event": "",\n    "excludeEvent": "",\n    "projectId": "",\n    "userId": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/group/:groupId/audit
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["filters": [
    "email": "",
    "event": "",
    "excludeEvent": "",
    "projectId": "",
    "userId": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/group/:groupId/audit")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

[
  {
    "content": {
      "after": {
        "name": "Group Current Name"
      },
      "before": {
        "name": "Group Previous Name"
      }
    },
    "created": "2017-04-11T21:00:00.000Z",
    "event": "group.edit",
    "groupId": "4a18d42f-0706-4ad0-b127-24078731fbea",
    "orgId": "4a18d42f-0706-4ad0-b127-24078731fbea",
    "projectId": null,
    "userId": "4a18d42f-0706-4ad0-b127-24078731fbea"
  }
]
POST Get organization level audit logs
{{baseUrl}}/org/:orgId/audit
QUERY PARAMS

orgId
BODY json

{
  "filters": {
    "email": "",
    "event": "",
    "excludeEvent": "",
    "projectId": "",
    "userId": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/audit");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/audit" {:content-type :json
                                                             :form-params {:filters {:email ""
                                                                                     :event ""
                                                                                     :excludeEvent ""
                                                                                     :projectId ""
                                                                                     :userId ""}}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/audit"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/audit"),
    Content = new StringContent("{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/audit");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/audit"

	payload := strings.NewReader("{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/audit HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 118

{
  "filters": {
    "email": "",
    "event": "",
    "excludeEvent": "",
    "projectId": "",
    "userId": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/audit")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/audit"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/audit")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/audit")
  .header("content-type", "application/json")
  .body("{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  filters: {
    email: '',
    event: '',
    excludeEvent: '',
    projectId: '',
    userId: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/audit');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/audit',
  headers: {'content-type': 'application/json'},
  data: {filters: {email: '', event: '', excludeEvent: '', projectId: '', userId: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/audit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"email":"","event":"","excludeEvent":"","projectId":"","userId":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/audit',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "filters": {\n    "email": "",\n    "event": "",\n    "excludeEvent": "",\n    "projectId": "",\n    "userId": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/audit")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/audit',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({filters: {email: '', event: '', excludeEvent: '', projectId: '', userId: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/audit',
  headers: {'content-type': 'application/json'},
  body: {filters: {email: '', event: '', excludeEvent: '', projectId: '', userId: ''}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/audit');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  filters: {
    email: '',
    event: '',
    excludeEvent: '',
    projectId: '',
    userId: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/audit',
  headers: {'content-type': 'application/json'},
  data: {filters: {email: '', event: '', excludeEvent: '', projectId: '', userId: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/audit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"email":"","event":"","excludeEvent":"","projectId":"","userId":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"filters": @{ @"email": @"", @"event": @"", @"excludeEvent": @"", @"projectId": @"", @"userId": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/audit"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/audit" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/audit",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'filters' => [
        'email' => '',
        'event' => '',
        'excludeEvent' => '',
        'projectId' => '',
        'userId' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/audit', [
  'body' => '{
  "filters": {
    "email": "",
    "event": "",
    "excludeEvent": "",
    "projectId": "",
    "userId": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/audit');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'filters' => [
    'email' => '',
    'event' => '',
    'excludeEvent' => '',
    'projectId' => '',
    'userId' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'filters' => [
    'email' => '',
    'event' => '',
    'excludeEvent' => '',
    'projectId' => '',
    'userId' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/audit');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/audit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "email": "",
    "event": "",
    "excludeEvent": "",
    "projectId": "",
    "userId": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/audit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "email": "",
    "event": "",
    "excludeEvent": "",
    "projectId": "",
    "userId": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/org/:orgId/audit", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/audit"

payload = { "filters": {
        "email": "",
        "event": "",
        "excludeEvent": "",
        "projectId": "",
        "userId": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/audit"

payload <- "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/audit")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/org/:orgId/audit') do |req|
  req.body = "{\n  \"filters\": {\n    \"email\": \"\",\n    \"event\": \"\",\n    \"excludeEvent\": \"\",\n    \"projectId\": \"\",\n    \"userId\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/audit";

    let payload = json!({"filters": json!({
            "email": "",
            "event": "",
            "excludeEvent": "",
            "projectId": "",
            "userId": ""
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/audit \
  --header 'content-type: application/json' \
  --data '{
  "filters": {
    "email": "",
    "event": "",
    "excludeEvent": "",
    "projectId": "",
    "userId": ""
  }
}'
echo '{
  "filters": {
    "email": "",
    "event": "",
    "excludeEvent": "",
    "projectId": "",
    "userId": ""
  }
}' |  \
  http POST {{baseUrl}}/org/:orgId/audit \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "filters": {\n    "email": "",\n    "event": "",\n    "excludeEvent": "",\n    "projectId": "",\n    "userId": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/audit
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["filters": [
    "email": "",
    "event": "",
    "excludeEvent": "",
    "projectId": "",
    "userId": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/audit")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

[
  {
    "content": {
      "email": "someone@snyk.io",
      "isAdmin": false
    },
    "created": "2017-04-11T21:00:00.000Z",
    "event": "org.user.invite",
    "groupId": "4a18d42f-0706-4ad0-b127-24078731fbea",
    "orgId": "4a18d42f-0706-4ad0-b127-24078731fbea",
    "projectId": null,
    "userId": "4a18d42f-0706-4ad0-b127-24078731fbea"
  },
  {
    "content": {
      "after": "ADMIN",
      "before": "COLLABORATOR",
      "userPublicId": "4a18d42f-0706-4ad0-b127-24078731fbea"
    },
    "created": "2017-05-15T06:02:45.497Z",
    "event": "org.user.role.edit",
    "groupId": "4a18d42f-0706-4ad0-b127-24078731fbea",
    "orgId": "4a18d42f-0706-4ad0-b127-24078731fbea",
    "projectId": null,
    "userId": "4a18d42f-0706-4ad0-b127-24078731fbea"
  }
]
POST List all dependencies
{{baseUrl}}/org/:orgId/dependencies
QUERY PARAMS

orgId
BODY json

{
  "filters": {
    "depStatus": "",
    "dependencies": "",
    "languages": [],
    "licenses": "",
    "projects": "",
    "severity": []
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/dependencies");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"filters\": {\n    \"depStatus\": \"\",\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/dependencies" {:content-type :json
                                                                    :form-params {:filters {:depStatus ""
                                                                                            :dependencies ""
                                                                                            :languages []
                                                                                            :licenses ""
                                                                                            :projects ""
                                                                                            :severity []}}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/dependencies"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"filters\": {\n    \"depStatus\": \"\",\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/dependencies"),
    Content = new StringContent("{\n  \"filters\": {\n    \"depStatus\": \"\",\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/dependencies");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"filters\": {\n    \"depStatus\": \"\",\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/dependencies"

	payload := strings.NewReader("{\n  \"filters\": {\n    \"depStatus\": \"\",\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/dependencies HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 147

{
  "filters": {
    "depStatus": "",
    "dependencies": "",
    "languages": [],
    "licenses": "",
    "projects": "",
    "severity": []
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/dependencies")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"filters\": {\n    \"depStatus\": \"\",\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/dependencies"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"filters\": {\n    \"depStatus\": \"\",\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"depStatus\": \"\",\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/dependencies")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/dependencies")
  .header("content-type", "application/json")
  .body("{\n  \"filters\": {\n    \"depStatus\": \"\",\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}")
  .asString();
const data = JSON.stringify({
  filters: {
    depStatus: '',
    dependencies: '',
    languages: [],
    licenses: '',
    projects: '',
    severity: []
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/dependencies');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/dependencies',
  headers: {'content-type': 'application/json'},
  data: {
    filters: {
      depStatus: '',
      dependencies: '',
      languages: [],
      licenses: '',
      projects: '',
      severity: []
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/dependencies';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"depStatus":"","dependencies":"","languages":[],"licenses":"","projects":"","severity":[]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/dependencies',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "filters": {\n    "depStatus": "",\n    "dependencies": "",\n    "languages": [],\n    "licenses": "",\n    "projects": "",\n    "severity": []\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"depStatus\": \"\",\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/dependencies")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/dependencies',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  filters: {
    depStatus: '',
    dependencies: '',
    languages: [],
    licenses: '',
    projects: '',
    severity: []
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/dependencies',
  headers: {'content-type': 'application/json'},
  body: {
    filters: {
      depStatus: '',
      dependencies: '',
      languages: [],
      licenses: '',
      projects: '',
      severity: []
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/dependencies');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  filters: {
    depStatus: '',
    dependencies: '',
    languages: [],
    licenses: '',
    projects: '',
    severity: []
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/dependencies',
  headers: {'content-type': 'application/json'},
  data: {
    filters: {
      depStatus: '',
      dependencies: '',
      languages: [],
      licenses: '',
      projects: '',
      severity: []
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/dependencies';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"depStatus":"","dependencies":"","languages":[],"licenses":"","projects":"","severity":[]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"filters": @{ @"depStatus": @"", @"dependencies": @"", @"languages": @[  ], @"licenses": @"", @"projects": @"", @"severity": @[  ] } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/dependencies"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/dependencies" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"filters\": {\n    \"depStatus\": \"\",\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/dependencies",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'filters' => [
        'depStatus' => '',
        'dependencies' => '',
        'languages' => [
                
        ],
        'licenses' => '',
        'projects' => '',
        'severity' => [
                
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/dependencies', [
  'body' => '{
  "filters": {
    "depStatus": "",
    "dependencies": "",
    "languages": [],
    "licenses": "",
    "projects": "",
    "severity": []
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/dependencies');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'filters' => [
    'depStatus' => '',
    'dependencies' => '',
    'languages' => [
        
    ],
    'licenses' => '',
    'projects' => '',
    'severity' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'filters' => [
    'depStatus' => '',
    'dependencies' => '',
    'languages' => [
        
    ],
    'licenses' => '',
    'projects' => '',
    'severity' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/dependencies');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/dependencies' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "depStatus": "",
    "dependencies": "",
    "languages": [],
    "licenses": "",
    "projects": "",
    "severity": []
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/dependencies' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "depStatus": "",
    "dependencies": "",
    "languages": [],
    "licenses": "",
    "projects": "",
    "severity": []
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"filters\": {\n    \"depStatus\": \"\",\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/org/:orgId/dependencies", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/dependencies"

payload = { "filters": {
        "depStatus": "",
        "dependencies": "",
        "languages": [],
        "licenses": "",
        "projects": "",
        "severity": []
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/dependencies"

payload <- "{\n  \"filters\": {\n    \"depStatus\": \"\",\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/dependencies")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"filters\": {\n    \"depStatus\": \"\",\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/org/:orgId/dependencies') do |req|
  req.body = "{\n  \"filters\": {\n    \"depStatus\": \"\",\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/dependencies";

    let payload = json!({"filters": json!({
            "depStatus": "",
            "dependencies": "",
            "languages": (),
            "licenses": "",
            "projects": "",
            "severity": ()
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/dependencies \
  --header 'content-type: application/json' \
  --data '{
  "filters": {
    "depStatus": "",
    "dependencies": "",
    "languages": [],
    "licenses": "",
    "projects": "",
    "severity": []
  }
}'
echo '{
  "filters": {
    "depStatus": "",
    "dependencies": "",
    "languages": [],
    "licenses": "",
    "projects": "",
    "severity": []
  }
}' |  \
  http POST {{baseUrl}}/org/:orgId/dependencies \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "filters": {\n    "depStatus": "",\n    "dependencies": "",\n    "languages": [],\n    "licenses": "",\n    "projects": "",\n    "severity": []\n  }\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/dependencies
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["filters": [
    "depStatus": "",
    "dependencies": "",
    "languages": [],
    "licenses": "",
    "projects": "",
    "severity": []
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/dependencies")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "results": [
    {
      "copyright": [
        "Copyright (c) 2013-2018 Blaine Bublitz ",
        "Copyright (c) Eric Schoffstall  and other contributors"
      ],
      "dependenciesWithIssues": [
        "minimatch@2.0.10",
        "minimatch@0.2.14"
      ],
      "deprecatedVersions": [
        "0.0.1",
        "0.0.2",
        "0.0.3"
      ],
      "firstPublishedDate": "2013-07-04T23:27:07.828Z",
      "id": "gulp@3.9.1",
      "isDeprecated": false,
      "latestVersion": "4.0.0",
      "latestVersionPublishedDate": "2018-01-01T01:29:06.863Z",
      "licenses": [
        {
          "id": "snyk:lic:npm:gulp:MIT",
          "license": "MIT",
          "title": "MIT license"
        }
      ],
      "name": "gulp",
      "projects": [
        {
          "id": "6d5813be-7e6d-4ab8-80c2-1e3e2a454545",
          "name": "atokeneduser/goof"
        }
      ],
      "type": "npm",
      "version": "3.9.1"
    }
  ],
  "total": 1
}
GET Get an organization's entitlement value
{{baseUrl}}/org/:orgId/entitlement/:entitlementKey
QUERY PARAMS

orgId
entitlementKey
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/entitlement/:entitlementKey");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/entitlement/:entitlementKey")
require "http/client"

url = "{{baseUrl}}/org/:orgId/entitlement/:entitlementKey"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/entitlement/:entitlementKey"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/entitlement/:entitlementKey");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/entitlement/:entitlementKey"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/entitlement/:entitlementKey HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/entitlement/:entitlementKey")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/entitlement/:entitlementKey"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/entitlement/:entitlementKey")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/entitlement/:entitlementKey")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/entitlement/:entitlementKey');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/entitlement/:entitlementKey'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/entitlement/:entitlementKey';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/entitlement/:entitlementKey',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/entitlement/:entitlementKey")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/entitlement/:entitlementKey',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/entitlement/:entitlementKey'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/entitlement/:entitlementKey');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/entitlement/:entitlementKey'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/entitlement/:entitlementKey';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/entitlement/:entitlementKey"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/entitlement/:entitlementKey" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/entitlement/:entitlementKey",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/entitlement/:entitlementKey');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/entitlement/:entitlementKey');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/entitlement/:entitlementKey');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/entitlement/:entitlementKey' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/entitlement/:entitlementKey' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/entitlement/:entitlementKey")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/entitlement/:entitlementKey"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/entitlement/:entitlementKey"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/entitlement/:entitlementKey")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/entitlement/:entitlementKey') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/entitlement/:entitlementKey";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/entitlement/:entitlementKey
http GET {{baseUrl}}/org/:orgId/entitlement/:entitlementKey
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/entitlement/:entitlementKey
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/entitlement/:entitlementKey")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

true
GET List all entitlements
{{baseUrl}}/org/:orgId/entitlements
QUERY PARAMS

orgId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/entitlements");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/entitlements")
require "http/client"

url = "{{baseUrl}}/org/:orgId/entitlements"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/entitlements"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/entitlements");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/entitlements"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/entitlements HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/entitlements")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/entitlements"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/entitlements")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/entitlements")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/entitlements');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/org/:orgId/entitlements'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/entitlements';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/entitlements',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/entitlements")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/entitlements',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/org/:orgId/entitlements'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/entitlements');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/org/:orgId/entitlements'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/entitlements';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/entitlements"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/entitlements" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/entitlements",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/entitlements');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/entitlements');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/entitlements');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/entitlements' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/entitlements' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/entitlements")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/entitlements"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/entitlements"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/entitlements")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/entitlements') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/entitlements";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/entitlements
http GET {{baseUrl}}/org/:orgId/entitlements
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/entitlements
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/entitlements")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "fullVulnDB": false,
  "licenses": true,
  "reports": true
}
POST Add a member to an organization within a group
{{baseUrl}}/group/:groupId/org/:orgId/members
QUERY PARAMS

groupId
orgId
BODY json

{
  "role": "",
  "userId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/group/:groupId/org/:orgId/members");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"role\": \"\",\n  \"userId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/group/:groupId/org/:orgId/members" {:content-type :json
                                                                              :form-params {:role ""
                                                                                            :userId ""}})
require "http/client"

url = "{{baseUrl}}/group/:groupId/org/:orgId/members"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"role\": \"\",\n  \"userId\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/group/:groupId/org/:orgId/members"),
    Content = new StringContent("{\n  \"role\": \"\",\n  \"userId\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/group/:groupId/org/:orgId/members");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"role\": \"\",\n  \"userId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/group/:groupId/org/:orgId/members"

	payload := strings.NewReader("{\n  \"role\": \"\",\n  \"userId\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/group/:groupId/org/:orgId/members HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 32

{
  "role": "",
  "userId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/group/:groupId/org/:orgId/members")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"role\": \"\",\n  \"userId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/group/:groupId/org/:orgId/members"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"role\": \"\",\n  \"userId\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"role\": \"\",\n  \"userId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/group/:groupId/org/:orgId/members")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/group/:groupId/org/:orgId/members")
  .header("content-type", "application/json")
  .body("{\n  \"role\": \"\",\n  \"userId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  role: '',
  userId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/group/:groupId/org/:orgId/members');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/group/:groupId/org/:orgId/members',
  headers: {'content-type': 'application/json'},
  data: {role: '', userId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/group/:groupId/org/:orgId/members';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"role":"","userId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/group/:groupId/org/:orgId/members',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "role": "",\n  "userId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"role\": \"\",\n  \"userId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/group/:groupId/org/:orgId/members")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/group/:groupId/org/:orgId/members',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({role: '', userId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/group/:groupId/org/:orgId/members',
  headers: {'content-type': 'application/json'},
  body: {role: '', userId: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/group/:groupId/org/:orgId/members');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  role: '',
  userId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/group/:groupId/org/:orgId/members',
  headers: {'content-type': 'application/json'},
  data: {role: '', userId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/group/:groupId/org/:orgId/members';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"role":"","userId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"role": @"",
                              @"userId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/group/:groupId/org/:orgId/members"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/group/:groupId/org/:orgId/members" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"role\": \"\",\n  \"userId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/group/:groupId/org/:orgId/members",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'role' => '',
    'userId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/group/:groupId/org/:orgId/members', [
  'body' => '{
  "role": "",
  "userId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/group/:groupId/org/:orgId/members');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'role' => '',
  'userId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'role' => '',
  'userId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/group/:groupId/org/:orgId/members');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/group/:groupId/org/:orgId/members' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "role": "",
  "userId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/group/:groupId/org/:orgId/members' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "role": "",
  "userId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"role\": \"\",\n  \"userId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/group/:groupId/org/:orgId/members", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/group/:groupId/org/:orgId/members"

payload = {
    "role": "",
    "userId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/group/:groupId/org/:orgId/members"

payload <- "{\n  \"role\": \"\",\n  \"userId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/group/:groupId/org/:orgId/members")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"role\": \"\",\n  \"userId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/group/:groupId/org/:orgId/members') do |req|
  req.body = "{\n  \"role\": \"\",\n  \"userId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/group/:groupId/org/:orgId/members";

    let payload = json!({
        "role": "",
        "userId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/group/:groupId/org/:orgId/members \
  --header 'content-type: application/json' \
  --data '{
  "role": "",
  "userId": ""
}'
echo '{
  "role": "",
  "userId": ""
}' |  \
  http POST {{baseUrl}}/group/:groupId/org/:orgId/members \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "role": "",\n  "userId": ""\n}' \
  --output-document \
  - {{baseUrl}}/group/:groupId/org/:orgId/members
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "role": "",
  "userId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/group/:groupId/org/:orgId/members")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Delete tag from group
{{baseUrl}}/group/:groupId/tags/delete
QUERY PARAMS

groupId
BODY json

{
  "force": false,
  "key": "",
  "value": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/group/:groupId/tags/delete");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"force\": false,\n  \"key\": \"\",\n  \"value\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/group/:groupId/tags/delete" {:content-type :json
                                                                       :form-params {:force false
                                                                                     :key ""
                                                                                     :value ""}})
require "http/client"

url = "{{baseUrl}}/group/:groupId/tags/delete"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"force\": false,\n  \"key\": \"\",\n  \"value\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/group/:groupId/tags/delete"),
    Content = new StringContent("{\n  \"force\": false,\n  \"key\": \"\",\n  \"value\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/group/:groupId/tags/delete");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"force\": false,\n  \"key\": \"\",\n  \"value\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/group/:groupId/tags/delete"

	payload := strings.NewReader("{\n  \"force\": false,\n  \"key\": \"\",\n  \"value\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/group/:groupId/tags/delete HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 48

{
  "force": false,
  "key": "",
  "value": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/group/:groupId/tags/delete")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"force\": false,\n  \"key\": \"\",\n  \"value\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/group/:groupId/tags/delete"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"force\": false,\n  \"key\": \"\",\n  \"value\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"force\": false,\n  \"key\": \"\",\n  \"value\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/group/:groupId/tags/delete")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/group/:groupId/tags/delete")
  .header("content-type", "application/json")
  .body("{\n  \"force\": false,\n  \"key\": \"\",\n  \"value\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  force: false,
  key: '',
  value: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/group/:groupId/tags/delete');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/group/:groupId/tags/delete',
  headers: {'content-type': 'application/json'},
  data: {force: false, key: '', value: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/group/:groupId/tags/delete';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"force":false,"key":"","value":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/group/:groupId/tags/delete',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "force": false,\n  "key": "",\n  "value": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"force\": false,\n  \"key\": \"\",\n  \"value\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/group/:groupId/tags/delete")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/group/:groupId/tags/delete',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({force: false, key: '', value: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/group/:groupId/tags/delete',
  headers: {'content-type': 'application/json'},
  body: {force: false, key: '', value: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/group/:groupId/tags/delete');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  force: false,
  key: '',
  value: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/group/:groupId/tags/delete',
  headers: {'content-type': 'application/json'},
  data: {force: false, key: '', value: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/group/:groupId/tags/delete';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"force":false,"key":"","value":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"force": @NO,
                              @"key": @"",
                              @"value": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/group/:groupId/tags/delete"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/group/:groupId/tags/delete" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"force\": false,\n  \"key\": \"\",\n  \"value\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/group/:groupId/tags/delete",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'force' => null,
    'key' => '',
    'value' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/group/:groupId/tags/delete', [
  'body' => '{
  "force": false,
  "key": "",
  "value": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/group/:groupId/tags/delete');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'force' => null,
  'key' => '',
  'value' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'force' => null,
  'key' => '',
  'value' => ''
]));
$request->setRequestUrl('{{baseUrl}}/group/:groupId/tags/delete');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/group/:groupId/tags/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "force": false,
  "key": "",
  "value": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/group/:groupId/tags/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "force": false,
  "key": "",
  "value": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"force\": false,\n  \"key\": \"\",\n  \"value\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/group/:groupId/tags/delete", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/group/:groupId/tags/delete"

payload = {
    "force": False,
    "key": "",
    "value": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/group/:groupId/tags/delete"

payload <- "{\n  \"force\": false,\n  \"key\": \"\",\n  \"value\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/group/:groupId/tags/delete")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"force\": false,\n  \"key\": \"\",\n  \"value\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/group/:groupId/tags/delete') do |req|
  req.body = "{\n  \"force\": false,\n  \"key\": \"\",\n  \"value\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/group/:groupId/tags/delete";

    let payload = json!({
        "force": false,
        "key": "",
        "value": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/group/:groupId/tags/delete \
  --header 'content-type: application/json' \
  --data '{
  "force": false,
  "key": "",
  "value": ""
}'
echo '{
  "force": false,
  "key": "",
  "value": ""
}' |  \
  http POST {{baseUrl}}/group/:groupId/tags/delete \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "force": false,\n  "key": "",\n  "value": ""\n}' \
  --output-document \
  - {{baseUrl}}/group/:groupId/tags/delete
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "force": false,
  "key": "",
  "value": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/group/:groupId/tags/delete")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "force": false,
  "key": "",
  "value": ""
}
GET List all members in a group
{{baseUrl}}/group/:groupId/members
QUERY PARAMS

groupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/group/:groupId/members");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/group/:groupId/members")
require "http/client"

url = "{{baseUrl}}/group/:groupId/members"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/group/:groupId/members"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/group/:groupId/members");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/group/:groupId/members"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/group/:groupId/members HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/group/:groupId/members")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/group/:groupId/members"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/group/:groupId/members")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/group/:groupId/members")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/group/:groupId/members');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/group/:groupId/members'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/group/:groupId/members';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/group/:groupId/members',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/group/:groupId/members")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/group/:groupId/members',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/group/:groupId/members'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/group/:groupId/members');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/group/:groupId/members'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/group/:groupId/members';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/group/:groupId/members"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/group/:groupId/members" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/group/:groupId/members",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/group/:groupId/members');

echo $response->getBody();
setUrl('{{baseUrl}}/group/:groupId/members');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/group/:groupId/members');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/group/:groupId/members' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/group/:groupId/members' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/group/:groupId/members")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/group/:groupId/members"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/group/:groupId/members"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/group/:groupId/members")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/group/:groupId/members') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/group/:groupId/members";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/group/:groupId/members
http GET {{baseUrl}}/group/:groupId/members
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/group/:groupId/members
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/group/:groupId/members")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

[
  {
    "email": "",
    "groupRole": "",
    "id": "",
    "name": "",
    "orgs": [
      {
        "name": "",
        "role": ""
      }
    ],
    "username": ""
  }
]
GET List all organizations in a group
{{baseUrl}}/group/:groupId/orgs
QUERY PARAMS

groupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/group/:groupId/orgs");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/group/:groupId/orgs")
require "http/client"

url = "{{baseUrl}}/group/:groupId/orgs"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/group/:groupId/orgs"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/group/:groupId/orgs");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/group/:groupId/orgs"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/group/:groupId/orgs HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/group/:groupId/orgs")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/group/:groupId/orgs"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/group/:groupId/orgs")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/group/:groupId/orgs")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/group/:groupId/orgs');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/group/:groupId/orgs'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/group/:groupId/orgs';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/group/:groupId/orgs',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/group/:groupId/orgs")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/group/:groupId/orgs',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/group/:groupId/orgs'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/group/:groupId/orgs');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/group/:groupId/orgs'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/group/:groupId/orgs';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/group/:groupId/orgs"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/group/:groupId/orgs" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/group/:groupId/orgs",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/group/:groupId/orgs');

echo $response->getBody();
setUrl('{{baseUrl}}/group/:groupId/orgs');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/group/:groupId/orgs');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/group/:groupId/orgs' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/group/:groupId/orgs' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/group/:groupId/orgs")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/group/:groupId/orgs"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/group/:groupId/orgs"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/group/:groupId/orgs")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/group/:groupId/orgs') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/group/:groupId/orgs";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/group/:groupId/orgs
http GET {{baseUrl}}/group/:groupId/orgs
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/group/:groupId/orgs
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/group/:groupId/orgs")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "created": "2021-06-07T00:00:00.000Z",
  "id": "a060a49f-636e-480f-9e14-38e773b2a97f",
  "name": "ACME Inc.",
  "orgs": [
    {
      "created": "2021-06-07T00:00:00.000Z",
      "id": "689ce7f9-7943-4a71-b704-2ba575f01089",
      "name": "myDefaultOrg",
      "slug": "my-default-org",
      "url": "https://api.snyk.io/org/default-org"
    },
    {
      "created": "2021-06-07T00:00:00.000Z",
      "id": "a04d9cbd-ae6e-44af-b573-0556b0ad4bd2",
      "name": "My Other Org",
      "slug": "my-other-org",
      "url": "https://api.snyk.io/org/my-other-org"
    }
  ],
  "url": "https://api.snyk.io/group/0dfc509a-e7a9-48ef-9d39-649d6468fc09"
}
GET List all roles in a group
{{baseUrl}}/group/:groupId/roles
QUERY PARAMS

groupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/group/:groupId/roles");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/group/:groupId/roles")
require "http/client"

url = "{{baseUrl}}/group/:groupId/roles"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/group/:groupId/roles"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/group/:groupId/roles");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/group/:groupId/roles"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/group/:groupId/roles HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/group/:groupId/roles")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/group/:groupId/roles"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/group/:groupId/roles")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/group/:groupId/roles")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/group/:groupId/roles');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/group/:groupId/roles'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/group/:groupId/roles';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/group/:groupId/roles',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/group/:groupId/roles")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/group/:groupId/roles',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/group/:groupId/roles'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/group/:groupId/roles');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/group/:groupId/roles'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/group/:groupId/roles';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/group/:groupId/roles"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/group/:groupId/roles" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/group/:groupId/roles",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/group/:groupId/roles');

echo $response->getBody();
setUrl('{{baseUrl}}/group/:groupId/roles');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/group/:groupId/roles');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/group/:groupId/roles' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/group/:groupId/roles' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/group/:groupId/roles")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/group/:groupId/roles"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/group/:groupId/roles"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/group/:groupId/roles")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/group/:groupId/roles') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/group/:groupId/roles";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/group/:groupId/roles
http GET {{baseUrl}}/group/:groupId/roles
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/group/:groupId/roles
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/group/:groupId/roles")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

[
  {
    "created": "2021-04-22T16:02:53.233Z",
    "description": "Collaborator",
    "modified": "2021-04-22T16:02:53.332Z",
    "name": "Org Collaborator",
    "publicId": "6525b356-a400-465f-b2e5-3eee1161e69f"
  },
  {
    "created": "2021-04-22T16:02:53.233Z",
    "description": "Admin",
    "modified": "2021-04-22T16:02:53.332Z",
    "name": "Org Admin",
    "publicId": "af047fef-69f3-4bd9-9760-8957ce0d2ece"
  }
]
GET List all tags in a group
{{baseUrl}}/group/:groupId/tags
QUERY PARAMS

groupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/group/:groupId/tags");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/group/:groupId/tags")
require "http/client"

url = "{{baseUrl}}/group/:groupId/tags"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/group/:groupId/tags"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/group/:groupId/tags");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/group/:groupId/tags"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/group/:groupId/tags HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/group/:groupId/tags")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/group/:groupId/tags"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/group/:groupId/tags")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/group/:groupId/tags")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/group/:groupId/tags');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/group/:groupId/tags'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/group/:groupId/tags';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/group/:groupId/tags',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/group/:groupId/tags")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/group/:groupId/tags',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/group/:groupId/tags'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/group/:groupId/tags');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/group/:groupId/tags'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/group/:groupId/tags';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/group/:groupId/tags"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/group/:groupId/tags" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/group/:groupId/tags",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/group/:groupId/tags');

echo $response->getBody();
setUrl('{{baseUrl}}/group/:groupId/tags');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/group/:groupId/tags');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/group/:groupId/tags' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/group/:groupId/tags' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/group/:groupId/tags")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/group/:groupId/tags"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/group/:groupId/tags"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/group/:groupId/tags")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/group/:groupId/tags') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/group/:groupId/tags";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/group/:groupId/tags
http GET {{baseUrl}}/group/:groupId/tags
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/group/:groupId/tags
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/group/:groupId/tags")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "tags": [
    {
      "key": "meta",
      "value": "Alfa"
    },
    {
      "key": "meta",
      "value": "Bravo"
    },
    {
      "key": "meta",
      "value": "Charlie"
    },
    {
      "key": "meta",
      "value": "Delta"
    },
    {
      "key": "meta",
      "value": "Echo"
    },
    {
      "key": "meta",
      "value": "Foxtrot"
    },
    {
      "key": "meta",
      "value": "Golf"
    },
    {
      "key": "meta",
      "value": "Hotel"
    },
    {
      "key": "meta",
      "value": "India"
    },
    {
      "key": "meta",
      "value": "Juliet"
    }
  ]
}
PUT Update group settings
{{baseUrl}}/group/:groupId/settings
QUERY PARAMS

groupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/group/:groupId/settings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/group/:groupId/settings")
require "http/client"

url = "{{baseUrl}}/group/:groupId/settings"

response = HTTP::Client.put url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/group/:groupId/settings"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/group/:groupId/settings");
var request = new RestRequest("", Method.Put);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/group/:groupId/settings"

	req, _ := http.NewRequest("PUT", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/group/:groupId/settings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/group/:groupId/settings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/group/:groupId/settings"))
    .method("PUT", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/group/:groupId/settings")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/group/:groupId/settings")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/group/:groupId/settings');

xhr.send(data);
import axios from 'axios';

const options = {method: 'PUT', url: '{{baseUrl}}/group/:groupId/settings'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/group/:groupId/settings';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/group/:groupId/settings',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/group/:groupId/settings")
  .put(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/group/:groupId/settings',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'PUT', url: '{{baseUrl}}/group/:groupId/settings'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/group/:groupId/settings');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'PUT', url: '{{baseUrl}}/group/:groupId/settings'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/group/:groupId/settings';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/group/:groupId/settings"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/group/:groupId/settings" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/group/:groupId/settings",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/group/:groupId/settings');

echo $response->getBody();
setUrl('{{baseUrl}}/group/:groupId/settings');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/group/:groupId/settings');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/group/:groupId/settings' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/group/:groupId/settings' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/group/:groupId/settings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/group/:groupId/settings"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/group/:groupId/settings"

response <- VERB("PUT", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/group/:groupId/settings")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.put('/baseUrl/group/:groupId/settings') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/group/:groupId/settings";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/group/:groupId/settings
http PUT {{baseUrl}}/group/:groupId/settings
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/group/:groupId/settings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/group/:groupId/settings")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET View group settings
{{baseUrl}}/group/:groupId/settings
QUERY PARAMS

groupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/group/:groupId/settings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/group/:groupId/settings")
require "http/client"

url = "{{baseUrl}}/group/:groupId/settings"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/group/:groupId/settings"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/group/:groupId/settings");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/group/:groupId/settings"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/group/:groupId/settings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/group/:groupId/settings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/group/:groupId/settings"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/group/:groupId/settings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/group/:groupId/settings")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/group/:groupId/settings');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/group/:groupId/settings'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/group/:groupId/settings';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/group/:groupId/settings',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/group/:groupId/settings")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/group/:groupId/settings',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/group/:groupId/settings'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/group/:groupId/settings');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/group/:groupId/settings'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/group/:groupId/settings';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/group/:groupId/settings"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/group/:groupId/settings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/group/:groupId/settings",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/group/:groupId/settings');

echo $response->getBody();
setUrl('{{baseUrl}}/group/:groupId/settings');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/group/:groupId/settings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/group/:groupId/settings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/group/:groupId/settings' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/group/:groupId/settings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/group/:groupId/settings"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/group/:groupId/settings"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/group/:groupId/settings")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/group/:groupId/settings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/group/:groupId/settings";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/group/:groupId/settings
http GET {{baseUrl}}/group/:groupId/settings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/group/:groupId/settings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/group/:groupId/settings")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Get import job details
{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId
QUERY PARAMS

orgId
integrationId
jobId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId")
require "http/client"

url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/integrations/:integrationId/import/:jobId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/integrations/:integrationId/import/:jobId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/integrations/:integrationId/import/:jobId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/integrations/:integrationId/import/:jobId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId
http GET {{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/integrations/:integrationId/import/:jobId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "created": "2018-07-23T15:21:10.611Z",
  "id": "dce061f7-ce0f-4ccf-b49b-4335d1205bd9",
  "logs": [
    {
      "created": "2018-07-23T15:21:10.643Z",
      "name": "org1/repo1",
      "projects": [],
      "status": "failed"
    },
    {
      "created": "2018-07-23T15:21:10.644Z",
      "name": "org2/repo2",
      "projects": [
        {
          "projectUrl": "https://snyk.io/org/org-name/project/7eeaee25-5f9b-4d05-8818-4cca2c9d9adc",
          "success": true,
          "targetFile": "package.json"
        }
      ],
      "status": "complete"
    },
    {
      "created": "2018-07-23T15:21:10.643Z",
      "name": "org3/repo3",
      "projects": [
        {
          "projectUrl": "https://snyk.io/org/org-name/project/0382897c-0617-4429-86df-51187dfd42f6",
          "success": true,
          "targetFile": "package.json"
        }
      ],
      "status": "pending"
    }
  ],
  "status": "pending"
}
POST Import targets
{{baseUrl}}/org/:orgId/integrations/:integrationId/import
QUERY PARAMS

orgId
integrationId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/integrations/:integrationId/import");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/integrations/:integrationId/import")
require "http/client"

url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/import"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/integrations/:integrationId/import"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/integrations/:integrationId/import");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/integrations/:integrationId/import"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/integrations/:integrationId/import HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/integrations/:integrationId/import")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/integrations/:integrationId/import"))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:integrationId/import")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/integrations/:integrationId/import")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/integrations/:integrationId/import');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/import'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/integrations/:integrationId/import';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/import',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:integrationId/import")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/integrations/:integrationId/import',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/import'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/integrations/:integrationId/import');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/import'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/integrations/:integrationId/import';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/integrations/:integrationId/import"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/integrations/:integrationId/import" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/integrations/:integrationId/import",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/integrations/:integrationId/import');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/integrations/:integrationId/import');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/integrations/:integrationId/import');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/integrations/:integrationId/import' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/integrations/:integrationId/import' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/org/:orgId/integrations/:integrationId/import")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/import"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/integrations/:integrationId/import"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/integrations/:integrationId/import")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/org/:orgId/integrations/:integrationId/import') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/import";

    let client = reqwest::Client::new();
    let response = client.post(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/integrations/:integrationId/import
http POST {{baseUrl}}/org/:orgId/integrations/:integrationId/import
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/org/:orgId/integrations/:integrationId/import
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/integrations/:integrationId/import")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Add new integration
{{baseUrl}}/org/:orgId/integrations
QUERY PARAMS

orgId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/integrations");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/integrations")
require "http/client"

url = "{{baseUrl}}/org/:orgId/integrations"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/integrations"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/integrations");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/integrations"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/integrations HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/integrations")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/integrations"))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/integrations")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/integrations');

xhr.send(data);
import axios from 'axios';

const options = {method: 'POST', url: '{{baseUrl}}/org/:orgId/integrations'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/integrations';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/integrations',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/integrations',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'POST', url: '{{baseUrl}}/org/:orgId/integrations'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/integrations');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'POST', url: '{{baseUrl}}/org/:orgId/integrations'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/integrations';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/integrations"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/integrations" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/integrations",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/integrations');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/integrations');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/integrations');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/integrations' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/integrations' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = ""

conn.request("POST", "/baseUrl/org/:orgId/integrations", payload)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/integrations"

payload = ""

response = requests.post(url, data=payload)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/integrations"

payload <- ""

response <- VERB("POST", url, body = payload, content_type(""))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/integrations")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/org/:orgId/integrations') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/integrations";

    let client = reqwest::Client::new();
    let response = client.post(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/integrations
http POST {{baseUrl}}/org/:orgId/integrations
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/org/:orgId/integrations
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/integrations")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "brokerToken": "4a18d42f-0706-4ad0-b127-24078731fbed",
  "id": "9a3e5d90-b782-468a-a042-9a2073736f0b"
}
POST Clone an integration (with settings and credentials)
{{baseUrl}}/org/:orgId/integrations/:integrationId/clone
QUERY PARAMS

orgId
integrationId
BODY json

{
  "destinationOrgPublicId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/integrations/:integrationId/clone");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"destinationOrgPublicId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/integrations/:integrationId/clone" {:content-type :json
                                                                                         :form-params {:destinationOrgPublicId ""}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/clone"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"destinationOrgPublicId\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/integrations/:integrationId/clone"),
    Content = new StringContent("{\n  \"destinationOrgPublicId\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/integrations/:integrationId/clone");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"destinationOrgPublicId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/integrations/:integrationId/clone"

	payload := strings.NewReader("{\n  \"destinationOrgPublicId\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/integrations/:integrationId/clone HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 34

{
  "destinationOrgPublicId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/integrations/:integrationId/clone")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"destinationOrgPublicId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/integrations/:integrationId/clone"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"destinationOrgPublicId\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"destinationOrgPublicId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:integrationId/clone")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/integrations/:integrationId/clone")
  .header("content-type", "application/json")
  .body("{\n  \"destinationOrgPublicId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  destinationOrgPublicId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/integrations/:integrationId/clone');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/clone',
  headers: {'content-type': 'application/json'},
  data: {destinationOrgPublicId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/integrations/:integrationId/clone';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"destinationOrgPublicId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/clone',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "destinationOrgPublicId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"destinationOrgPublicId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:integrationId/clone")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/integrations/:integrationId/clone',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({destinationOrgPublicId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/clone',
  headers: {'content-type': 'application/json'},
  body: {destinationOrgPublicId: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/integrations/:integrationId/clone');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  destinationOrgPublicId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/clone',
  headers: {'content-type': 'application/json'},
  data: {destinationOrgPublicId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/integrations/:integrationId/clone';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"destinationOrgPublicId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"destinationOrgPublicId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/integrations/:integrationId/clone"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/integrations/:integrationId/clone" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"destinationOrgPublicId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/integrations/:integrationId/clone",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'destinationOrgPublicId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/integrations/:integrationId/clone', [
  'body' => '{
  "destinationOrgPublicId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/integrations/:integrationId/clone');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'destinationOrgPublicId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'destinationOrgPublicId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/integrations/:integrationId/clone');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/integrations/:integrationId/clone' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "destinationOrgPublicId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/integrations/:integrationId/clone' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "destinationOrgPublicId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"destinationOrgPublicId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/org/:orgId/integrations/:integrationId/clone", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/clone"

payload = { "destinationOrgPublicId": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/integrations/:integrationId/clone"

payload <- "{\n  \"destinationOrgPublicId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/integrations/:integrationId/clone")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"destinationOrgPublicId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/org/:orgId/integrations/:integrationId/clone') do |req|
  req.body = "{\n  \"destinationOrgPublicId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/clone";

    let payload = json!({"destinationOrgPublicId": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/integrations/:integrationId/clone \
  --header 'content-type: application/json' \
  --data '{
  "destinationOrgPublicId": ""
}'
echo '{
  "destinationOrgPublicId": ""
}' |  \
  http POST {{baseUrl}}/org/:orgId/integrations/:integrationId/clone \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "destinationOrgPublicId": ""\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/integrations/:integrationId/clone
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["destinationOrgPublicId": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/integrations/:integrationId/clone")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "newIntegrationId": "9a3e5d90-b782-468a-a042-9a2073736f0b"
}
DELETE Delete credentials
{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication
QUERY PARAMS

orgId
integrationId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication")
require "http/client"

url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/org/:orgId/integrations/:integrationId/authentication HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/integrations/:integrationId/authentication',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/org/:orgId/integrations/:integrationId/authentication")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/org/:orgId/integrations/:integrationId/authentication') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/org/:orgId/integrations/:integrationId/authentication
http DELETE {{baseUrl}}/org/:orgId/integrations/:integrationId/authentication
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/org/:orgId/integrations/:integrationId/authentication
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Get existing integration by type
{{baseUrl}}/org/:orgId/integrations/:type
QUERY PARAMS

orgId
type
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/integrations/:type");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/integrations/:type")
require "http/client"

url = "{{baseUrl}}/org/:orgId/integrations/:type"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/integrations/:type"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/integrations/:type");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/integrations/:type"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/integrations/:type HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/integrations/:type")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/integrations/:type"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:type")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/integrations/:type")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/integrations/:type');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/integrations/:type'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/integrations/:type';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/integrations/:type',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:type")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/integrations/:type',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/integrations/:type'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/integrations/:type');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/integrations/:type'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/integrations/:type';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/integrations/:type"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/integrations/:type" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/integrations/:type",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/integrations/:type');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/integrations/:type');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/integrations/:type');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/integrations/:type' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/integrations/:type' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/integrations/:type")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/integrations/:type"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/integrations/:type"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/integrations/:type")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/integrations/:type') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/integrations/:type";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/integrations/:type
http GET {{baseUrl}}/org/:orgId/integrations/:type
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/integrations/:type
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/integrations/:type")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "id": "9a3e5d90-b782-468a-a042-9a2073736f0b"
}
GET List
{{baseUrl}}/org/:orgId/integrations
QUERY PARAMS

orgId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/integrations");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/integrations")
require "http/client"

url = "{{baseUrl}}/org/:orgId/integrations"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/integrations"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/integrations");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/integrations"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/integrations HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/integrations")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/integrations"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/integrations")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/integrations');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/org/:orgId/integrations'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/integrations';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/integrations',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/integrations',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/org/:orgId/integrations'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/integrations');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/org/:orgId/integrations'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/integrations';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/integrations"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/integrations" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/integrations",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/integrations');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/integrations');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/integrations');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/integrations' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/integrations' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/integrations")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/integrations"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/integrations"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/integrations")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/integrations') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/integrations";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/integrations
http GET {{baseUrl}}/org/:orgId/integrations
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/integrations
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/integrations")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "bitbucket-cloud": "6jje4c92-e7rn-t59a-f456-8n5675432fe9",
  "github": "9a3e5d90-b782-468a-a042-9a2073736f0b",
  "gitlab": "1b3e3d90-c678-347a-n232-6a3453738h1e"
}
POST Provision new broker token
{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token
QUERY PARAMS

orgId
integrationId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token")
require "http/client"

url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/integrations/:integrationId/authentication/provision-token HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token"))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/integrations/:integrationId/authentication/provision-token',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/org/:orgId/integrations/:integrationId/authentication/provision-token")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/org/:orgId/integrations/:integrationId/authentication/provision-token') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token";

    let client = reqwest::Client::new();
    let response = client.post(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token
http POST {{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/provision-token")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "id": "9a3e5d90-b782-468a-a042-9a2073736f0b",
  "provisionalBrokerToken": "4a18d42f-0706-4ad0-b127-24078731fbed"
}
GET Retrieve
{{baseUrl}}/org/:orgId/integrations/:integrationId/settings
QUERY PARAMS

orgId
integrationId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings")
require "http/client"

url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/integrations/:integrationId/settings"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/integrations/:integrationId/settings");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/integrations/:integrationId/settings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/integrations/:integrationId/settings"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:integrationId/settings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/integrations/:integrationId/settings")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:integrationId/settings")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/integrations/:integrationId/settings',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/integrations/:integrationId/settings"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/integrations/:integrationId/settings');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/integrations/:integrationId/settings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/integrations/:integrationId/settings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/integrations/:integrationId/settings")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/integrations/:integrationId/settings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/integrations/:integrationId/settings
http GET {{baseUrl}}/org/:orgId/integrations/:integrationId/settings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/integrations/:integrationId/settings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Switch between broker tokens
{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token
QUERY PARAMS

orgId
integrationId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token")
require "http/client"

url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/integrations/:integrationId/authentication/switch-token HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token"))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/integrations/:integrationId/authentication/switch-token',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/org/:orgId/integrations/:integrationId/authentication/switch-token")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/org/:orgId/integrations/:integrationId/authentication/switch-token') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token";

    let client = reqwest::Client::new();
    let response = client.post(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token
http POST {{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/integrations/:integrationId/authentication/switch-token")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Update existing integration
{{baseUrl}}/org/:orgId/integrations/:integrationId
QUERY PARAMS

orgId
integrationId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/integrations/:integrationId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/org/:orgId/integrations/:integrationId")
require "http/client"

url = "{{baseUrl}}/org/:orgId/integrations/:integrationId"

response = HTTP::Client.put url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/integrations/:integrationId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/integrations/:integrationId");
var request = new RestRequest("", Method.Put);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/integrations/:integrationId"

	req, _ := http.NewRequest("PUT", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/org/:orgId/integrations/:integrationId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/org/:orgId/integrations/:integrationId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/integrations/:integrationId"))
    .method("PUT", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:integrationId")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/org/:orgId/integrations/:integrationId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/org/:orgId/integrations/:integrationId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/integrations/:integrationId';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:integrationId")
  .put(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/integrations/:integrationId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/org/:orgId/integrations/:integrationId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/integrations/:integrationId';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/integrations/:integrationId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/integrations/:integrationId" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/integrations/:integrationId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => "",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/org/:orgId/integrations/:integrationId');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/integrations/:integrationId');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/integrations/:integrationId');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/integrations/:integrationId' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/integrations/:integrationId' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = ""

conn.request("PUT", "/baseUrl/org/:orgId/integrations/:integrationId", payload)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/integrations/:integrationId"

payload = ""

response = requests.put(url, data=payload)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/integrations/:integrationId"

payload <- ""

response <- VERB("PUT", url, body = payload, content_type(""))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/integrations/:integrationId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.put('/baseUrl/org/:orgId/integrations/:integrationId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/integrations/:integrationId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/org/:orgId/integrations/:integrationId
http PUT {{baseUrl}}/org/:orgId/integrations/:integrationId
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/org/:orgId/integrations/:integrationId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/integrations/:integrationId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "id": "9a3e5d90-b782-468a-a042-9a2073736f0b"
}
PUT Update
{{baseUrl}}/org/:orgId/integrations/:integrationId/settings
QUERY PARAMS

orgId
integrationId
BODY json

{
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [],
  "autoDepUpgradeLimit": "",
  "autoDepUpgradeMinAge": "",
  "autoRemediationPrs": {
    "backlogPrsEnabled": false,
    "freshPrsEnabled": false,
    "usePatchRemediation": false
  },
  "dockerfileSCMEnabled": false,
  "manualRemediationPrs": {
    "usePatchRemediation": false
  },
  "pullRequestAssignment": {
    "assignees": [],
    "enabled": false,
    "type": ""
  },
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": false,
  "pullRequestTestEnabled": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"dockerfileSCMEnabled\": false,\n  \"manualRemediationPrs\": {\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings" {:content-type :json
                                                                                           :form-params {:autoDepUpgradeEnabled false
                                                                                                         :autoDepUpgradeIgnoredDependencies []
                                                                                                         :autoDepUpgradeLimit ""
                                                                                                         :autoDepUpgradeMinAge ""
                                                                                                         :autoRemediationPrs {:backlogPrsEnabled false
                                                                                                                              :freshPrsEnabled false
                                                                                                                              :usePatchRemediation false}
                                                                                                         :dockerfileSCMEnabled false
                                                                                                         :manualRemediationPrs {:usePatchRemediation false}
                                                                                                         :pullRequestAssignment {:assignees []
                                                                                                                                 :enabled false
                                                                                                                                 :type ""}
                                                                                                         :pullRequestFailOnAnyVulns false
                                                                                                         :pullRequestFailOnlyForHighSeverity false
                                                                                                         :pullRequestTestEnabled false}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"dockerfileSCMEnabled\": false,\n  \"manualRemediationPrs\": {\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/integrations/:integrationId/settings"),
    Content = new StringContent("{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"dockerfileSCMEnabled\": false,\n  \"manualRemediationPrs\": {\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/integrations/:integrationId/settings");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"dockerfileSCMEnabled\": false,\n  \"manualRemediationPrs\": {\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings"

	payload := strings.NewReader("{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"dockerfileSCMEnabled\": false,\n  \"manualRemediationPrs\": {\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/org/:orgId/integrations/:integrationId/settings HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 575

{
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [],
  "autoDepUpgradeLimit": "",
  "autoDepUpgradeMinAge": "",
  "autoRemediationPrs": {
    "backlogPrsEnabled": false,
    "freshPrsEnabled": false,
    "usePatchRemediation": false
  },
  "dockerfileSCMEnabled": false,
  "manualRemediationPrs": {
    "usePatchRemediation": false
  },
  "pullRequestAssignment": {
    "assignees": [],
    "enabled": false,
    "type": ""
  },
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": false,
  "pullRequestTestEnabled": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"dockerfileSCMEnabled\": false,\n  \"manualRemediationPrs\": {\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/integrations/:integrationId/settings"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"dockerfileSCMEnabled\": false,\n  \"manualRemediationPrs\": {\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"dockerfileSCMEnabled\": false,\n  \"manualRemediationPrs\": {\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:integrationId/settings")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/org/:orgId/integrations/:integrationId/settings")
  .header("content-type", "application/json")
  .body("{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"dockerfileSCMEnabled\": false,\n  \"manualRemediationPrs\": {\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}")
  .asString();
const data = JSON.stringify({
  autoDepUpgradeEnabled: false,
  autoDepUpgradeIgnoredDependencies: [],
  autoDepUpgradeLimit: '',
  autoDepUpgradeMinAge: '',
  autoRemediationPrs: {
    backlogPrsEnabled: false,
    freshPrsEnabled: false,
    usePatchRemediation: false
  },
  dockerfileSCMEnabled: false,
  manualRemediationPrs: {
    usePatchRemediation: false
  },
  pullRequestAssignment: {
    assignees: [],
    enabled: false,
    type: ''
  },
  pullRequestFailOnAnyVulns: false,
  pullRequestFailOnlyForHighSeverity: false,
  pullRequestTestEnabled: false
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings',
  headers: {'content-type': 'application/json'},
  data: {
    autoDepUpgradeEnabled: false,
    autoDepUpgradeIgnoredDependencies: [],
    autoDepUpgradeLimit: '',
    autoDepUpgradeMinAge: '',
    autoRemediationPrs: {backlogPrsEnabled: false, freshPrsEnabled: false, usePatchRemediation: false},
    dockerfileSCMEnabled: false,
    manualRemediationPrs: {usePatchRemediation: false},
    pullRequestAssignment: {assignees: [], enabled: false, type: ''},
    pullRequestFailOnAnyVulns: false,
    pullRequestFailOnlyForHighSeverity: false,
    pullRequestTestEnabled: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"autoDepUpgradeEnabled":false,"autoDepUpgradeIgnoredDependencies":[],"autoDepUpgradeLimit":"","autoDepUpgradeMinAge":"","autoRemediationPrs":{"backlogPrsEnabled":false,"freshPrsEnabled":false,"usePatchRemediation":false},"dockerfileSCMEnabled":false,"manualRemediationPrs":{"usePatchRemediation":false},"pullRequestAssignment":{"assignees":[],"enabled":false,"type":""},"pullRequestFailOnAnyVulns":false,"pullRequestFailOnlyForHighSeverity":false,"pullRequestTestEnabled":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "autoDepUpgradeEnabled": false,\n  "autoDepUpgradeIgnoredDependencies": [],\n  "autoDepUpgradeLimit": "",\n  "autoDepUpgradeMinAge": "",\n  "autoRemediationPrs": {\n    "backlogPrsEnabled": false,\n    "freshPrsEnabled": false,\n    "usePatchRemediation": false\n  },\n  "dockerfileSCMEnabled": false,\n  "manualRemediationPrs": {\n    "usePatchRemediation": false\n  },\n  "pullRequestAssignment": {\n    "assignees": [],\n    "enabled": false,\n    "type": ""\n  },\n  "pullRequestFailOnAnyVulns": false,\n  "pullRequestFailOnlyForHighSeverity": false,\n  "pullRequestTestEnabled": false\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"dockerfileSCMEnabled\": false,\n  \"manualRemediationPrs\": {\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/integrations/:integrationId/settings")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/integrations/:integrationId/settings',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  autoDepUpgradeEnabled: false,
  autoDepUpgradeIgnoredDependencies: [],
  autoDepUpgradeLimit: '',
  autoDepUpgradeMinAge: '',
  autoRemediationPrs: {backlogPrsEnabled: false, freshPrsEnabled: false, usePatchRemediation: false},
  dockerfileSCMEnabled: false,
  manualRemediationPrs: {usePatchRemediation: false},
  pullRequestAssignment: {assignees: [], enabled: false, type: ''},
  pullRequestFailOnAnyVulns: false,
  pullRequestFailOnlyForHighSeverity: false,
  pullRequestTestEnabled: false
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings',
  headers: {'content-type': 'application/json'},
  body: {
    autoDepUpgradeEnabled: false,
    autoDepUpgradeIgnoredDependencies: [],
    autoDepUpgradeLimit: '',
    autoDepUpgradeMinAge: '',
    autoRemediationPrs: {backlogPrsEnabled: false, freshPrsEnabled: false, usePatchRemediation: false},
    dockerfileSCMEnabled: false,
    manualRemediationPrs: {usePatchRemediation: false},
    pullRequestAssignment: {assignees: [], enabled: false, type: ''},
    pullRequestFailOnAnyVulns: false,
    pullRequestFailOnlyForHighSeverity: false,
    pullRequestTestEnabled: false
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  autoDepUpgradeEnabled: false,
  autoDepUpgradeIgnoredDependencies: [],
  autoDepUpgradeLimit: '',
  autoDepUpgradeMinAge: '',
  autoRemediationPrs: {
    backlogPrsEnabled: false,
    freshPrsEnabled: false,
    usePatchRemediation: false
  },
  dockerfileSCMEnabled: false,
  manualRemediationPrs: {
    usePatchRemediation: false
  },
  pullRequestAssignment: {
    assignees: [],
    enabled: false,
    type: ''
  },
  pullRequestFailOnAnyVulns: false,
  pullRequestFailOnlyForHighSeverity: false,
  pullRequestTestEnabled: false
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings',
  headers: {'content-type': 'application/json'},
  data: {
    autoDepUpgradeEnabled: false,
    autoDepUpgradeIgnoredDependencies: [],
    autoDepUpgradeLimit: '',
    autoDepUpgradeMinAge: '',
    autoRemediationPrs: {backlogPrsEnabled: false, freshPrsEnabled: false, usePatchRemediation: false},
    dockerfileSCMEnabled: false,
    manualRemediationPrs: {usePatchRemediation: false},
    pullRequestAssignment: {assignees: [], enabled: false, type: ''},
    pullRequestFailOnAnyVulns: false,
    pullRequestFailOnlyForHighSeverity: false,
    pullRequestTestEnabled: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"autoDepUpgradeEnabled":false,"autoDepUpgradeIgnoredDependencies":[],"autoDepUpgradeLimit":"","autoDepUpgradeMinAge":"","autoRemediationPrs":{"backlogPrsEnabled":false,"freshPrsEnabled":false,"usePatchRemediation":false},"dockerfileSCMEnabled":false,"manualRemediationPrs":{"usePatchRemediation":false},"pullRequestAssignment":{"assignees":[],"enabled":false,"type":""},"pullRequestFailOnAnyVulns":false,"pullRequestFailOnlyForHighSeverity":false,"pullRequestTestEnabled":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"autoDepUpgradeEnabled": @NO,
                              @"autoDepUpgradeIgnoredDependencies": @[  ],
                              @"autoDepUpgradeLimit": @"",
                              @"autoDepUpgradeMinAge": @"",
                              @"autoRemediationPrs": @{ @"backlogPrsEnabled": @NO, @"freshPrsEnabled": @NO, @"usePatchRemediation": @NO },
                              @"dockerfileSCMEnabled": @NO,
                              @"manualRemediationPrs": @{ @"usePatchRemediation": @NO },
                              @"pullRequestAssignment": @{ @"assignees": @[  ], @"enabled": @NO, @"type": @"" },
                              @"pullRequestFailOnAnyVulns": @NO,
                              @"pullRequestFailOnlyForHighSeverity": @NO,
                              @"pullRequestTestEnabled": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/integrations/:integrationId/settings"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"dockerfileSCMEnabled\": false,\n  \"manualRemediationPrs\": {\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'autoDepUpgradeEnabled' => null,
    'autoDepUpgradeIgnoredDependencies' => [
        
    ],
    'autoDepUpgradeLimit' => '',
    'autoDepUpgradeMinAge' => '',
    'autoRemediationPrs' => [
        'backlogPrsEnabled' => null,
        'freshPrsEnabled' => null,
        'usePatchRemediation' => null
    ],
    'dockerfileSCMEnabled' => null,
    'manualRemediationPrs' => [
        'usePatchRemediation' => null
    ],
    'pullRequestAssignment' => [
        'assignees' => [
                
        ],
        'enabled' => null,
        'type' => ''
    ],
    'pullRequestFailOnAnyVulns' => null,
    'pullRequestFailOnlyForHighSeverity' => null,
    'pullRequestTestEnabled' => null
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings', [
  'body' => '{
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [],
  "autoDepUpgradeLimit": "",
  "autoDepUpgradeMinAge": "",
  "autoRemediationPrs": {
    "backlogPrsEnabled": false,
    "freshPrsEnabled": false,
    "usePatchRemediation": false
  },
  "dockerfileSCMEnabled": false,
  "manualRemediationPrs": {
    "usePatchRemediation": false
  },
  "pullRequestAssignment": {
    "assignees": [],
    "enabled": false,
    "type": ""
  },
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": false,
  "pullRequestTestEnabled": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/integrations/:integrationId/settings');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'autoDepUpgradeEnabled' => null,
  'autoDepUpgradeIgnoredDependencies' => [
    
  ],
  'autoDepUpgradeLimit' => '',
  'autoDepUpgradeMinAge' => '',
  'autoRemediationPrs' => [
    'backlogPrsEnabled' => null,
    'freshPrsEnabled' => null,
    'usePatchRemediation' => null
  ],
  'dockerfileSCMEnabled' => null,
  'manualRemediationPrs' => [
    'usePatchRemediation' => null
  ],
  'pullRequestAssignment' => [
    'assignees' => [
        
    ],
    'enabled' => null,
    'type' => ''
  ],
  'pullRequestFailOnAnyVulns' => null,
  'pullRequestFailOnlyForHighSeverity' => null,
  'pullRequestTestEnabled' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'autoDepUpgradeEnabled' => null,
  'autoDepUpgradeIgnoredDependencies' => [
    
  ],
  'autoDepUpgradeLimit' => '',
  'autoDepUpgradeMinAge' => '',
  'autoRemediationPrs' => [
    'backlogPrsEnabled' => null,
    'freshPrsEnabled' => null,
    'usePatchRemediation' => null
  ],
  'dockerfileSCMEnabled' => null,
  'manualRemediationPrs' => [
    'usePatchRemediation' => null
  ],
  'pullRequestAssignment' => [
    'assignees' => [
        
    ],
    'enabled' => null,
    'type' => ''
  ],
  'pullRequestFailOnAnyVulns' => null,
  'pullRequestFailOnlyForHighSeverity' => null,
  'pullRequestTestEnabled' => null
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/integrations/:integrationId/settings');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [],
  "autoDepUpgradeLimit": "",
  "autoDepUpgradeMinAge": "",
  "autoRemediationPrs": {
    "backlogPrsEnabled": false,
    "freshPrsEnabled": false,
    "usePatchRemediation": false
  },
  "dockerfileSCMEnabled": false,
  "manualRemediationPrs": {
    "usePatchRemediation": false
  },
  "pullRequestAssignment": {
    "assignees": [],
    "enabled": false,
    "type": ""
  },
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": false,
  "pullRequestTestEnabled": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/integrations/:integrationId/settings' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [],
  "autoDepUpgradeLimit": "",
  "autoDepUpgradeMinAge": "",
  "autoRemediationPrs": {
    "backlogPrsEnabled": false,
    "freshPrsEnabled": false,
    "usePatchRemediation": false
  },
  "dockerfileSCMEnabled": false,
  "manualRemediationPrs": {
    "usePatchRemediation": false
  },
  "pullRequestAssignment": {
    "assignees": [],
    "enabled": false,
    "type": ""
  },
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": false,
  "pullRequestTestEnabled": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"dockerfileSCMEnabled\": false,\n  \"manualRemediationPrs\": {\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/org/:orgId/integrations/:integrationId/settings", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings"

payload = {
    "autoDepUpgradeEnabled": False,
    "autoDepUpgradeIgnoredDependencies": [],
    "autoDepUpgradeLimit": "",
    "autoDepUpgradeMinAge": "",
    "autoRemediationPrs": {
        "backlogPrsEnabled": False,
        "freshPrsEnabled": False,
        "usePatchRemediation": False
    },
    "dockerfileSCMEnabled": False,
    "manualRemediationPrs": { "usePatchRemediation": False },
    "pullRequestAssignment": {
        "assignees": [],
        "enabled": False,
        "type": ""
    },
    "pullRequestFailOnAnyVulns": False,
    "pullRequestFailOnlyForHighSeverity": False,
    "pullRequestTestEnabled": False
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings"

payload <- "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"dockerfileSCMEnabled\": false,\n  \"manualRemediationPrs\": {\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/integrations/:integrationId/settings")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"dockerfileSCMEnabled\": false,\n  \"manualRemediationPrs\": {\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/org/:orgId/integrations/:integrationId/settings') do |req|
  req.body = "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"dockerfileSCMEnabled\": false,\n  \"manualRemediationPrs\": {\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings";

    let payload = json!({
        "autoDepUpgradeEnabled": false,
        "autoDepUpgradeIgnoredDependencies": (),
        "autoDepUpgradeLimit": "",
        "autoDepUpgradeMinAge": "",
        "autoRemediationPrs": json!({
            "backlogPrsEnabled": false,
            "freshPrsEnabled": false,
            "usePatchRemediation": false
        }),
        "dockerfileSCMEnabled": false,
        "manualRemediationPrs": json!({"usePatchRemediation": false}),
        "pullRequestAssignment": json!({
            "assignees": (),
            "enabled": false,
            "type": ""
        }),
        "pullRequestFailOnAnyVulns": false,
        "pullRequestFailOnlyForHighSeverity": false,
        "pullRequestTestEnabled": false
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/org/:orgId/integrations/:integrationId/settings \
  --header 'content-type: application/json' \
  --data '{
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [],
  "autoDepUpgradeLimit": "",
  "autoDepUpgradeMinAge": "",
  "autoRemediationPrs": {
    "backlogPrsEnabled": false,
    "freshPrsEnabled": false,
    "usePatchRemediation": false
  },
  "dockerfileSCMEnabled": false,
  "manualRemediationPrs": {
    "usePatchRemediation": false
  },
  "pullRequestAssignment": {
    "assignees": [],
    "enabled": false,
    "type": ""
  },
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": false,
  "pullRequestTestEnabled": false
}'
echo '{
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [],
  "autoDepUpgradeLimit": "",
  "autoDepUpgradeMinAge": "",
  "autoRemediationPrs": {
    "backlogPrsEnabled": false,
    "freshPrsEnabled": false,
    "usePatchRemediation": false
  },
  "dockerfileSCMEnabled": false,
  "manualRemediationPrs": {
    "usePatchRemediation": false
  },
  "pullRequestAssignment": {
    "assignees": [],
    "enabled": false,
    "type": ""
  },
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": false,
  "pullRequestTestEnabled": false
}' |  \
  http PUT {{baseUrl}}/org/:orgId/integrations/:integrationId/settings \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "autoDepUpgradeEnabled": false,\n  "autoDepUpgradeIgnoredDependencies": [],\n  "autoDepUpgradeLimit": "",\n  "autoDepUpgradeMinAge": "",\n  "autoRemediationPrs": {\n    "backlogPrsEnabled": false,\n    "freshPrsEnabled": false,\n    "usePatchRemediation": false\n  },\n  "dockerfileSCMEnabled": false,\n  "manualRemediationPrs": {\n    "usePatchRemediation": false\n  },\n  "pullRequestAssignment": {\n    "assignees": [],\n    "enabled": false,\n    "type": ""\n  },\n  "pullRequestFailOnAnyVulns": false,\n  "pullRequestFailOnlyForHighSeverity": false,\n  "pullRequestTestEnabled": false\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/integrations/:integrationId/settings
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [],
  "autoDepUpgradeLimit": "",
  "autoDepUpgradeMinAge": "",
  "autoRemediationPrs": [
    "backlogPrsEnabled": false,
    "freshPrsEnabled": false,
    "usePatchRemediation": false
  ],
  "dockerfileSCMEnabled": false,
  "manualRemediationPrs": ["usePatchRemediation": false],
  "pullRequestAssignment": [
    "assignees": [],
    "enabled": false,
    "type": ""
  ],
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": false,
  "pullRequestTestEnabled": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/integrations/:integrationId/settings")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [],
  "autoDepUpgradeLimit": 2,
  "autoDepUpgradeMinAge": 21,
  "autoRemediationPrs": {
    "backlogPrsEnabled": false,
    "freshPrsEnabled": true,
    "usePatchRemediation": false
  },
  "dockerfileSCMEnabled": true,
  "manualRemediationPrs": {
    "useManualPatchRemediation": false
  },
  "pullRequestAssignment": {
    "assignees": [
      "username"
    ],
    "enabled": true,
    "type": "manual"
  },
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": true,
  "pullRequestTestEnabled": true
}
POST List all licenses
{{baseUrl}}/org/:orgId/licenses
QUERY PARAMS

orgId
BODY json

{
  "filters": {
    "dependencies": "",
    "languages": [],
    "licenses": "",
    "projects": "",
    "severity": []
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/licenses");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"filters\": {\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/licenses" {:content-type :json
                                                                :form-params {:filters {:dependencies ""
                                                                                        :languages []
                                                                                        :licenses ""
                                                                                        :projects ""
                                                                                        :severity []}}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/licenses"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"filters\": {\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/licenses"),
    Content = new StringContent("{\n  \"filters\": {\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/licenses");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"filters\": {\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/licenses"

	payload := strings.NewReader("{\n  \"filters\": {\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/licenses HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 126

{
  "filters": {
    "dependencies": "",
    "languages": [],
    "licenses": "",
    "projects": "",
    "severity": []
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/licenses")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"filters\": {\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/licenses"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"filters\": {\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/licenses")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/licenses")
  .header("content-type", "application/json")
  .body("{\n  \"filters\": {\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}")
  .asString();
const data = JSON.stringify({
  filters: {
    dependencies: '',
    languages: [],
    licenses: '',
    projects: '',
    severity: []
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/licenses');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/licenses',
  headers: {'content-type': 'application/json'},
  data: {
    filters: {dependencies: '', languages: [], licenses: '', projects: '', severity: []}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/licenses';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"dependencies":"","languages":[],"licenses":"","projects":"","severity":[]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/licenses',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "filters": {\n    "dependencies": "",\n    "languages": [],\n    "licenses": "",\n    "projects": "",\n    "severity": []\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/licenses")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/licenses',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  filters: {dependencies: '', languages: [], licenses: '', projects: '', severity: []}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/licenses',
  headers: {'content-type': 'application/json'},
  body: {
    filters: {dependencies: '', languages: [], licenses: '', projects: '', severity: []}
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/licenses');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  filters: {
    dependencies: '',
    languages: [],
    licenses: '',
    projects: '',
    severity: []
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/licenses',
  headers: {'content-type': 'application/json'},
  data: {
    filters: {dependencies: '', languages: [], licenses: '', projects: '', severity: []}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/licenses';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"dependencies":"","languages":[],"licenses":"","projects":"","severity":[]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"filters": @{ @"dependencies": @"", @"languages": @[  ], @"licenses": @"", @"projects": @"", @"severity": @[  ] } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/licenses"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/licenses" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"filters\": {\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/licenses",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'filters' => [
        'dependencies' => '',
        'languages' => [
                
        ],
        'licenses' => '',
        'projects' => '',
        'severity' => [
                
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/licenses', [
  'body' => '{
  "filters": {
    "dependencies": "",
    "languages": [],
    "licenses": "",
    "projects": "",
    "severity": []
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/licenses');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'filters' => [
    'dependencies' => '',
    'languages' => [
        
    ],
    'licenses' => '',
    'projects' => '',
    'severity' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'filters' => [
    'dependencies' => '',
    'languages' => [
        
    ],
    'licenses' => '',
    'projects' => '',
    'severity' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/licenses');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/licenses' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "dependencies": "",
    "languages": [],
    "licenses": "",
    "projects": "",
    "severity": []
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/licenses' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "dependencies": "",
    "languages": [],
    "licenses": "",
    "projects": "",
    "severity": []
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"filters\": {\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/org/:orgId/licenses", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/licenses"

payload = { "filters": {
        "dependencies": "",
        "languages": [],
        "licenses": "",
        "projects": "",
        "severity": []
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/licenses"

payload <- "{\n  \"filters\": {\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/licenses")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"filters\": {\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/org/:orgId/licenses') do |req|
  req.body = "{\n  \"filters\": {\n    \"dependencies\": \"\",\n    \"languages\": [],\n    \"licenses\": \"\",\n    \"projects\": \"\",\n    \"severity\": []\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/licenses";

    let payload = json!({"filters": json!({
            "dependencies": "",
            "languages": (),
            "licenses": "",
            "projects": "",
            "severity": ()
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/licenses \
  --header 'content-type: application/json' \
  --data '{
  "filters": {
    "dependencies": "",
    "languages": [],
    "licenses": "",
    "projects": "",
    "severity": []
  }
}'
echo '{
  "filters": {
    "dependencies": "",
    "languages": [],
    "licenses": "",
    "projects": "",
    "severity": []
  }
}' |  \
  http POST {{baseUrl}}/org/:orgId/licenses \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "filters": {\n    "dependencies": "",\n    "languages": [],\n    "licenses": "",\n    "projects": "",\n    "severity": []\n  }\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/licenses
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["filters": [
    "dependencies": "",
    "languages": [],
    "licenses": "",
    "projects": "",
    "severity": []
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/licenses")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "results": [
    {
      "dependencies": [
        {
          "id": "accepts@1.0.0",
          "name": "accepts",
          "packageManager": "npm",
          "version": "1.0.0"
        }
      ],
      "id": "MIT",
      "instructions": "",
      "projects": [
        {
          "id": "6d5813be-7e6d-4ab8-80c2-1e3e2a454545",
          "name": "atokeneduser/goof"
        }
      ],
      "severity": "none"
    }
  ],
  "total": 1
}
POST Monitor Dep Graph
{{baseUrl}}/monitor/dep-graph
BODY json

{
  "depGraph": {
    "graph": {
      "nodes": [],
      "rootNodeId": ""
    },
    "pkgManager": {
      "name": "",
      "repositories": []
    },
    "pkgs": [],
    "schemaVersion": ""
  },
  "meta": {
    "targetFramework": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/monitor/dep-graph");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  },\n  \"meta\": {\n    \"targetFramework\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/monitor/dep-graph" {:content-type :json
                                                              :form-params {:depGraph {:graph {:nodes []
                                                                                               :rootNodeId ""}
                                                                                       :pkgManager {:name ""
                                                                                                    :repositories []}
                                                                                       :pkgs []
                                                                                       :schemaVersion ""}
                                                                            :meta {:targetFramework ""}}})
require "http/client"

url = "{{baseUrl}}/monitor/dep-graph"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  },\n  \"meta\": {\n    \"targetFramework\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/monitor/dep-graph"),
    Content = new StringContent("{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  },\n  \"meta\": {\n    \"targetFramework\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/monitor/dep-graph");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  },\n  \"meta\": {\n    \"targetFramework\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/monitor/dep-graph"

	payload := strings.NewReader("{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  },\n  \"meta\": {\n    \"targetFramework\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/monitor/dep-graph HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 240

{
  "depGraph": {
    "graph": {
      "nodes": [],
      "rootNodeId": ""
    },
    "pkgManager": {
      "name": "",
      "repositories": []
    },
    "pkgs": [],
    "schemaVersion": ""
  },
  "meta": {
    "targetFramework": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/monitor/dep-graph")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  },\n  \"meta\": {\n    \"targetFramework\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/monitor/dep-graph"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  },\n  \"meta\": {\n    \"targetFramework\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  },\n  \"meta\": {\n    \"targetFramework\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/monitor/dep-graph")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/monitor/dep-graph")
  .header("content-type", "application/json")
  .body("{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  },\n  \"meta\": {\n    \"targetFramework\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  depGraph: {
    graph: {
      nodes: [],
      rootNodeId: ''
    },
    pkgManager: {
      name: '',
      repositories: []
    },
    pkgs: [],
    schemaVersion: ''
  },
  meta: {
    targetFramework: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/monitor/dep-graph');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/monitor/dep-graph',
  headers: {'content-type': 'application/json'},
  data: {
    depGraph: {
      graph: {nodes: [], rootNodeId: ''},
      pkgManager: {name: '', repositories: []},
      pkgs: [],
      schemaVersion: ''
    },
    meta: {targetFramework: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/monitor/dep-graph';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"depGraph":{"graph":{"nodes":[],"rootNodeId":""},"pkgManager":{"name":"","repositories":[]},"pkgs":[],"schemaVersion":""},"meta":{"targetFramework":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/monitor/dep-graph',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "depGraph": {\n    "graph": {\n      "nodes": [],\n      "rootNodeId": ""\n    },\n    "pkgManager": {\n      "name": "",\n      "repositories": []\n    },\n    "pkgs": [],\n    "schemaVersion": ""\n  },\n  "meta": {\n    "targetFramework": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  },\n  \"meta\": {\n    \"targetFramework\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/monitor/dep-graph")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/monitor/dep-graph',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  depGraph: {
    graph: {nodes: [], rootNodeId: ''},
    pkgManager: {name: '', repositories: []},
    pkgs: [],
    schemaVersion: ''
  },
  meta: {targetFramework: ''}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/monitor/dep-graph',
  headers: {'content-type': 'application/json'},
  body: {
    depGraph: {
      graph: {nodes: [], rootNodeId: ''},
      pkgManager: {name: '', repositories: []},
      pkgs: [],
      schemaVersion: ''
    },
    meta: {targetFramework: ''}
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/monitor/dep-graph');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  depGraph: {
    graph: {
      nodes: [],
      rootNodeId: ''
    },
    pkgManager: {
      name: '',
      repositories: []
    },
    pkgs: [],
    schemaVersion: ''
  },
  meta: {
    targetFramework: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/monitor/dep-graph',
  headers: {'content-type': 'application/json'},
  data: {
    depGraph: {
      graph: {nodes: [], rootNodeId: ''},
      pkgManager: {name: '', repositories: []},
      pkgs: [],
      schemaVersion: ''
    },
    meta: {targetFramework: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/monitor/dep-graph';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"depGraph":{"graph":{"nodes":[],"rootNodeId":""},"pkgManager":{"name":"","repositories":[]},"pkgs":[],"schemaVersion":""},"meta":{"targetFramework":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"depGraph": @{ @"graph": @{ @"nodes": @[  ], @"rootNodeId": @"" }, @"pkgManager": @{ @"name": @"", @"repositories": @[  ] }, @"pkgs": @[  ], @"schemaVersion": @"" },
                              @"meta": @{ @"targetFramework": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/monitor/dep-graph"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/monitor/dep-graph" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  },\n  \"meta\": {\n    \"targetFramework\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/monitor/dep-graph",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'depGraph' => [
        'graph' => [
                'nodes' => [
                                
                ],
                'rootNodeId' => ''
        ],
        'pkgManager' => [
                'name' => '',
                'repositories' => [
                                
                ]
        ],
        'pkgs' => [
                
        ],
        'schemaVersion' => ''
    ],
    'meta' => [
        'targetFramework' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/monitor/dep-graph', [
  'body' => '{
  "depGraph": {
    "graph": {
      "nodes": [],
      "rootNodeId": ""
    },
    "pkgManager": {
      "name": "",
      "repositories": []
    },
    "pkgs": [],
    "schemaVersion": ""
  },
  "meta": {
    "targetFramework": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/monitor/dep-graph');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'depGraph' => [
    'graph' => [
        'nodes' => [
                
        ],
        'rootNodeId' => ''
    ],
    'pkgManager' => [
        'name' => '',
        'repositories' => [
                
        ]
    ],
    'pkgs' => [
        
    ],
    'schemaVersion' => ''
  ],
  'meta' => [
    'targetFramework' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'depGraph' => [
    'graph' => [
        'nodes' => [
                
        ],
        'rootNodeId' => ''
    ],
    'pkgManager' => [
        'name' => '',
        'repositories' => [
                
        ]
    ],
    'pkgs' => [
        
    ],
    'schemaVersion' => ''
  ],
  'meta' => [
    'targetFramework' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/monitor/dep-graph');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/monitor/dep-graph' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "depGraph": {
    "graph": {
      "nodes": [],
      "rootNodeId": ""
    },
    "pkgManager": {
      "name": "",
      "repositories": []
    },
    "pkgs": [],
    "schemaVersion": ""
  },
  "meta": {
    "targetFramework": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/monitor/dep-graph' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "depGraph": {
    "graph": {
      "nodes": [],
      "rootNodeId": ""
    },
    "pkgManager": {
      "name": "",
      "repositories": []
    },
    "pkgs": [],
    "schemaVersion": ""
  },
  "meta": {
    "targetFramework": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  },\n  \"meta\": {\n    \"targetFramework\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/monitor/dep-graph", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/monitor/dep-graph"

payload = {
    "depGraph": {
        "graph": {
            "nodes": [],
            "rootNodeId": ""
        },
        "pkgManager": {
            "name": "",
            "repositories": []
        },
        "pkgs": [],
        "schemaVersion": ""
    },
    "meta": { "targetFramework": "" }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/monitor/dep-graph"

payload <- "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  },\n  \"meta\": {\n    \"targetFramework\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/monitor/dep-graph")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  },\n  \"meta\": {\n    \"targetFramework\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/monitor/dep-graph') do |req|
  req.body = "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  },\n  \"meta\": {\n    \"targetFramework\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/monitor/dep-graph";

    let payload = json!({
        "depGraph": json!({
            "graph": json!({
                "nodes": (),
                "rootNodeId": ""
            }),
            "pkgManager": json!({
                "name": "",
                "repositories": ()
            }),
            "pkgs": (),
            "schemaVersion": ""
        }),
        "meta": json!({"targetFramework": ""})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/monitor/dep-graph \
  --header 'content-type: application/json' \
  --data '{
  "depGraph": {
    "graph": {
      "nodes": [],
      "rootNodeId": ""
    },
    "pkgManager": {
      "name": "",
      "repositories": []
    },
    "pkgs": [],
    "schemaVersion": ""
  },
  "meta": {
    "targetFramework": ""
  }
}'
echo '{
  "depGraph": {
    "graph": {
      "nodes": [],
      "rootNodeId": ""
    },
    "pkgManager": {
      "name": "",
      "repositories": []
    },
    "pkgs": [],
    "schemaVersion": ""
  },
  "meta": {
    "targetFramework": ""
  }
}' |  \
  http POST {{baseUrl}}/monitor/dep-graph \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "depGraph": {\n    "graph": {\n      "nodes": [],\n      "rootNodeId": ""\n    },\n    "pkgManager": {\n      "name": "",\n      "repositories": []\n    },\n    "pkgs": [],\n    "schemaVersion": ""\n  },\n  "meta": {\n    "targetFramework": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/monitor/dep-graph
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "depGraph": [
    "graph": [
      "nodes": [],
      "rootNodeId": ""
    ],
    "pkgManager": [
      "name": "",
      "repositories": []
    ],
    "pkgs": [],
    "schemaVersion": ""
  ],
  "meta": ["targetFramework": ""]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/monitor/dep-graph")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "id": "f7c065cd-5850-462d-a0ca-9719d07e3e38",
  "ok": true,
  "uri": "https://app.snyk.io/org/my-org/project/f7c065cd-5850-462d-a0ca-9719d07e3e38/history/39d14036-31f3-4f22-8037-1d979e0516ef"
}
POST Create a new organization
{{baseUrl}}/org
BODY json

{
  "groupId": "",
  "name": "",
  "sourceOrgId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"groupId\": \"\",\n  \"name\": \"\",\n  \"sourceOrgId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org" {:content-type :json
                                                :form-params {:groupId ""
                                                              :name ""
                                                              :sourceOrgId ""}})
require "http/client"

url = "{{baseUrl}}/org"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"groupId\": \"\",\n  \"name\": \"\",\n  \"sourceOrgId\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org"),
    Content = new StringContent("{\n  \"groupId\": \"\",\n  \"name\": \"\",\n  \"sourceOrgId\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"groupId\": \"\",\n  \"name\": \"\",\n  \"sourceOrgId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org"

	payload := strings.NewReader("{\n  \"groupId\": \"\",\n  \"name\": \"\",\n  \"sourceOrgId\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 54

{
  "groupId": "",
  "name": "",
  "sourceOrgId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"groupId\": \"\",\n  \"name\": \"\",\n  \"sourceOrgId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"groupId\": \"\",\n  \"name\": \"\",\n  \"sourceOrgId\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"groupId\": \"\",\n  \"name\": \"\",\n  \"sourceOrgId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org")
  .header("content-type", "application/json")
  .body("{\n  \"groupId\": \"\",\n  \"name\": \"\",\n  \"sourceOrgId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  groupId: '',
  name: '',
  sourceOrgId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org',
  headers: {'content-type': 'application/json'},
  data: {groupId: '', name: '', sourceOrgId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"groupId":"","name":"","sourceOrgId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "groupId": "",\n  "name": "",\n  "sourceOrgId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"groupId\": \"\",\n  \"name\": \"\",\n  \"sourceOrgId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({groupId: '', name: '', sourceOrgId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org',
  headers: {'content-type': 'application/json'},
  body: {groupId: '', name: '', sourceOrgId: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  groupId: '',
  name: '',
  sourceOrgId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org',
  headers: {'content-type': 'application/json'},
  data: {groupId: '', name: '', sourceOrgId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"groupId":"","name":"","sourceOrgId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"groupId": @"",
                              @"name": @"",
                              @"sourceOrgId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"groupId\": \"\",\n  \"name\": \"\",\n  \"sourceOrgId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'groupId' => '',
    'name' => '',
    'sourceOrgId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org', [
  'body' => '{
  "groupId": "",
  "name": "",
  "sourceOrgId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'groupId' => '',
  'name' => '',
  'sourceOrgId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'groupId' => '',
  'name' => '',
  'sourceOrgId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/org');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "groupId": "",
  "name": "",
  "sourceOrgId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "groupId": "",
  "name": "",
  "sourceOrgId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"groupId\": \"\",\n  \"name\": \"\",\n  \"sourceOrgId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/org", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org"

payload = {
    "groupId": "",
    "name": "",
    "sourceOrgId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org"

payload <- "{\n  \"groupId\": \"\",\n  \"name\": \"\",\n  \"sourceOrgId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"groupId\": \"\",\n  \"name\": \"\",\n  \"sourceOrgId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/org') do |req|
  req.body = "{\n  \"groupId\": \"\",\n  \"name\": \"\",\n  \"sourceOrgId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org";

    let payload = json!({
        "groupId": "",
        "name": "",
        "sourceOrgId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org \
  --header 'content-type: application/json' \
  --data '{
  "groupId": "",
  "name": "",
  "sourceOrgId": ""
}'
echo '{
  "groupId": "",
  "name": "",
  "sourceOrgId": ""
}' |  \
  http POST {{baseUrl}}/org \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "groupId": "",\n  "name": "",\n  "sourceOrgId": ""\n}' \
  --output-document \
  - {{baseUrl}}/org
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "groupId": "",
  "name": "",
  "sourceOrgId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "created": "2021-01-07T16:07:16.237Z",
  "group": {
    "id": "4a18d42f-0706-4ad0-b127-24078731fbed",
    "name": "test-group"
  },
  "id": "0356f641-c55c-488f-af05-c2122590f369",
  "name": "new-org",
  "slug": "new-org",
  "url": "https://snyk.io/org/new-org"
}
RESPONSE HEADERS

Content-Type
application/json, charset=utf-8
RESPONSE BODY json

{
  "errorRef": "49f168a0-a084-4cd8-93ff-63f3a0f06bc6",
  "message": "Unexpected error whilst deleting org"
}
RESPONSE HEADERS

Content-Type
application/json, charset=utf-8
RESPONSE BODY json

{
  "errorRef": "49f168a0-a084-4cd8-93ff-63f3a0f06bc6",
  "message": "You must have the required permissions to add an org"
}
RESPONSE HEADERS

Content-Type
application/json, charset=utf-8
RESPONSE BODY json

{
  "errorRef": "49f168a0-a084-4cd8-93ff-63f3a0f06bc6",
  "message": "Please provide a new organization name in the body of the request"
}
DELETE Delete pending user provision
{{baseUrl}}/org/:orgId/provision
QUERY PARAMS

orgId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/provision");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/org/:orgId/provision")
require "http/client"

url = "{{baseUrl}}/org/:orgId/provision"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/provision"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/provision");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/provision"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/org/:orgId/provision HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/org/:orgId/provision")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/provision"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/provision")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/org/:orgId/provision")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/org/:orgId/provision');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/org/:orgId/provision'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/provision';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/provision',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/provision")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/provision',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'DELETE', url: '{{baseUrl}}/org/:orgId/provision'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/org/:orgId/provision');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'DELETE', url: '{{baseUrl}}/org/:orgId/provision'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/provision';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/provision"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/provision" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/provision",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/org/:orgId/provision');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/provision');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/provision');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/provision' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/provision' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/org/:orgId/provision")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/provision"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/provision"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/provision")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/org/:orgId/provision') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/provision";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/org/:orgId/provision
http DELETE {{baseUrl}}/org/:orgId/provision
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/org/:orgId/provision
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/provision")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "ok": false
}
GET Get organization notification settings
{{baseUrl}}/org/:orgId/notification-settings
QUERY PARAMS

orgId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/notification-settings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/notification-settings")
require "http/client"

url = "{{baseUrl}}/org/:orgId/notification-settings"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/notification-settings"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/notification-settings");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/notification-settings"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/notification-settings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/notification-settings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/notification-settings"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/notification-settings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/notification-settings")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/notification-settings');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/notification-settings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/notification-settings';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/notification-settings',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/notification-settings")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/notification-settings',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/notification-settings'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/notification-settings');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/notification-settings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/notification-settings';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/notification-settings"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/notification-settings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/notification-settings",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/notification-settings');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/notification-settings');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/notification-settings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/notification-settings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/notification-settings' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/notification-settings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/notification-settings"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/notification-settings"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/notification-settings")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/notification-settings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/notification-settings";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/notification-settings
http GET {{baseUrl}}/org/:orgId/notification-settings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/notification-settings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/notification-settings")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "new-issues-remediations": {
    "enabled": true,
    "inherited": false,
    "issueSeverity": "high",
    "issueType": "vuln"
  },
  "project-imported": {
    "enabled": true,
    "inherited": false
  },
  "test-limit": {
    "enabled": true,
    "inherited": false
  },
  "weekly-report": {
    "enabled": true,
    "inherited": false
  }
}
POST Invite users
{{baseUrl}}/org/:orgId/invite
QUERY PARAMS

orgId
BODY json

{
  "email": "",
  "isAdmin": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/invite");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"email\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/invite" {:content-type :json
                                                              :form-params {:email ""}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/invite"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"email\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/invite"),
    Content = new StringContent("{\n  \"email\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/invite");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"email\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/invite"

	payload := strings.NewReader("{\n  \"email\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/invite HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 17

{
  "email": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/invite")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"email\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/invite"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"email\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"email\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/invite")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/invite")
  .header("content-type", "application/json")
  .body("{\n  \"email\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  email: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/invite');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/invite',
  headers: {'content-type': 'application/json'},
  data: {email: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/invite';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"email":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/invite',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "email": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"email\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/invite")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/invite',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({email: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/invite',
  headers: {'content-type': 'application/json'},
  body: {email: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/invite');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  email: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/invite',
  headers: {'content-type': 'application/json'},
  data: {email: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/invite';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"email":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"email": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/invite"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/invite" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"email\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/invite",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'email' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/invite', [
  'body' => '{
  "email": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/invite');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'email' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'email' => ''
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/invite');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/invite' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "email": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/invite' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "email": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"email\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/org/:orgId/invite", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/invite"

payload = { "email": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/invite"

payload <- "{\n  \"email\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/invite")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"email\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/org/:orgId/invite') do |req|
  req.body = "{\n  \"email\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/invite";

    let payload = json!({"email": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/invite \
  --header 'content-type: application/json' \
  --data '{
  "email": ""
}'
echo '{
  "email": ""
}' |  \
  http POST {{baseUrl}}/org/:orgId/invite \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "email": ""\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/invite
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["email": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/invite")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET List Members
{{baseUrl}}/org/:orgId/members
QUERY PARAMS

orgId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/members");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/members")
require "http/client"

url = "{{baseUrl}}/org/:orgId/members"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/members"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/members");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/members"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/members HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/members")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/members"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/members")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/members")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/members');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/org/:orgId/members'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/members';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/members',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/members")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/members',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/org/:orgId/members'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/members');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/org/:orgId/members'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/members';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/members"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/members" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/members",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/members');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/members');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/members');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/members' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/members' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/members")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/members"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/members"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/members")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/members') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/members";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/members
http GET {{baseUrl}}/org/:orgId/members
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/members
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/members")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

[
  {
    "email": "",
    "id": "",
    "name": "",
    "role": "",
    "username": ""
  }
]
GET List all the organizations a user belongs to
{{baseUrl}}/orgs
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/orgs");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/orgs")
require "http/client"

url = "{{baseUrl}}/orgs"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/orgs"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/orgs");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/orgs"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/orgs HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/orgs")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/orgs"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/orgs")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/orgs")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/orgs');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/orgs'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/orgs';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/orgs',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/orgs")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/orgs',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/orgs'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/orgs');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/orgs'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/orgs';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/orgs"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/orgs" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/orgs",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/orgs');

echo $response->getBody();
setUrl('{{baseUrl}}/orgs');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/orgs');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/orgs' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/orgs' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/orgs")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/orgs"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/orgs"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/orgs")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/orgs') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/orgs";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/orgs
http GET {{baseUrl}}/orgs
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/orgs
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/orgs")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "orgs": [
    {
      "group": null,
      "id": "689ce7f9-7943-4a71-b704-2ba575f01089",
      "name": "defaultOrg",
      "slug": "default-org",
      "url": "https://api.snyk.io/org/default-org"
    },
    {
      "group": {
        "id": "a060a49f-636e-480f-9e14-38e773b2a97f",
        "name": "ACME Inc."
      },
      "id": "a04d9cbd-ae6e-44af-b573-0556b0ad4bd2",
      "name": "My Other Org",
      "slug": "my-other-org",
      "url": "https://api.snyk.io/org/my-other-org"
    }
  ]
}
GET List pending user provisions
{{baseUrl}}/org/:orgId/provision
QUERY PARAMS

orgId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/provision");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/provision")
require "http/client"

url = "{{baseUrl}}/org/:orgId/provision"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/provision"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/provision");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/provision"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/provision HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/provision")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/provision"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/provision")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/provision")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/provision');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/org/:orgId/provision'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/provision';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/provision',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/provision")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/provision',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/org/:orgId/provision'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/provision');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/org/:orgId/provision'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/provision';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/provision"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/provision" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/provision",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/provision');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/provision');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/provision');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/provision' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/provision' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/provision")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/provision"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/provision"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/provision")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/provision') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/provision";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/provision
http GET {{baseUrl}}/org/:orgId/provision
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/provision
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/provision")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

[
  {
    "created": "",
    "email": "",
    "role": "",
    "rolePublicId": ""
  }
]
POST Provision a user to the organization
{{baseUrl}}/org/:orgId/provision
QUERY PARAMS

orgId
BODY json

{
  "email": "",
  "role": "",
  "rolePublicId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/provision");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"email\": \"\",\n  \"role\": \"\",\n  \"rolePublicId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/provision" {:content-type :json
                                                                 :form-params {:email ""
                                                                               :role ""
                                                                               :rolePublicId ""}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/provision"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"email\": \"\",\n  \"role\": \"\",\n  \"rolePublicId\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/provision"),
    Content = new StringContent("{\n  \"email\": \"\",\n  \"role\": \"\",\n  \"rolePublicId\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/provision");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"email\": \"\",\n  \"role\": \"\",\n  \"rolePublicId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/provision"

	payload := strings.NewReader("{\n  \"email\": \"\",\n  \"role\": \"\",\n  \"rolePublicId\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/provision HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 53

{
  "email": "",
  "role": "",
  "rolePublicId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/provision")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"email\": \"\",\n  \"role\": \"\",\n  \"rolePublicId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/provision"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"email\": \"\",\n  \"role\": \"\",\n  \"rolePublicId\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"email\": \"\",\n  \"role\": \"\",\n  \"rolePublicId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/provision")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/provision")
  .header("content-type", "application/json")
  .body("{\n  \"email\": \"\",\n  \"role\": \"\",\n  \"rolePublicId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  email: '',
  role: '',
  rolePublicId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/provision');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/provision',
  headers: {'content-type': 'application/json'},
  data: {email: '', role: '', rolePublicId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/provision';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"email":"","role":"","rolePublicId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/provision',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "email": "",\n  "role": "",\n  "rolePublicId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"email\": \"\",\n  \"role\": \"\",\n  \"rolePublicId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/provision")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/provision',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({email: '', role: '', rolePublicId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/provision',
  headers: {'content-type': 'application/json'},
  body: {email: '', role: '', rolePublicId: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/provision');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  email: '',
  role: '',
  rolePublicId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/provision',
  headers: {'content-type': 'application/json'},
  data: {email: '', role: '', rolePublicId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/provision';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"email":"","role":"","rolePublicId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"email": @"",
                              @"role": @"",
                              @"rolePublicId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/provision"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/provision" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"email\": \"\",\n  \"role\": \"\",\n  \"rolePublicId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/provision",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'email' => '',
    'role' => '',
    'rolePublicId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/provision', [
  'body' => '{
  "email": "",
  "role": "",
  "rolePublicId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/provision');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'email' => '',
  'role' => '',
  'rolePublicId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'email' => '',
  'role' => '',
  'rolePublicId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/provision');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/provision' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "email": "",
  "role": "",
  "rolePublicId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/provision' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "email": "",
  "role": "",
  "rolePublicId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"email\": \"\",\n  \"role\": \"\",\n  \"rolePublicId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/org/:orgId/provision", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/provision"

payload = {
    "email": "",
    "role": "",
    "rolePublicId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/provision"

payload <- "{\n  \"email\": \"\",\n  \"role\": \"\",\n  \"rolePublicId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/provision")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"email\": \"\",\n  \"role\": \"\",\n  \"rolePublicId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/org/:orgId/provision') do |req|
  req.body = "{\n  \"email\": \"\",\n  \"role\": \"\",\n  \"rolePublicId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/provision";

    let payload = json!({
        "email": "",
        "role": "",
        "rolePublicId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/provision \
  --header 'content-type: application/json' \
  --data '{
  "email": "",
  "role": "",
  "rolePublicId": ""
}'
echo '{
  "email": "",
  "role": "",
  "rolePublicId": ""
}' |  \
  http POST {{baseUrl}}/org/:orgId/provision \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "email": "",\n  "role": "",\n  "rolePublicId": ""\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/provision
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "email": "",
  "role": "",
  "rolePublicId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/provision")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "created": "",
  "email": "",
  "role": "",
  "rolePublicId": ""
}
DELETE Remove a member from the organization
{{baseUrl}}/org/:orgId/members/:userId
QUERY PARAMS

orgId
userId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/members/:userId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/org/:orgId/members/:userId")
require "http/client"

url = "{{baseUrl}}/org/:orgId/members/:userId"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/members/:userId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/members/:userId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/members/:userId"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/org/:orgId/members/:userId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/org/:orgId/members/:userId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/members/:userId"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/members/:userId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/org/:orgId/members/:userId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/org/:orgId/members/:userId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/org/:orgId/members/:userId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/members/:userId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/members/:userId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/members/:userId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/members/:userId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/org/:orgId/members/:userId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/org/:orgId/members/:userId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/org/:orgId/members/:userId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/members/:userId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/members/:userId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/members/:userId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/members/:userId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/org/:orgId/members/:userId');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/members/:userId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/members/:userId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/members/:userId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/members/:userId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/org/:orgId/members/:userId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/members/:userId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/members/:userId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/members/:userId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/org/:orgId/members/:userId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/members/:userId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/org/:orgId/members/:userId
http DELETE {{baseUrl}}/org/:orgId/members/:userId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/org/:orgId/members/:userId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/members/:userId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Remove organization
{{baseUrl}}/org/:orgId
QUERY PARAMS

orgId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/org/:orgId")
require "http/client"

url = "{{baseUrl}}/org/:orgId"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/org/:orgId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/org/:orgId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/org/:orgId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/org/:orgId');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/org/:orgId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'DELETE', url: '{{baseUrl}}/org/:orgId'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/org/:orgId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'DELETE', url: '{{baseUrl}}/org/:orgId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/org/:orgId');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/org/:orgId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/org/:orgId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/org/:orgId
http DELETE {{baseUrl}}/org/:orgId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/org/:orgId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Set notification settings
{{baseUrl}}/org/:orgId/notification-settings
QUERY PARAMS

orgId
BODY json

{
  "new-issues-remediations": {
    "enabled": false,
    "issueSeverity": "",
    "issueType": ""
  },
  "project-imported": {
    "enabled": false
  },
  "test-limit": {
    "enabled": false
  },
  "weekly-report": {
    "enabled": false
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/notification-settings");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/org/:orgId/notification-settings" {:content-type :json
                                                                            :form-params {:new-issues-remediations {:enabled false
                                                                                                                    :issueSeverity ""
                                                                                                                    :issueType ""}
                                                                                          :project-imported {:enabled false}
                                                                                          :test-limit {:enabled false}
                                                                                          :weekly-report {:enabled false}}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/notification-settings"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/notification-settings"),
    Content = new StringContent("{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/notification-settings");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/notification-settings"

	payload := strings.NewReader("{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/org/:orgId/notification-settings HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 246

{
  "new-issues-remediations": {
    "enabled": false,
    "issueSeverity": "",
    "issueType": ""
  },
  "project-imported": {
    "enabled": false
  },
  "test-limit": {
    "enabled": false
  },
  "weekly-report": {
    "enabled": false
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/org/:orgId/notification-settings")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/notification-settings"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/notification-settings")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/org/:orgId/notification-settings")
  .header("content-type", "application/json")
  .body("{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}")
  .asString();
const data = JSON.stringify({
  'new-issues-remediations': {
    enabled: false,
    issueSeverity: '',
    issueType: ''
  },
  'project-imported': {
    enabled: false
  },
  'test-limit': {
    enabled: false
  },
  'weekly-report': {
    enabled: false
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/org/:orgId/notification-settings');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/notification-settings',
  headers: {'content-type': 'application/json'},
  data: {
    'new-issues-remediations': {enabled: false, issueSeverity: '', issueType: ''},
    'project-imported': {enabled: false},
    'test-limit': {enabled: false},
    'weekly-report': {enabled: false}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/notification-settings';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"new-issues-remediations":{"enabled":false,"issueSeverity":"","issueType":""},"project-imported":{"enabled":false},"test-limit":{"enabled":false},"weekly-report":{"enabled":false}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/notification-settings',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "new-issues-remediations": {\n    "enabled": false,\n    "issueSeverity": "",\n    "issueType": ""\n  },\n  "project-imported": {\n    "enabled": false\n  },\n  "test-limit": {\n    "enabled": false\n  },\n  "weekly-report": {\n    "enabled": false\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/notification-settings")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/notification-settings',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  'new-issues-remediations': {enabled: false, issueSeverity: '', issueType: ''},
  'project-imported': {enabled: false},
  'test-limit': {enabled: false},
  'weekly-report': {enabled: false}
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/notification-settings',
  headers: {'content-type': 'application/json'},
  body: {
    'new-issues-remediations': {enabled: false, issueSeverity: '', issueType: ''},
    'project-imported': {enabled: false},
    'test-limit': {enabled: false},
    'weekly-report': {enabled: false}
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/org/:orgId/notification-settings');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  'new-issues-remediations': {
    enabled: false,
    issueSeverity: '',
    issueType: ''
  },
  'project-imported': {
    enabled: false
  },
  'test-limit': {
    enabled: false
  },
  'weekly-report': {
    enabled: false
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/notification-settings',
  headers: {'content-type': 'application/json'},
  data: {
    'new-issues-remediations': {enabled: false, issueSeverity: '', issueType: ''},
    'project-imported': {enabled: false},
    'test-limit': {enabled: false},
    'weekly-report': {enabled: false}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/notification-settings';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"new-issues-remediations":{"enabled":false,"issueSeverity":"","issueType":""},"project-imported":{"enabled":false},"test-limit":{"enabled":false},"weekly-report":{"enabled":false}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"new-issues-remediations": @{ @"enabled": @NO, @"issueSeverity": @"", @"issueType": @"" },
                              @"project-imported": @{ @"enabled": @NO },
                              @"test-limit": @{ @"enabled": @NO },
                              @"weekly-report": @{ @"enabled": @NO } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/notification-settings"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/notification-settings" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/notification-settings",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'new-issues-remediations' => [
        'enabled' => null,
        'issueSeverity' => '',
        'issueType' => ''
    ],
    'project-imported' => [
        'enabled' => null
    ],
    'test-limit' => [
        'enabled' => null
    ],
    'weekly-report' => [
        'enabled' => null
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/org/:orgId/notification-settings', [
  'body' => '{
  "new-issues-remediations": {
    "enabled": false,
    "issueSeverity": "",
    "issueType": ""
  },
  "project-imported": {
    "enabled": false
  },
  "test-limit": {
    "enabled": false
  },
  "weekly-report": {
    "enabled": false
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/notification-settings');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'new-issues-remediations' => [
    'enabled' => null,
    'issueSeverity' => '',
    'issueType' => ''
  ],
  'project-imported' => [
    'enabled' => null
  ],
  'test-limit' => [
    'enabled' => null
  ],
  'weekly-report' => [
    'enabled' => null
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'new-issues-remediations' => [
    'enabled' => null,
    'issueSeverity' => '',
    'issueType' => ''
  ],
  'project-imported' => [
    'enabled' => null
  ],
  'test-limit' => [
    'enabled' => null
  ],
  'weekly-report' => [
    'enabled' => null
  ]
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/notification-settings');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/notification-settings' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "new-issues-remediations": {
    "enabled": false,
    "issueSeverity": "",
    "issueType": ""
  },
  "project-imported": {
    "enabled": false
  },
  "test-limit": {
    "enabled": false
  },
  "weekly-report": {
    "enabled": false
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/notification-settings' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "new-issues-remediations": {
    "enabled": false,
    "issueSeverity": "",
    "issueType": ""
  },
  "project-imported": {
    "enabled": false
  },
  "test-limit": {
    "enabled": false
  },
  "weekly-report": {
    "enabled": false
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/org/:orgId/notification-settings", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/notification-settings"

payload = {
    "new-issues-remediations": {
        "enabled": False,
        "issueSeverity": "",
        "issueType": ""
    },
    "project-imported": { "enabled": False },
    "test-limit": { "enabled": False },
    "weekly-report": { "enabled": False }
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/notification-settings"

payload <- "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/notification-settings")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/org/:orgId/notification-settings') do |req|
  req.body = "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/notification-settings";

    let payload = json!({
        "new-issues-remediations": json!({
            "enabled": false,
            "issueSeverity": "",
            "issueType": ""
        }),
        "project-imported": json!({"enabled": false}),
        "test-limit": json!({"enabled": false}),
        "weekly-report": json!({"enabled": false})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/org/:orgId/notification-settings \
  --header 'content-type: application/json' \
  --data '{
  "new-issues-remediations": {
    "enabled": false,
    "issueSeverity": "",
    "issueType": ""
  },
  "project-imported": {
    "enabled": false
  },
  "test-limit": {
    "enabled": false
  },
  "weekly-report": {
    "enabled": false
  }
}'
echo '{
  "new-issues-remediations": {
    "enabled": false,
    "issueSeverity": "",
    "issueType": ""
  },
  "project-imported": {
    "enabled": false
  },
  "test-limit": {
    "enabled": false
  },
  "weekly-report": {
    "enabled": false
  }
}' |  \
  http PUT {{baseUrl}}/org/:orgId/notification-settings \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "new-issues-remediations": {\n    "enabled": false,\n    "issueSeverity": "",\n    "issueType": ""\n  },\n  "project-imported": {\n    "enabled": false\n  },\n  "test-limit": {\n    "enabled": false\n  },\n  "weekly-report": {\n    "enabled": false\n  }\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/notification-settings
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "new-issues-remediations": [
    "enabled": false,
    "issueSeverity": "",
    "issueType": ""
  ],
  "project-imported": ["enabled": false],
  "test-limit": ["enabled": false],
  "weekly-report": ["enabled": false]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/notification-settings")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "new-issues-remediations": {
    "enabled": true,
    "inherited": false,
    "issueSeverity": "high",
    "issueType": "vuln"
  },
  "project-imported": {
    "enabled": true,
    "inherited": false
  },
  "test-limit": {
    "enabled": true,
    "inherited": false
  },
  "weekly-report": {
    "enabled": true,
    "inherited": false
  }
}
PUT Update a member in the organization
{{baseUrl}}/org/:orgId/members/:userId
QUERY PARAMS

orgId
userId
BODY json

{
  "role": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/members/:userId");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"role\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/org/:orgId/members/:userId" {:content-type :json
                                                                      :form-params {:role ""}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/members/:userId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"role\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/members/:userId"),
    Content = new StringContent("{\n  \"role\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/members/:userId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"role\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/members/:userId"

	payload := strings.NewReader("{\n  \"role\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/org/:orgId/members/:userId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 16

{
  "role": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/org/:orgId/members/:userId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"role\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/members/:userId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"role\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"role\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/members/:userId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/org/:orgId/members/:userId")
  .header("content-type", "application/json")
  .body("{\n  \"role\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  role: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/org/:orgId/members/:userId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/members/:userId',
  headers: {'content-type': 'application/json'},
  data: {role: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/members/:userId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"role":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/members/:userId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "role": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"role\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/members/:userId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/members/:userId',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({role: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/members/:userId',
  headers: {'content-type': 'application/json'},
  body: {role: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/org/:orgId/members/:userId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  role: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/members/:userId',
  headers: {'content-type': 'application/json'},
  data: {role: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/members/:userId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"role":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"role": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/members/:userId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/members/:userId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"role\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/members/:userId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'role' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/org/:orgId/members/:userId', [
  'body' => '{
  "role": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/members/:userId');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'role' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'role' => ''
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/members/:userId');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/members/:userId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "role": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/members/:userId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "role": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"role\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/org/:orgId/members/:userId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/members/:userId"

payload = { "role": "" }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/members/:userId"

payload <- "{\n  \"role\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/members/:userId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"role\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/org/:orgId/members/:userId') do |req|
  req.body = "{\n  \"role\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/members/:userId";

    let payload = json!({"role": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/org/:orgId/members/:userId \
  --header 'content-type: application/json' \
  --data '{
  "role": ""
}'
echo '{
  "role": ""
}' |  \
  http PUT {{baseUrl}}/org/:orgId/members/:userId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "role": ""\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/members/:userId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["role": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/members/:userId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Update a member's role in the organization
{{baseUrl}}/org/:orgId/members/update/:userId
QUERY PARAMS

orgId
userId
BODY json

{
  "rolePublicId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/members/update/:userId");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"rolePublicId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/org/:orgId/members/update/:userId" {:content-type :json
                                                                             :form-params {:rolePublicId ""}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/members/update/:userId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"rolePublicId\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/members/update/:userId"),
    Content = new StringContent("{\n  \"rolePublicId\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/members/update/:userId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"rolePublicId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/members/update/:userId"

	payload := strings.NewReader("{\n  \"rolePublicId\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/org/:orgId/members/update/:userId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 24

{
  "rolePublicId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/org/:orgId/members/update/:userId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"rolePublicId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/members/update/:userId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"rolePublicId\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"rolePublicId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/members/update/:userId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/org/:orgId/members/update/:userId")
  .header("content-type", "application/json")
  .body("{\n  \"rolePublicId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  rolePublicId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/org/:orgId/members/update/:userId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/members/update/:userId',
  headers: {'content-type': 'application/json'},
  data: {rolePublicId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/members/update/:userId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"rolePublicId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/members/update/:userId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "rolePublicId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"rolePublicId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/members/update/:userId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/members/update/:userId',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({rolePublicId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/members/update/:userId',
  headers: {'content-type': 'application/json'},
  body: {rolePublicId: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/org/:orgId/members/update/:userId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  rolePublicId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/members/update/:userId',
  headers: {'content-type': 'application/json'},
  data: {rolePublicId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/members/update/:userId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"rolePublicId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"rolePublicId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/members/update/:userId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/members/update/:userId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"rolePublicId\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/members/update/:userId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'rolePublicId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/org/:orgId/members/update/:userId', [
  'body' => '{
  "rolePublicId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/members/update/:userId');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'rolePublicId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'rolePublicId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/members/update/:userId');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/members/update/:userId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "rolePublicId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/members/update/:userId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "rolePublicId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"rolePublicId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/org/:orgId/members/update/:userId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/members/update/:userId"

payload = { "rolePublicId": "" }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/members/update/:userId"

payload <- "{\n  \"rolePublicId\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/members/update/:userId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"rolePublicId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/org/:orgId/members/update/:userId') do |req|
  req.body = "{\n  \"rolePublicId\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/members/update/:userId";

    let payload = json!({"rolePublicId": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/org/:orgId/members/update/:userId \
  --header 'content-type: application/json' \
  --data '{
  "rolePublicId": ""
}'
echo '{
  "rolePublicId": ""
}' |  \
  http PUT {{baseUrl}}/org/:orgId/members/update/:userId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "rolePublicId": ""\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/members/update/:userId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["rolePublicId": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/members/update/:userId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Update organization settings
{{baseUrl}}/org/:orgId/settings
QUERY PARAMS

orgId
BODY json

{
  "requestAccess": {
    "enabled": false
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/settings");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"requestAccess\": {\n    \"enabled\": false\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/org/:orgId/settings" {:content-type :json
                                                               :form-params {:requestAccess {:enabled false}}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/settings"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"requestAccess\": {\n    \"enabled\": false\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/settings"),
    Content = new StringContent("{\n  \"requestAccess\": {\n    \"enabled\": false\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/settings");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"requestAccess\": {\n    \"enabled\": false\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/settings"

	payload := strings.NewReader("{\n  \"requestAccess\": {\n    \"enabled\": false\n  }\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/org/:orgId/settings HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 49

{
  "requestAccess": {
    "enabled": false
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/org/:orgId/settings")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"requestAccess\": {\n    \"enabled\": false\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/settings"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"requestAccess\": {\n    \"enabled\": false\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"requestAccess\": {\n    \"enabled\": false\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/settings")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/org/:orgId/settings")
  .header("content-type", "application/json")
  .body("{\n  \"requestAccess\": {\n    \"enabled\": false\n  }\n}")
  .asString();
const data = JSON.stringify({
  requestAccess: {
    enabled: false
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/org/:orgId/settings');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/settings',
  headers: {'content-type': 'application/json'},
  data: {requestAccess: {enabled: false}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/settings';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"requestAccess":{"enabled":false}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/settings',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "requestAccess": {\n    "enabled": false\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"requestAccess\": {\n    \"enabled\": false\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/settings")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/settings',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({requestAccess: {enabled: false}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/settings',
  headers: {'content-type': 'application/json'},
  body: {requestAccess: {enabled: false}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/org/:orgId/settings');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  requestAccess: {
    enabled: false
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/settings',
  headers: {'content-type': 'application/json'},
  data: {requestAccess: {enabled: false}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/settings';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"requestAccess":{"enabled":false}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"requestAccess": @{ @"enabled": @NO } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/settings"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/settings" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"requestAccess\": {\n    \"enabled\": false\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/settings",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'requestAccess' => [
        'enabled' => null
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/org/:orgId/settings', [
  'body' => '{
  "requestAccess": {
    "enabled": false
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/settings');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'requestAccess' => [
    'enabled' => null
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'requestAccess' => [
    'enabled' => null
  ]
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/settings');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/settings' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "requestAccess": {
    "enabled": false
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/settings' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "requestAccess": {
    "enabled": false
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"requestAccess\": {\n    \"enabled\": false\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/org/:orgId/settings", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/settings"

payload = { "requestAccess": { "enabled": False } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/settings"

payload <- "{\n  \"requestAccess\": {\n    \"enabled\": false\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/settings")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"requestAccess\": {\n    \"enabled\": false\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/org/:orgId/settings') do |req|
  req.body = "{\n  \"requestAccess\": {\n    \"enabled\": false\n  }\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/settings";

    let payload = json!({"requestAccess": json!({"enabled": false})});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/org/:orgId/settings \
  --header 'content-type: application/json' \
  --data '{
  "requestAccess": {
    "enabled": false
  }
}'
echo '{
  "requestAccess": {
    "enabled": false
  }
}' |  \
  http PUT {{baseUrl}}/org/:orgId/settings \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "requestAccess": {\n    "enabled": false\n  }\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/settings
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["requestAccess": ["enabled": false]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/settings")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "requestAccess": {
    "enabled": true
  }
}
GET View organization settings
{{baseUrl}}/org/:orgId/settings
QUERY PARAMS

orgId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/settings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/settings")
require "http/client"

url = "{{baseUrl}}/org/:orgId/settings"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/settings"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/settings");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/settings"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/settings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/settings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/settings"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/settings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/settings")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/settings');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/org/:orgId/settings'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/settings';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/settings',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/settings")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/settings',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/org/:orgId/settings'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/settings');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/org/:orgId/settings'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/settings';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/settings"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/settings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/settings",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/settings');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/settings');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/settings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/settings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/settings' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/settings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/settings"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/settings"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/settings")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/settings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/settings";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/settings
http GET {{baseUrl}}/org/:orgId/settings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/settings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/settings")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "requestAccess": {
    "enabled": true
  }
}
POST Activate
{{baseUrl}}/org/:orgId/project/:projectId/activate
QUERY PARAMS

orgId
projectId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/activate");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/project/:projectId/activate")
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/activate"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/activate"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/activate");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/activate"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/project/:projectId/activate HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/project/:projectId/activate")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/activate"))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/activate")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/project/:projectId/activate")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/project/:projectId/activate');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/activate'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/activate';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/activate',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/activate")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/activate',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/activate'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/project/:projectId/activate');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/activate'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/activate';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/activate"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/activate" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/activate",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/project/:projectId/activate');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/activate');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/activate');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/activate' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/activate' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/org/:orgId/project/:projectId/activate")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/activate"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/activate"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/activate")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/org/:orgId/project/:projectId/activate') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/activate";

    let client = reqwest::Client::new();
    let response = client.post(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/project/:projectId/activate
http POST {{baseUrl}}/org/:orgId/project/:projectId/activate
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/activate
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/activate")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Add a tag to a project
{{baseUrl}}/org/:orgId/project/:projectId/tags
QUERY PARAMS

orgId
projectId
BODY json

{
  "key": "",
  "value": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/tags");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"key\": \"\",\n  \"value\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/project/:projectId/tags" {:content-type :json
                                                                               :form-params {:key ""
                                                                                             :value ""}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/tags"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"key\": \"\",\n  \"value\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/tags"),
    Content = new StringContent("{\n  \"key\": \"\",\n  \"value\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/tags");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"key\": \"\",\n  \"value\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/tags"

	payload := strings.NewReader("{\n  \"key\": \"\",\n  \"value\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/project/:projectId/tags HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 30

{
  "key": "",
  "value": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/project/:projectId/tags")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"key\": \"\",\n  \"value\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/tags"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"key\": \"\",\n  \"value\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"key\": \"\",\n  \"value\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/tags")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/project/:projectId/tags")
  .header("content-type", "application/json")
  .body("{\n  \"key\": \"\",\n  \"value\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  key: '',
  value: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/project/:projectId/tags');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/tags',
  headers: {'content-type': 'application/json'},
  data: {key: '', value: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/tags';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"key":"","value":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/tags',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "key": "",\n  "value": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"key\": \"\",\n  \"value\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/tags")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/tags',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({key: '', value: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/tags',
  headers: {'content-type': 'application/json'},
  body: {key: '', value: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/project/:projectId/tags');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  key: '',
  value: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/tags',
  headers: {'content-type': 'application/json'},
  data: {key: '', value: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/tags';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"key":"","value":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"key": @"",
                              @"value": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/tags"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/tags" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"key\": \"\",\n  \"value\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/tags",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'key' => '',
    'value' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/project/:projectId/tags', [
  'body' => '{
  "key": "",
  "value": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/tags');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'key' => '',
  'value' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'key' => '',
  'value' => ''
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/tags');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/tags' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "key": "",
  "value": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/tags' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "key": "",
  "value": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"key\": \"\",\n  \"value\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/org/:orgId/project/:projectId/tags", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/tags"

payload = {
    "key": "",
    "value": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/tags"

payload <- "{\n  \"key\": \"\",\n  \"value\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/tags")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"key\": \"\",\n  \"value\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/org/:orgId/project/:projectId/tags') do |req|
  req.body = "{\n  \"key\": \"\",\n  \"value\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/tags";

    let payload = json!({
        "key": "",
        "value": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/project/:projectId/tags \
  --header 'content-type: application/json' \
  --data '{
  "key": "",
  "value": ""
}'
echo '{
  "key": "",
  "value": ""
}' |  \
  http POST {{baseUrl}}/org/:orgId/project/:projectId/tags \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "key": "",\n  "value": ""\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/tags
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "key": "",
  "value": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/tags")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "tags": [
    {
      "key": "example-tag-key",
      "value": "example-tag-value"
    }
  ]
}
POST Add ignore
{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId
QUERY PARAMS

orgId
projectId
issueId
BODY json

{
  "disregardIfFixable": false,
  "expires": "",
  "ignorePath": "",
  "reason": "",
  "reasonType": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"disregardIfFixable\": false,\n  \"expires\": \"\",\n  \"ignorePath\": \"\",\n  \"reason\": \"\",\n  \"reasonType\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId" {:content-type :json
                                                                                          :form-params {:disregardIfFixable false
                                                                                                        :expires ""
                                                                                                        :ignorePath ""
                                                                                                        :reason ""
                                                                                                        :reasonType ""}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"disregardIfFixable\": false,\n  \"expires\": \"\",\n  \"ignorePath\": \"\",\n  \"reason\": \"\",\n  \"reasonType\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"),
    Content = new StringContent("{\n  \"disregardIfFixable\": false,\n  \"expires\": \"\",\n  \"ignorePath\": \"\",\n  \"reason\": \"\",\n  \"reasonType\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"disregardIfFixable\": false,\n  \"expires\": \"\",\n  \"ignorePath\": \"\",\n  \"reason\": \"\",\n  \"reasonType\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"

	payload := strings.NewReader("{\n  \"disregardIfFixable\": false,\n  \"expires\": \"\",\n  \"ignorePath\": \"\",\n  \"reason\": \"\",\n  \"reasonType\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/project/:projectId/ignore/:issueId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 106

{
  "disregardIfFixable": false,
  "expires": "",
  "ignorePath": "",
  "reason": "",
  "reasonType": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"disregardIfFixable\": false,\n  \"expires\": \"\",\n  \"ignorePath\": \"\",\n  \"reason\": \"\",\n  \"reasonType\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"disregardIfFixable\": false,\n  \"expires\": \"\",\n  \"ignorePath\": \"\",\n  \"reason\": \"\",\n  \"reasonType\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"disregardIfFixable\": false,\n  \"expires\": \"\",\n  \"ignorePath\": \"\",\n  \"reason\": \"\",\n  \"reasonType\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
  .header("content-type", "application/json")
  .body("{\n  \"disregardIfFixable\": false,\n  \"expires\": \"\",\n  \"ignorePath\": \"\",\n  \"reason\": \"\",\n  \"reasonType\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  disregardIfFixable: false,
  expires: '',
  ignorePath: '',
  reason: '',
  reasonType: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId',
  headers: {'content-type': 'application/json'},
  data: {
    disregardIfFixable: false,
    expires: '',
    ignorePath: '',
    reason: '',
    reasonType: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"disregardIfFixable":false,"expires":"","ignorePath":"","reason":"","reasonType":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "disregardIfFixable": false,\n  "expires": "",\n  "ignorePath": "",\n  "reason": "",\n  "reasonType": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"disregardIfFixable\": false,\n  \"expires\": \"\",\n  \"ignorePath\": \"\",\n  \"reason\": \"\",\n  \"reasonType\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/ignore/:issueId',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  disregardIfFixable: false,
  expires: '',
  ignorePath: '',
  reason: '',
  reasonType: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId',
  headers: {'content-type': 'application/json'},
  body: {
    disregardIfFixable: false,
    expires: '',
    ignorePath: '',
    reason: '',
    reasonType: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  disregardIfFixable: false,
  expires: '',
  ignorePath: '',
  reason: '',
  reasonType: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId',
  headers: {'content-type': 'application/json'},
  data: {
    disregardIfFixable: false,
    expires: '',
    ignorePath: '',
    reason: '',
    reasonType: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"disregardIfFixable":false,"expires":"","ignorePath":"","reason":"","reasonType":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"disregardIfFixable": @NO,
                              @"expires": @"",
                              @"ignorePath": @"",
                              @"reason": @"",
                              @"reasonType": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"disregardIfFixable\": false,\n  \"expires\": \"\",\n  \"ignorePath\": \"\",\n  \"reason\": \"\",\n  \"reasonType\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'disregardIfFixable' => null,
    'expires' => '',
    'ignorePath' => '',
    'reason' => '',
    'reasonType' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId', [
  'body' => '{
  "disregardIfFixable": false,
  "expires": "",
  "ignorePath": "",
  "reason": "",
  "reasonType": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'disregardIfFixable' => null,
  'expires' => '',
  'ignorePath' => '',
  'reason' => '',
  'reasonType' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'disregardIfFixable' => null,
  'expires' => '',
  'ignorePath' => '',
  'reason' => '',
  'reasonType' => ''
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "disregardIfFixable": false,
  "expires": "",
  "ignorePath": "",
  "reason": "",
  "reasonType": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "disregardIfFixable": false,
  "expires": "",
  "ignorePath": "",
  "reason": "",
  "reasonType": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"disregardIfFixable\": false,\n  \"expires\": \"\",\n  \"ignorePath\": \"\",\n  \"reason\": \"\",\n  \"reasonType\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/org/:orgId/project/:projectId/ignore/:issueId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"

payload = {
    "disregardIfFixable": False,
    "expires": "",
    "ignorePath": "",
    "reason": "",
    "reasonType": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"

payload <- "{\n  \"disregardIfFixable\": false,\n  \"expires\": \"\",\n  \"ignorePath\": \"\",\n  \"reason\": \"\",\n  \"reasonType\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"disregardIfFixable\": false,\n  \"expires\": \"\",\n  \"ignorePath\": \"\",\n  \"reason\": \"\",\n  \"reasonType\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/org/:orgId/project/:projectId/ignore/:issueId') do |req|
  req.body = "{\n  \"disregardIfFixable\": false,\n  \"expires\": \"\",\n  \"ignorePath\": \"\",\n  \"reason\": \"\",\n  \"reasonType\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId";

    let payload = json!({
        "disregardIfFixable": false,
        "expires": "",
        "ignorePath": "",
        "reason": "",
        "reasonType": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId \
  --header 'content-type: application/json' \
  --data '{
  "disregardIfFixable": false,
  "expires": "",
  "ignorePath": "",
  "reason": "",
  "reasonType": ""
}'
echo '{
  "disregardIfFixable": false,
  "expires": "",
  "ignorePath": "",
  "reason": "",
  "reasonType": ""
}' |  \
  http POST {{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "disregardIfFixable": false,\n  "expires": "",\n  "ignorePath": "",\n  "reason": "",\n  "reasonType": ""\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "disregardIfFixable": false,
  "expires": "",
  "ignorePath": "",
  "reason": "",
  "reasonType": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "*": {
    "created": "2017-10-31T11:24:00.932Z",
    "disregardIfFixable": true,
    "ignoredBy": {
      "email": "jbloggs@gmail.com",
      "id": "a3952187-0d8e-45d8-9aa2-036642857b4f",
      "name": "Joe Bloggs"
    },
    "reason": "No fix available",
    "reasonType": "temporary-ignore"
  }
}
POST Applying attributes
{{baseUrl}}/org/:orgId/project/:projectId/attributes
QUERY PARAMS

orgId
projectId
BODY json

{
  "criticality": [],
  "environment": [],
  "lifecycle": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/attributes");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"criticality\": [],\n  \"environment\": [],\n  \"lifecycle\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/project/:projectId/attributes" {:content-type :json
                                                                                     :form-params {:criticality []
                                                                                                   :environment []
                                                                                                   :lifecycle []}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/attributes"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"criticality\": [],\n  \"environment\": [],\n  \"lifecycle\": []\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/attributes"),
    Content = new StringContent("{\n  \"criticality\": [],\n  \"environment\": [],\n  \"lifecycle\": []\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/attributes");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"criticality\": [],\n  \"environment\": [],\n  \"lifecycle\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/attributes"

	payload := strings.NewReader("{\n  \"criticality\": [],\n  \"environment\": [],\n  \"lifecycle\": []\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/project/:projectId/attributes HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 63

{
  "criticality": [],
  "environment": [],
  "lifecycle": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/project/:projectId/attributes")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"criticality\": [],\n  \"environment\": [],\n  \"lifecycle\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/attributes"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"criticality\": [],\n  \"environment\": [],\n  \"lifecycle\": []\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"criticality\": [],\n  \"environment\": [],\n  \"lifecycle\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/attributes")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/project/:projectId/attributes")
  .header("content-type", "application/json")
  .body("{\n  \"criticality\": [],\n  \"environment\": [],\n  \"lifecycle\": []\n}")
  .asString();
const data = JSON.stringify({
  criticality: [],
  environment: [],
  lifecycle: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/project/:projectId/attributes');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/attributes',
  headers: {'content-type': 'application/json'},
  data: {criticality: [], environment: [], lifecycle: []}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/attributes';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"criticality":[],"environment":[],"lifecycle":[]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/attributes',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "criticality": [],\n  "environment": [],\n  "lifecycle": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"criticality\": [],\n  \"environment\": [],\n  \"lifecycle\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/attributes")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/attributes',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({criticality: [], environment: [], lifecycle: []}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/attributes',
  headers: {'content-type': 'application/json'},
  body: {criticality: [], environment: [], lifecycle: []},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/project/:projectId/attributes');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  criticality: [],
  environment: [],
  lifecycle: []
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/attributes',
  headers: {'content-type': 'application/json'},
  data: {criticality: [], environment: [], lifecycle: []}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/attributes';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"criticality":[],"environment":[],"lifecycle":[]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"criticality": @[  ],
                              @"environment": @[  ],
                              @"lifecycle": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/attributes"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/attributes" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"criticality\": [],\n  \"environment\": [],\n  \"lifecycle\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/attributes",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'criticality' => [
        
    ],
    'environment' => [
        
    ],
    'lifecycle' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/project/:projectId/attributes', [
  'body' => '{
  "criticality": [],
  "environment": [],
  "lifecycle": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/attributes');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'criticality' => [
    
  ],
  'environment' => [
    
  ],
  'lifecycle' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'criticality' => [
    
  ],
  'environment' => [
    
  ],
  'lifecycle' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/attributes');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/attributes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "criticality": [],
  "environment": [],
  "lifecycle": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/attributes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "criticality": [],
  "environment": [],
  "lifecycle": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"criticality\": [],\n  \"environment\": [],\n  \"lifecycle\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/org/:orgId/project/:projectId/attributes", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/attributes"

payload = {
    "criticality": [],
    "environment": [],
    "lifecycle": []
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/attributes"

payload <- "{\n  \"criticality\": [],\n  \"environment\": [],\n  \"lifecycle\": []\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/attributes")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"criticality\": [],\n  \"environment\": [],\n  \"lifecycle\": []\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/org/:orgId/project/:projectId/attributes') do |req|
  req.body = "{\n  \"criticality\": [],\n  \"environment\": [],\n  \"lifecycle\": []\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/attributes";

    let payload = json!({
        "criticality": (),
        "environment": (),
        "lifecycle": ()
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/project/:projectId/attributes \
  --header 'content-type: application/json' \
  --data '{
  "criticality": [],
  "environment": [],
  "lifecycle": []
}'
echo '{
  "criticality": [],
  "environment": [],
  "lifecycle": []
}' |  \
  http POST {{baseUrl}}/org/:orgId/project/:projectId/attributes \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "criticality": [],\n  "environment": [],\n  "lifecycle": []\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/attributes
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "criticality": [],
  "environment": [],
  "lifecycle": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/attributes")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "attributes": {
    "criticality": [
      "high"
    ],
    "environment": [
      "backend"
    ],
    "lifecycle": [
      "development"
    ]
  }
}
POST Create jira issue
{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue
QUERY PARAMS

issueId
orgId
projectId
BODY json

{
  "fields": {
    "issuetype": {},
    "project": {},
    "summary": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"fields\": {\n    \"issuetype\": {},\n    \"project\": {},\n    \"summary\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue" {:content-type :json
                                                                                                    :form-params {:fields {:issuetype {}
                                                                                                                           :project {}
                                                                                                                           :summary ""}}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"fields\": {\n    \"issuetype\": {},\n    \"project\": {},\n    \"summary\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue"),
    Content = new StringContent("{\n  \"fields\": {\n    \"issuetype\": {},\n    \"project\": {},\n    \"summary\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"fields\": {\n    \"issuetype\": {},\n    \"project\": {},\n    \"summary\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue"

	payload := strings.NewReader("{\n  \"fields\": {\n    \"issuetype\": {},\n    \"project\": {},\n    \"summary\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/project/:projectId/issue/:issueId/jira-issue HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 79

{
  "fields": {
    "issuetype": {},
    "project": {},
    "summary": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"fields\": {\n    \"issuetype\": {},\n    \"project\": {},\n    \"summary\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"fields\": {\n    \"issuetype\": {},\n    \"project\": {},\n    \"summary\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"fields\": {\n    \"issuetype\": {},\n    \"project\": {},\n    \"summary\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue")
  .header("content-type", "application/json")
  .body("{\n  \"fields\": {\n    \"issuetype\": {},\n    \"project\": {},\n    \"summary\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  fields: {
    issuetype: {},
    project: {},
    summary: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue',
  headers: {'content-type': 'application/json'},
  data: {fields: {issuetype: {}, project: {}, summary: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"fields":{"issuetype":{},"project":{},"summary":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "fields": {\n    "issuetype": {},\n    "project": {},\n    "summary": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"fields\": {\n    \"issuetype\": {},\n    \"project\": {},\n    \"summary\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/issue/:issueId/jira-issue',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({fields: {issuetype: {}, project: {}, summary: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue',
  headers: {'content-type': 'application/json'},
  body: {fields: {issuetype: {}, project: {}, summary: ''}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  fields: {
    issuetype: {},
    project: {},
    summary: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue',
  headers: {'content-type': 'application/json'},
  data: {fields: {issuetype: {}, project: {}, summary: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"fields":{"issuetype":{},"project":{},"summary":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"fields": @{ @"issuetype": @{  }, @"project": @{  }, @"summary": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"fields\": {\n    \"issuetype\": {},\n    \"project\": {},\n    \"summary\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'fields' => [
        'issuetype' => [
                
        ],
        'project' => [
                
        ],
        'summary' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue', [
  'body' => '{
  "fields": {
    "issuetype": {},
    "project": {},
    "summary": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'fields' => [
    'issuetype' => [
        
    ],
    'project' => [
        
    ],
    'summary' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'fields' => [
    'issuetype' => [
        
    ],
    'project' => [
        
    ],
    'summary' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "fields": {
    "issuetype": {},
    "project": {},
    "summary": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "fields": {
    "issuetype": {},
    "project": {},
    "summary": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"fields\": {\n    \"issuetype\": {},\n    \"project\": {},\n    \"summary\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/org/:orgId/project/:projectId/issue/:issueId/jira-issue", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue"

payload = { "fields": {
        "issuetype": {},
        "project": {},
        "summary": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue"

payload <- "{\n  \"fields\": {\n    \"issuetype\": {},\n    \"project\": {},\n    \"summary\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"fields\": {\n    \"issuetype\": {},\n    \"project\": {},\n    \"summary\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/org/:orgId/project/:projectId/issue/:issueId/jira-issue') do |req|
  req.body = "{\n  \"fields\": {\n    \"issuetype\": {},\n    \"project\": {},\n    \"summary\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue";

    let payload = json!({"fields": json!({
            "issuetype": json!({}),
            "project": json!({}),
            "summary": ""
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue \
  --header 'content-type: application/json' \
  --data '{
  "fields": {
    "issuetype": {},
    "project": {},
    "summary": ""
  }
}'
echo '{
  "fields": {
    "issuetype": {},
    "project": {},
    "summary": ""
  }
}' |  \
  http POST {{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "fields": {\n    "issuetype": {},\n    "project": {},\n    "summary": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["fields": [
    "issuetype": [],
    "project": [],
    "summary": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/jira-issue")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Deactivate
{{baseUrl}}/org/:orgId/project/:projectId/deactivate
QUERY PARAMS

orgId
projectId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/deactivate");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/project/:projectId/deactivate")
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/deactivate"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/deactivate"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/deactivate");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/deactivate"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/project/:projectId/deactivate HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/project/:projectId/deactivate")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/deactivate"))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/deactivate")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/project/:projectId/deactivate")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/project/:projectId/deactivate');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/deactivate'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/deactivate';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/deactivate',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/deactivate")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/deactivate',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/deactivate'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/project/:projectId/deactivate');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/deactivate'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/deactivate';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/deactivate"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/deactivate" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/deactivate",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/project/:projectId/deactivate');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/deactivate');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/deactivate');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/deactivate' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/deactivate' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/org/:orgId/project/:projectId/deactivate")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/deactivate"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/deactivate"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/deactivate")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/org/:orgId/project/:projectId/deactivate') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/deactivate";

    let client = reqwest::Client::new();
    let response = client.post(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/project/:projectId/deactivate
http POST {{baseUrl}}/org/:orgId/project/:projectId/deactivate
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/deactivate
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/deactivate")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Delete a project
{{baseUrl}}/org/:orgId/project/:projectId
QUERY PARAMS

orgId
projectId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/org/:orgId/project/:projectId")
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/org/:orgId/project/:projectId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/org/:orgId/project/:projectId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/org/:orgId/project/:projectId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/org/:orgId/project/:projectId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/org/:orgId/project/:projectId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/org/:orgId/project/:projectId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/org/:orgId/project/:projectId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/org/:orgId/project/:projectId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/org/:orgId/project/:projectId');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/org/:orgId/project/:projectId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/org/:orgId/project/:projectId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/org/:orgId/project/:projectId
http DELETE {{baseUrl}}/org/:orgId/project/:projectId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Delete ignores
{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId
QUERY PARAMS

orgId
projectId
issueId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/org/:orgId/project/:projectId/ignore/:issueId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/ignore/:issueId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/org/:orgId/project/:projectId/ignore/:issueId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/org/:orgId/project/:projectId/ignore/:issueId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId
http DELETE {{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Delete project settings
{{baseUrl}}/org/:orgId/project/:projectId/settings
QUERY PARAMS

orgId
projectId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/settings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/org/:orgId/project/:projectId/settings")
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/settings"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/settings"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/settings");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/settings"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/org/:orgId/project/:projectId/settings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/org/:orgId/project/:projectId/settings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/settings"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/settings")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/org/:orgId/project/:projectId/settings")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/org/:orgId/project/:projectId/settings');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/settings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/settings';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/settings',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/settings")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/settings',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/settings'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/org/:orgId/project/:projectId/settings');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/settings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/settings';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/settings"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/settings" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/settings",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/org/:orgId/project/:projectId/settings');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/settings');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/settings');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/settings' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/settings' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/org/:orgId/project/:projectId/settings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/settings"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/settings"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/settings")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/org/:orgId/project/:projectId/settings') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/settings";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/org/:orgId/project/:projectId/settings
http DELETE {{baseUrl}}/org/:orgId/project/:projectId/settings
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/settings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/settings")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Get Project dependency graph
{{baseUrl}}/org/:orgId/project/:projectId/dep-graph
QUERY PARAMS

orgId
projectId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/dep-graph");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/project/:projectId/dep-graph")
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/dep-graph"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/dep-graph"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/dep-graph");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/dep-graph"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/project/:projectId/dep-graph HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/project/:projectId/dep-graph")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/dep-graph"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/dep-graph")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/project/:projectId/dep-graph")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/project/:projectId/dep-graph');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/dep-graph'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/dep-graph';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/dep-graph',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/dep-graph")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/dep-graph',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/dep-graph'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/project/:projectId/dep-graph');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/dep-graph'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/dep-graph';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/dep-graph"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/dep-graph" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/dep-graph",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/project/:projectId/dep-graph');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/dep-graph');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/dep-graph');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/dep-graph' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/dep-graph' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/project/:projectId/dep-graph")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/dep-graph"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/dep-graph"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/dep-graph")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/project/:projectId/dep-graph') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/dep-graph";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/project/:projectId/dep-graph
http GET {{baseUrl}}/org/:orgId/project/:projectId/dep-graph
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/dep-graph
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/dep-graph")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "depGraph": {
    "graph": {
      "nodes": [
        {
          "deps": [
            {
              "nodeId": "express@4.4.0"
            },
            {
              "nodeId": "ws@1.0.0"
            }
          ],
          "nodeId": "root-node",
          "pkgId": "demo-app-for-test@1.1.1"
        },
        {
          "deps": [],
          "nodeId": "express@4.4.0",
          "pkgId": "express@4.4.0"
        },
        {
          "deps": [],
          "nodeId": "ws@1.0.0",
          "pkgId": "ws@1.0.0"
        }
      ],
      "rootNodeId": "root-node"
    },
    "pkgManager": {
      "name": "npm"
    },
    "pkgs": [
      {
        "id": "demo-app-for-test@1.1.1",
        "info": {
          "name": "demo-app-for-test",
          "version": "1.1.1"
        }
      },
      {
        "id": "express@4.4.0",
        "info": {
          "name": "express",
          "version": "4.4.0"
        }
      },
      {
        "id": "ws@1.0.0",
        "info": {
          "name": "ws",
          "version": "1.0.0"
        }
      }
    ],
    "schemaVersion": "1.1.0"
  }
}
POST List all Aggregated issues
{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues
QUERY PARAMS

orgId
projectId
BODY json

{
  "filters": {
    "exploitMaturity": [],
    "ignored": false,
    "patched": false,
    "priority": {
      "score": {
        "max": "",
        "min": ""
      }
    },
    "severities": [],
    "types": []
  },
  "includeDescription": false,
  "includeIntroducedThrough": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues" {:content-type :json
                                                                                            :form-params {:filters {:exploitMaturity []
                                                                                                                    :ignored false
                                                                                                                    :patched false
                                                                                                                    :priority {:score {:max ""
                                                                                                                                       :min ""}}
                                                                                                                    :severities []
                                                                                                                    :types []}
                                                                                                          :includeDescription false
                                                                                                          :includeIntroducedThrough false}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues"),
    Content = new StringContent("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues"

	payload := strings.NewReader("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/project/:projectId/aggregated-issues HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 286

{
  "filters": {
    "exploitMaturity": [],
    "ignored": false,
    "patched": false,
    "priority": {
      "score": {
        "max": "",
        "min": ""
      }
    },
    "severities": [],
    "types": []
  },
  "includeDescription": false,
  "includeIntroducedThrough": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues")
  .header("content-type", "application/json")
  .body("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}")
  .asString();
const data = JSON.stringify({
  filters: {
    exploitMaturity: [],
    ignored: false,
    patched: false,
    priority: {
      score: {
        max: '',
        min: ''
      }
    },
    severities: [],
    types: []
  },
  includeDescription: false,
  includeIntroducedThrough: false
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues',
  headers: {'content-type': 'application/json'},
  data: {
    filters: {
      exploitMaturity: [],
      ignored: false,
      patched: false,
      priority: {score: {max: '', min: ''}},
      severities: [],
      types: []
    },
    includeDescription: false,
    includeIntroducedThrough: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"exploitMaturity":[],"ignored":false,"patched":false,"priority":{"score":{"max":"","min":""}},"severities":[],"types":[]},"includeDescription":false,"includeIntroducedThrough":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "filters": {\n    "exploitMaturity": [],\n    "ignored": false,\n    "patched": false,\n    "priority": {\n      "score": {\n        "max": "",\n        "min": ""\n      }\n    },\n    "severities": [],\n    "types": []\n  },\n  "includeDescription": false,\n  "includeIntroducedThrough": false\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/aggregated-issues',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  filters: {
    exploitMaturity: [],
    ignored: false,
    patched: false,
    priority: {score: {max: '', min: ''}},
    severities: [],
    types: []
  },
  includeDescription: false,
  includeIntroducedThrough: false
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues',
  headers: {'content-type': 'application/json'},
  body: {
    filters: {
      exploitMaturity: [],
      ignored: false,
      patched: false,
      priority: {score: {max: '', min: ''}},
      severities: [],
      types: []
    },
    includeDescription: false,
    includeIntroducedThrough: false
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  filters: {
    exploitMaturity: [],
    ignored: false,
    patched: false,
    priority: {
      score: {
        max: '',
        min: ''
      }
    },
    severities: [],
    types: []
  },
  includeDescription: false,
  includeIntroducedThrough: false
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues',
  headers: {'content-type': 'application/json'},
  data: {
    filters: {
      exploitMaturity: [],
      ignored: false,
      patched: false,
      priority: {score: {max: '', min: ''}},
      severities: [],
      types: []
    },
    includeDescription: false,
    includeIntroducedThrough: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"exploitMaturity":[],"ignored":false,"patched":false,"priority":{"score":{"max":"","min":""}},"severities":[],"types":[]},"includeDescription":false,"includeIntroducedThrough":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"filters": @{ @"exploitMaturity": @[  ], @"ignored": @NO, @"patched": @NO, @"priority": @{ @"score": @{ @"max": @"", @"min": @"" } }, @"severities": @[  ], @"types": @[  ] },
                              @"includeDescription": @NO,
                              @"includeIntroducedThrough": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'filters' => [
        'exploitMaturity' => [
                
        ],
        'ignored' => null,
        'patched' => null,
        'priority' => [
                'score' => [
                                'max' => '',
                                'min' => ''
                ]
        ],
        'severities' => [
                
        ],
        'types' => [
                
        ]
    ],
    'includeDescription' => null,
    'includeIntroducedThrough' => null
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues', [
  'body' => '{
  "filters": {
    "exploitMaturity": [],
    "ignored": false,
    "patched": false,
    "priority": {
      "score": {
        "max": "",
        "min": ""
      }
    },
    "severities": [],
    "types": []
  },
  "includeDescription": false,
  "includeIntroducedThrough": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'filters' => [
    'exploitMaturity' => [
        
    ],
    'ignored' => null,
    'patched' => null,
    'priority' => [
        'score' => [
                'max' => '',
                'min' => ''
        ]
    ],
    'severities' => [
        
    ],
    'types' => [
        
    ]
  ],
  'includeDescription' => null,
  'includeIntroducedThrough' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'filters' => [
    'exploitMaturity' => [
        
    ],
    'ignored' => null,
    'patched' => null,
    'priority' => [
        'score' => [
                'max' => '',
                'min' => ''
        ]
    ],
    'severities' => [
        
    ],
    'types' => [
        
    ]
  ],
  'includeDescription' => null,
  'includeIntroducedThrough' => null
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "exploitMaturity": [],
    "ignored": false,
    "patched": false,
    "priority": {
      "score": {
        "max": "",
        "min": ""
      }
    },
    "severities": [],
    "types": []
  },
  "includeDescription": false,
  "includeIntroducedThrough": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "exploitMaturity": [],
    "ignored": false,
    "patched": false,
    "priority": {
      "score": {
        "max": "",
        "min": ""
      }
    },
    "severities": [],
    "types": []
  },
  "includeDescription": false,
  "includeIntroducedThrough": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/org/:orgId/project/:projectId/aggregated-issues", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues"

payload = {
    "filters": {
        "exploitMaturity": [],
        "ignored": False,
        "patched": False,
        "priority": { "score": {
                "max": "",
                "min": ""
            } },
        "severities": [],
        "types": []
    },
    "includeDescription": False,
    "includeIntroducedThrough": False
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues"

payload <- "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/org/:orgId/project/:projectId/aggregated-issues') do |req|
  req.body = "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues";

    let payload = json!({
        "filters": json!({
            "exploitMaturity": (),
            "ignored": false,
            "patched": false,
            "priority": json!({"score": json!({
                    "max": "",
                    "min": ""
                })}),
            "severities": (),
            "types": ()
        }),
        "includeDescription": false,
        "includeIntroducedThrough": false
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues \
  --header 'content-type: application/json' \
  --data '{
  "filters": {
    "exploitMaturity": [],
    "ignored": false,
    "patched": false,
    "priority": {
      "score": {
        "max": "",
        "min": ""
      }
    },
    "severities": [],
    "types": []
  },
  "includeDescription": false,
  "includeIntroducedThrough": false
}'
echo '{
  "filters": {
    "exploitMaturity": [],
    "ignored": false,
    "patched": false,
    "priority": {
      "score": {
        "max": "",
        "min": ""
      }
    },
    "severities": [],
    "types": []
  },
  "includeDescription": false,
  "includeIntroducedThrough": false
}' |  \
  http POST {{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "filters": {\n    "exploitMaturity": [],\n    "ignored": false,\n    "patched": false,\n    "priority": {\n      "score": {\n        "max": "",\n        "min": ""\n      }\n    },\n    "severities": [],\n    "types": []\n  },\n  "includeDescription": false,\n  "includeIntroducedThrough": false\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "filters": [
    "exploitMaturity": [],
    "ignored": false,
    "patched": false,
    "priority": ["score": [
        "max": "",
        "min": ""
      ]],
    "severities": [],
    "types": []
  ],
  "includeDescription": false,
  "includeIntroducedThrough": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/aggregated-issues")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "issues": [
    {
      "fixInfo": {
        "fixedIn": [
          "2.0.0"
        ],
        "isFixable": false,
        "isPartiallyFixable": false,
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "nearestFixedInVersion": "2.0.0"
      },
      "id": "npm:ms:20170412",
      "ignoreReasons": [
        {
          "expires": "",
          "reason": "",
          "source": "cli"
        }
      ],
      "introducedThrough": [
        {
          "data": {},
          "kind": "imageLayer"
        }
      ],
      "isIgnored": false,
      "isPatched": false,
      "issueData": {
        "CVSSv3": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L",
        "credit": [
          "Snyk Security Research Team"
        ],
        "cvssScore": 3.7,
        "description": "`## Overview\\r\\n[`ms`](https://www.npmjs.com/package/ms) is a tiny millisecond conversion utility.\\r\\n\\r\\nAffected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to an incomplete fix for previously reported vulnerability [npm:ms:20151024](https://snyk.io/vuln/npm:ms:20151024). The fix limited the length of accepted input string to 10,000 characters, and turned to be insufficient making it possible to block the event loop for 0.3 seconds (on a typical laptop) with a specially crafted string passed to `ms",
        "disclosureTime": "2017-04-11T21:00:00Z",
        "exploitMaturity": "no-known-exploit",
        "id": "npm:ms:20170412",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-400"
          ],
          "OSVDB": []
        },
        "isMaliciousPackage": true,
        "language": "js",
        "nearestFixedInVersion": "2.0.0",
        "originalSeverity": "high",
        "patches": [
          {
            "comments": [],
            "id": "patch:npm:ms:20170412:0",
            "modificationTime": "2019-12-03T11:40:45.863964Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/ms/20170412/ms_100.patch"
            ],
            "version": "=1.0.0"
          }
        ],
        "path": "[DocId: 1].input.spec.template.spec.containers[snyk2].securityContext.privileged",
        "publicationTime": "2017-05-15T06:02:45Z",
        "semver": {
          "unaffected": "",
          "vulnerable": [
            ">=0.7.1 <2.0.0"
          ]
        },
        "severity": "low",
        "title": "Regular Expression Denial of Service (ReDoS)",
        "url": "https://snyk.io/vuln/npm:ms:20170412",
        "violatedPolicyPublicId": "SNYK-CC-K8S-1"
      },
      "issueType": "vuln",
      "links": {
        "paths": ""
      },
      "pkgName": "ms",
      "pkgVersions": [
        "1.0.0"
      ],
      "priority": {
        "factors": [
          "name: `isFixable`",
          "description: `Has a fix available`"
        ],
        "score": 399
      }
    }
  ]
}
GET List all ignores
{{baseUrl}}/org/:orgId/project/:projectId/ignores
QUERY PARAMS

orgId
projectId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/ignores");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/project/:projectId/ignores")
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/ignores"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/ignores"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/ignores");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/ignores"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/project/:projectId/ignores HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/project/:projectId/ignores")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/ignores"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/ignores")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/project/:projectId/ignores")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/project/:projectId/ignores');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignores'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/ignores';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignores',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/ignores")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/ignores',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignores'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/project/:projectId/ignores');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignores'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/ignores';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/ignores"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/ignores" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/ignores",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/project/:projectId/ignores');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/ignores');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/ignores');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/ignores' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/ignores' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/project/:projectId/ignores")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/ignores"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/ignores"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/ignores")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/project/:projectId/ignores') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/ignores";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/project/:projectId/ignores
http GET {{baseUrl}}/org/:orgId/project/:projectId/ignores
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/ignores
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/ignores")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "npm:electron:20170426": [
    {
      "*": {
        "created": "2017-10-31T11:25:17.138Z",
        "disregardIfFixable": false,
        "ignoredBy": {
          "email": "jbloggs@gmail.com",
          "id": "a3952187-0d8e-45d8-9aa2-036642857b4f",
          "name": "Joe Bloggs"
        },
        "reason": "Low impact",
        "reasonType": "wont-fix"
      }
    }
  ],
  "npm:negotiator:20160616": [
    {
      "*": {
        "created": "2017-10-31T11:24:45.365Z",
        "disregardIfFixable": false,
        "ignoredBy": {
          "email": "jbloggs@gmail.com",
          "id": "a3952187-0d8e-45d8-9aa2-036642857b4f",
          "name": "Joe Bloggs"
        },
        "reason": "Not vulnerable via this path",
        "reasonType": "not-vulnerable"
      }
    }
  ],
  "npm:qs:20140806-1": [
    {
      "*": {
        "created": "2017-10-31T11:24:00.932Z",
        "disregardIfFixable": true,
        "expires": "2017-12-10T15:39:38.099Z",
        "ignoredBy": {
          "email": "jbloggs@gmail.com",
          "id": "a3952187-0d8e-45d8-9aa2-036642857b4f",
          "name": "Joe Bloggs"
        },
        "reason": "No fix available",
        "reasonType": "temporary-ignore"
      }
    }
  ]
}
GET List all jira issues
{{baseUrl}}/org/:orgId/project/:projectId/jira-issues
QUERY PARAMS

orgId
projectId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/jira-issues");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/project/:projectId/jira-issues")
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/jira-issues"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/jira-issues"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/jira-issues");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/jira-issues"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/project/:projectId/jira-issues HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/project/:projectId/jira-issues")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/jira-issues"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/jira-issues")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/project/:projectId/jira-issues")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/project/:projectId/jira-issues');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/jira-issues'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/jira-issues';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/jira-issues',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/jira-issues")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/jira-issues',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/jira-issues'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/project/:projectId/jira-issues');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/jira-issues'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/jira-issues';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/jira-issues"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/jira-issues" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/jira-issues",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/project/:projectId/jira-issues');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/jira-issues');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/jira-issues');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/jira-issues' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/jira-issues' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/project/:projectId/jira-issues")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/jira-issues"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/jira-issues"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/jira-issues")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/project/:projectId/jira-issues') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/jira-issues";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/project/:projectId/jira-issues
http GET {{baseUrl}}/org/:orgId/project/:projectId/jira-issues
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/jira-issues
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/jira-issues")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET List all project issue paths
{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths
QUERY PARAMS

orgId
projectId
issueId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths")
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/project/:projectId/issue/:issueId/paths HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/issue/:issueId/paths',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/project/:projectId/issue/:issueId/paths")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/project/:projectId/issue/:issueId/paths') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths
http GET {{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/issue/:issueId/paths")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST List all project snapshot aggregated issues
{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues
QUERY PARAMS

orgId
projectId
snapshotId
BODY json

{
  "filters": {
    "exploitMaturity": [],
    "ignored": false,
    "patched": false,
    "priority": {
      "score": {
        "max": "",
        "min": ""
      }
    },
    "severities": [],
    "types": []
  },
  "includeDescription": false,
  "includeIntroducedThrough": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues" {:content-type :json
                                                                                                                :form-params {:filters {:exploitMaturity []
                                                                                                                                        :ignored false
                                                                                                                                        :patched false
                                                                                                                                        :priority {:score {:max ""
                                                                                                                                                           :min ""}}
                                                                                                                                        :severities []
                                                                                                                                        :types []}
                                                                                                                              :includeDescription false
                                                                                                                              :includeIntroducedThrough false}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues"),
    Content = new StringContent("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues"

	payload := strings.NewReader("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 286

{
  "filters": {
    "exploitMaturity": [],
    "ignored": false,
    "patched": false,
    "priority": {
      "score": {
        "max": "",
        "min": ""
      }
    },
    "severities": [],
    "types": []
  },
  "includeDescription": false,
  "includeIntroducedThrough": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues")
  .header("content-type", "application/json")
  .body("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}")
  .asString();
const data = JSON.stringify({
  filters: {
    exploitMaturity: [],
    ignored: false,
    patched: false,
    priority: {
      score: {
        max: '',
        min: ''
      }
    },
    severities: [],
    types: []
  },
  includeDescription: false,
  includeIntroducedThrough: false
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues',
  headers: {'content-type': 'application/json'},
  data: {
    filters: {
      exploitMaturity: [],
      ignored: false,
      patched: false,
      priority: {score: {max: '', min: ''}},
      severities: [],
      types: []
    },
    includeDescription: false,
    includeIntroducedThrough: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"exploitMaturity":[],"ignored":false,"patched":false,"priority":{"score":{"max":"","min":""}},"severities":[],"types":[]},"includeDescription":false,"includeIntroducedThrough":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "filters": {\n    "exploitMaturity": [],\n    "ignored": false,\n    "patched": false,\n    "priority": {\n      "score": {\n        "max": "",\n        "min": ""\n      }\n    },\n    "severities": [],\n    "types": []\n  },\n  "includeDescription": false,\n  "includeIntroducedThrough": false\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  filters: {
    exploitMaturity: [],
    ignored: false,
    patched: false,
    priority: {score: {max: '', min: ''}},
    severities: [],
    types: []
  },
  includeDescription: false,
  includeIntroducedThrough: false
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues',
  headers: {'content-type': 'application/json'},
  body: {
    filters: {
      exploitMaturity: [],
      ignored: false,
      patched: false,
      priority: {score: {max: '', min: ''}},
      severities: [],
      types: []
    },
    includeDescription: false,
    includeIntroducedThrough: false
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  filters: {
    exploitMaturity: [],
    ignored: false,
    patched: false,
    priority: {
      score: {
        max: '',
        min: ''
      }
    },
    severities: [],
    types: []
  },
  includeDescription: false,
  includeIntroducedThrough: false
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues',
  headers: {'content-type': 'application/json'},
  data: {
    filters: {
      exploitMaturity: [],
      ignored: false,
      patched: false,
      priority: {score: {max: '', min: ''}},
      severities: [],
      types: []
    },
    includeDescription: false,
    includeIntroducedThrough: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"exploitMaturity":[],"ignored":false,"patched":false,"priority":{"score":{"max":"","min":""}},"severities":[],"types":[]},"includeDescription":false,"includeIntroducedThrough":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"filters": @{ @"exploitMaturity": @[  ], @"ignored": @NO, @"patched": @NO, @"priority": @{ @"score": @{ @"max": @"", @"min": @"" } }, @"severities": @[  ], @"types": @[  ] },
                              @"includeDescription": @NO,
                              @"includeIntroducedThrough": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'filters' => [
        'exploitMaturity' => [
                
        ],
        'ignored' => null,
        'patched' => null,
        'priority' => [
                'score' => [
                                'max' => '',
                                'min' => ''
                ]
        ],
        'severities' => [
                
        ],
        'types' => [
                
        ]
    ],
    'includeDescription' => null,
    'includeIntroducedThrough' => null
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues', [
  'body' => '{
  "filters": {
    "exploitMaturity": [],
    "ignored": false,
    "patched": false,
    "priority": {
      "score": {
        "max": "",
        "min": ""
      }
    },
    "severities": [],
    "types": []
  },
  "includeDescription": false,
  "includeIntroducedThrough": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'filters' => [
    'exploitMaturity' => [
        
    ],
    'ignored' => null,
    'patched' => null,
    'priority' => [
        'score' => [
                'max' => '',
                'min' => ''
        ]
    ],
    'severities' => [
        
    ],
    'types' => [
        
    ]
  ],
  'includeDescription' => null,
  'includeIntroducedThrough' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'filters' => [
    'exploitMaturity' => [
        
    ],
    'ignored' => null,
    'patched' => null,
    'priority' => [
        'score' => [
                'max' => '',
                'min' => ''
        ]
    ],
    'severities' => [
        
    ],
    'types' => [
        
    ]
  ],
  'includeDescription' => null,
  'includeIntroducedThrough' => null
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "exploitMaturity": [],
    "ignored": false,
    "patched": false,
    "priority": {
      "score": {
        "max": "",
        "min": ""
      }
    },
    "severities": [],
    "types": []
  },
  "includeDescription": false,
  "includeIntroducedThrough": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "exploitMaturity": [],
    "ignored": false,
    "patched": false,
    "priority": {
      "score": {
        "max": "",
        "min": ""
      }
    },
    "severities": [],
    "types": []
  },
  "includeDescription": false,
  "includeIntroducedThrough": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues"

payload = {
    "filters": {
        "exploitMaturity": [],
        "ignored": False,
        "patched": False,
        "priority": { "score": {
                "max": "",
                "min": ""
            } },
        "severities": [],
        "types": []
    },
    "includeDescription": False,
    "includeIntroducedThrough": False
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues"

payload <- "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues') do |req|
  req.body = "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"ignored\": false,\n    \"patched\": false,\n    \"priority\": {\n      \"score\": {\n        \"max\": \"\",\n        \"min\": \"\"\n      }\n    },\n    \"severities\": [],\n    \"types\": []\n  },\n  \"includeDescription\": false,\n  \"includeIntroducedThrough\": false\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues";

    let payload = json!({
        "filters": json!({
            "exploitMaturity": (),
            "ignored": false,
            "patched": false,
            "priority": json!({"score": json!({
                    "max": "",
                    "min": ""
                })}),
            "severities": (),
            "types": ()
        }),
        "includeDescription": false,
        "includeIntroducedThrough": false
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues \
  --header 'content-type: application/json' \
  --data '{
  "filters": {
    "exploitMaturity": [],
    "ignored": false,
    "patched": false,
    "priority": {
      "score": {
        "max": "",
        "min": ""
      }
    },
    "severities": [],
    "types": []
  },
  "includeDescription": false,
  "includeIntroducedThrough": false
}'
echo '{
  "filters": {
    "exploitMaturity": [],
    "ignored": false,
    "patched": false,
    "priority": {
      "score": {
        "max": "",
        "min": ""
      }
    },
    "severities": [],
    "types": []
  },
  "includeDescription": false,
  "includeIntroducedThrough": false
}' |  \
  http POST {{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "filters": {\n    "exploitMaturity": [],\n    "ignored": false,\n    "patched": false,\n    "priority": {\n      "score": {\n        "max": "",\n        "min": ""\n      }\n    },\n    "severities": [],\n    "types": []\n  },\n  "includeDescription": false,\n  "includeIntroducedThrough": false\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "filters": [
    "exploitMaturity": [],
    "ignored": false,
    "patched": false,
    "priority": ["score": [
        "max": "",
        "min": ""
      ]],
    "severities": [],
    "types": []
  ],
  "includeDescription": false,
  "includeIntroducedThrough": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/aggregated-issues")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "issues": [
    {
      "fixInfo": {
        "fixedIn": [
          "2.0.0"
        ],
        "isFixable": false,
        "isPartiallyFixable": false,
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "nearestFixedInVersion": "2.0.0"
      },
      "id": "npm:ms:20170412",
      "ignoreReasons": [
        {
          "expires": "",
          "reason": "",
          "source": "cli"
        }
      ],
      "introducedThrough": [
        {
          "data": {},
          "kind": "imageLayer"
        }
      ],
      "isIgnored": false,
      "isPatched": false,
      "issueData": {
        "CVSSv3": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L",
        "credit": [
          "Snyk Security Research Team"
        ],
        "cvssScore": 3.7,
        "description": "`## Overview\\r\\n[`ms`](https://www.npmjs.com/package/ms) is a tiny millisecond conversion utility.\\r\\n\\r\\nAffected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to an incomplete fix for previously reported vulnerability [npm:ms:20151024](https://snyk.io/vuln/npm:ms:20151024). The fix limited the length of accepted input string to 10,000 characters, and turned to be insufficient making it possible to block the event loop for 0.3 seconds (on a typical laptop) with a specially crafted string passed to `ms",
        "disclosureTime": "2017-04-11T21:00:00Z",
        "exploitMaturity": "no-known-exploit",
        "id": "npm:ms:20170412",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-400"
          ],
          "OSVDB": []
        },
        "isMaliciousPackage": true,
        "language": "js",
        "nearestFixedInVersion": "2.0.0",
        "originalSeverity": "high",
        "patches": [
          {
            "comments": [],
            "id": "patch:npm:ms:20170412:0",
            "modificationTime": "2019-12-03T11:40:45.863964Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/ms/20170412/ms_100.patch"
            ],
            "version": "=1.0.0"
          }
        ],
        "path": "[DocId: 1].input.spec.template.spec.containers[snyk2].securityContext.privileged",
        "publicationTime": "2017-05-15T06:02:45Z",
        "semver": {
          "unaffected": "",
          "vulnerable": [
            ">=0.7.1 <2.0.0"
          ]
        },
        "severity": "low",
        "title": "Regular Expression Denial of Service (ReDoS)",
        "url": "https://snyk.io/vuln/npm:ms:20170412",
        "violatedPolicyPublicId": "SNYK-CC-K8S-1"
      },
      "issueType": "vuln",
      "links": {
        "paths": ""
      },
      "pkgName": "ms",
      "pkgVersions": [
        "1.0.0"
      ],
      "priority": {
        "factors": [
          "name: `isFixable`",
          "description: `Has a fix available`"
        ],
        "score": 399
      }
    }
  ]
}
GET List all project snapshot issue paths
{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths
QUERY PARAMS

orgId
projectId
snapshotId
issueId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths")
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths
http GET {{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/history/:snapshotId/issue/:issueId/paths")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST List all project snapshots
{{baseUrl}}/org/:orgId/project/:projectId/history
QUERY PARAMS

orgId
projectId
BODY json

{
  "filters": {
    "imageId": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/history");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"filters\": {\n    \"imageId\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/project/:projectId/history" {:content-type :json
                                                                                  :form-params {:filters {:imageId ""}}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/history"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"filters\": {\n    \"imageId\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/history"),
    Content = new StringContent("{\n  \"filters\": {\n    \"imageId\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/history");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"filters\": {\n    \"imageId\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/history"

	payload := strings.NewReader("{\n  \"filters\": {\n    \"imageId\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/project/:projectId/history HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 40

{
  "filters": {
    "imageId": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/project/:projectId/history")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"filters\": {\n    \"imageId\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/history"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"filters\": {\n    \"imageId\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"imageId\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/history")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/project/:projectId/history")
  .header("content-type", "application/json")
  .body("{\n  \"filters\": {\n    \"imageId\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  filters: {
    imageId: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/project/:projectId/history');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/history',
  headers: {'content-type': 'application/json'},
  data: {filters: {imageId: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/history';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"imageId":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/history',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "filters": {\n    "imageId": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"imageId\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/history")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/history',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({filters: {imageId: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/history',
  headers: {'content-type': 'application/json'},
  body: {filters: {imageId: ''}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/project/:projectId/history');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  filters: {
    imageId: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/history',
  headers: {'content-type': 'application/json'},
  data: {filters: {imageId: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/history';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"imageId":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"filters": @{ @"imageId": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/history"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/history" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"filters\": {\n    \"imageId\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/history",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'filters' => [
        'imageId' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/project/:projectId/history', [
  'body' => '{
  "filters": {
    "imageId": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/history');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'filters' => [
    'imageId' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'filters' => [
    'imageId' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/history');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/history' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "imageId": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/history' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "imageId": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"filters\": {\n    \"imageId\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/org/:orgId/project/:projectId/history", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/history"

payload = { "filters": { "imageId": "" } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/history"

payload <- "{\n  \"filters\": {\n    \"imageId\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/history")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"filters\": {\n    \"imageId\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/org/:orgId/project/:projectId/history') do |req|
  req.body = "{\n  \"filters\": {\n    \"imageId\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/history";

    let payload = json!({"filters": json!({"imageId": ""})});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/project/:projectId/history \
  --header 'content-type: application/json' \
  --data '{
  "filters": {
    "imageId": ""
  }
}'
echo '{
  "filters": {
    "imageId": ""
  }
}' |  \
  http POST {{baseUrl}}/org/:orgId/project/:projectId/history \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "filters": {\n    "imageId": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/history
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["filters": ["imageId": ""]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/history")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "snapshots": [
    {
      "baseImageName": "fedora:32",
      "created": "2019-02-05T06:21:00.000Z",
      "id": "6d5813be-7e6d-4ab8-80c2-1e3e2a454545",
      "imageId": "sha256:a368cbcfa6789bc347345f6d78902afe138b62ff5373d2aa5f37120277c90a67",
      "imagePlatform": "linux/amd64",
      "imageTag": "latest",
      "issueCounts": {
        "license": {
          "critical": 0,
          "high": 13,
          "low": 8,
          "medium": 15
        },
        "vuln": {
          "critical": 0,
          "high": 13,
          "low": 8,
          "medium": 15
        }
      },
      "method": "web-test",
      "totalDependencies": 438
    },
    {
      "baseImageName": "fedora:32",
      "created": "2019-02-04T06:19:00.000Z",
      "id": "6d5813be-7e6d-4ab8-80c2-1e3e2a454553",
      "imageId": "sha256:a368cbcfa6789bc347345f6d78902afe138b62ff5373d2aa5f37120277c90a67",
      "imagePlatform": "linux/amd64",
      "imageTag": "latest",
      "issueCounts": {
        "license": {
          "critical": 0,
          "high": 13,
          "low": 8,
          "medium": 15
        },
        "vuln": {
          "critical": 0,
          "high": 13,
          "low": 8,
          "medium": 15
        }
      },
      "method": "web-test",
      "totalDependencies": 438
    }
  ],
  "total": 2
}
POST List all projects
{{baseUrl}}/org/:orgId/projects
QUERY PARAMS

orgId
BODY json

{
  "filters": {
    "attributes": {
      "criticality": [],
      "environment": [],
      "lifecycle": []
    },
    "isMonitored": false,
    "name": "",
    "origin": "",
    "tags": {
      "includes": []
    },
    "type": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/projects");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"filters\": {\n    \"attributes\": {\n      \"criticality\": [],\n      \"environment\": [],\n      \"lifecycle\": []\n    },\n    \"isMonitored\": false,\n    \"name\": \"\",\n    \"origin\": \"\",\n    \"tags\": {\n      \"includes\": []\n    },\n    \"type\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/projects" {:content-type :json
                                                                :form-params {:filters {:attributes {:criticality []
                                                                                                     :environment []
                                                                                                     :lifecycle []}
                                                                                        :isMonitored false
                                                                                        :name ""
                                                                                        :origin ""
                                                                                        :tags {:includes []}
                                                                                        :type ""}}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/projects"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"filters\": {\n    \"attributes\": {\n      \"criticality\": [],\n      \"environment\": [],\n      \"lifecycle\": []\n    },\n    \"isMonitored\": false,\n    \"name\": \"\",\n    \"origin\": \"\",\n    \"tags\": {\n      \"includes\": []\n    },\n    \"type\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/projects"),
    Content = new StringContent("{\n  \"filters\": {\n    \"attributes\": {\n      \"criticality\": [],\n      \"environment\": [],\n      \"lifecycle\": []\n    },\n    \"isMonitored\": false,\n    \"name\": \"\",\n    \"origin\": \"\",\n    \"tags\": {\n      \"includes\": []\n    },\n    \"type\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/projects");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"filters\": {\n    \"attributes\": {\n      \"criticality\": [],\n      \"environment\": [],\n      \"lifecycle\": []\n    },\n    \"isMonitored\": false,\n    \"name\": \"\",\n    \"origin\": \"\",\n    \"tags\": {\n      \"includes\": []\n    },\n    \"type\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/projects"

	payload := strings.NewReader("{\n  \"filters\": {\n    \"attributes\": {\n      \"criticality\": [],\n      \"environment\": [],\n      \"lifecycle\": []\n    },\n    \"isMonitored\": false,\n    \"name\": \"\",\n    \"origin\": \"\",\n    \"tags\": {\n      \"includes\": []\n    },\n    \"type\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/projects HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 238

{
  "filters": {
    "attributes": {
      "criticality": [],
      "environment": [],
      "lifecycle": []
    },
    "isMonitored": false,
    "name": "",
    "origin": "",
    "tags": {
      "includes": []
    },
    "type": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/projects")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"filters\": {\n    \"attributes\": {\n      \"criticality\": [],\n      \"environment\": [],\n      \"lifecycle\": []\n    },\n    \"isMonitored\": false,\n    \"name\": \"\",\n    \"origin\": \"\",\n    \"tags\": {\n      \"includes\": []\n    },\n    \"type\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/projects"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"filters\": {\n    \"attributes\": {\n      \"criticality\": [],\n      \"environment\": [],\n      \"lifecycle\": []\n    },\n    \"isMonitored\": false,\n    \"name\": \"\",\n    \"origin\": \"\",\n    \"tags\": {\n      \"includes\": []\n    },\n    \"type\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"attributes\": {\n      \"criticality\": [],\n      \"environment\": [],\n      \"lifecycle\": []\n    },\n    \"isMonitored\": false,\n    \"name\": \"\",\n    \"origin\": \"\",\n    \"tags\": {\n      \"includes\": []\n    },\n    \"type\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/projects")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/projects")
  .header("content-type", "application/json")
  .body("{\n  \"filters\": {\n    \"attributes\": {\n      \"criticality\": [],\n      \"environment\": [],\n      \"lifecycle\": []\n    },\n    \"isMonitored\": false,\n    \"name\": \"\",\n    \"origin\": \"\",\n    \"tags\": {\n      \"includes\": []\n    },\n    \"type\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  filters: {
    attributes: {
      criticality: [],
      environment: [],
      lifecycle: []
    },
    isMonitored: false,
    name: '',
    origin: '',
    tags: {
      includes: []
    },
    type: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/projects');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/projects',
  headers: {'content-type': 'application/json'},
  data: {
    filters: {
      attributes: {criticality: [], environment: [], lifecycle: []},
      isMonitored: false,
      name: '',
      origin: '',
      tags: {includes: []},
      type: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/projects';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"attributes":{"criticality":[],"environment":[],"lifecycle":[]},"isMonitored":false,"name":"","origin":"","tags":{"includes":[]},"type":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/projects',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "filters": {\n    "attributes": {\n      "criticality": [],\n      "environment": [],\n      "lifecycle": []\n    },\n    "isMonitored": false,\n    "name": "",\n    "origin": "",\n    "tags": {\n      "includes": []\n    },\n    "type": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"attributes\": {\n      \"criticality\": [],\n      \"environment\": [],\n      \"lifecycle\": []\n    },\n    \"isMonitored\": false,\n    \"name\": \"\",\n    \"origin\": \"\",\n    \"tags\": {\n      \"includes\": []\n    },\n    \"type\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/projects")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/projects',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  filters: {
    attributes: {criticality: [], environment: [], lifecycle: []},
    isMonitored: false,
    name: '',
    origin: '',
    tags: {includes: []},
    type: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/projects',
  headers: {'content-type': 'application/json'},
  body: {
    filters: {
      attributes: {criticality: [], environment: [], lifecycle: []},
      isMonitored: false,
      name: '',
      origin: '',
      tags: {includes: []},
      type: ''
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/projects');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  filters: {
    attributes: {
      criticality: [],
      environment: [],
      lifecycle: []
    },
    isMonitored: false,
    name: '',
    origin: '',
    tags: {
      includes: []
    },
    type: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/projects',
  headers: {'content-type': 'application/json'},
  data: {
    filters: {
      attributes: {criticality: [], environment: [], lifecycle: []},
      isMonitored: false,
      name: '',
      origin: '',
      tags: {includes: []},
      type: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/projects';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"attributes":{"criticality":[],"environment":[],"lifecycle":[]},"isMonitored":false,"name":"","origin":"","tags":{"includes":[]},"type":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"filters": @{ @"attributes": @{ @"criticality": @[  ], @"environment": @[  ], @"lifecycle": @[  ] }, @"isMonitored": @NO, @"name": @"", @"origin": @"", @"tags": @{ @"includes": @[  ] }, @"type": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/projects"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/projects" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"filters\": {\n    \"attributes\": {\n      \"criticality\": [],\n      \"environment\": [],\n      \"lifecycle\": []\n    },\n    \"isMonitored\": false,\n    \"name\": \"\",\n    \"origin\": \"\",\n    \"tags\": {\n      \"includes\": []\n    },\n    \"type\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/projects",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'filters' => [
        'attributes' => [
                'criticality' => [
                                
                ],
                'environment' => [
                                
                ],
                'lifecycle' => [
                                
                ]
        ],
        'isMonitored' => null,
        'name' => '',
        'origin' => '',
        'tags' => [
                'includes' => [
                                
                ]
        ],
        'type' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/projects', [
  'body' => '{
  "filters": {
    "attributes": {
      "criticality": [],
      "environment": [],
      "lifecycle": []
    },
    "isMonitored": false,
    "name": "",
    "origin": "",
    "tags": {
      "includes": []
    },
    "type": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/projects');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'filters' => [
    'attributes' => [
        'criticality' => [
                
        ],
        'environment' => [
                
        ],
        'lifecycle' => [
                
        ]
    ],
    'isMonitored' => null,
    'name' => '',
    'origin' => '',
    'tags' => [
        'includes' => [
                
        ]
    ],
    'type' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'filters' => [
    'attributes' => [
        'criticality' => [
                
        ],
        'environment' => [
                
        ],
        'lifecycle' => [
                
        ]
    ],
    'isMonitored' => null,
    'name' => '',
    'origin' => '',
    'tags' => [
        'includes' => [
                
        ]
    ],
    'type' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/projects');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/projects' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "attributes": {
      "criticality": [],
      "environment": [],
      "lifecycle": []
    },
    "isMonitored": false,
    "name": "",
    "origin": "",
    "tags": {
      "includes": []
    },
    "type": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/projects' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "attributes": {
      "criticality": [],
      "environment": [],
      "lifecycle": []
    },
    "isMonitored": false,
    "name": "",
    "origin": "",
    "tags": {
      "includes": []
    },
    "type": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"filters\": {\n    \"attributes\": {\n      \"criticality\": [],\n      \"environment\": [],\n      \"lifecycle\": []\n    },\n    \"isMonitored\": false,\n    \"name\": \"\",\n    \"origin\": \"\",\n    \"tags\": {\n      \"includes\": []\n    },\n    \"type\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/org/:orgId/projects", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/projects"

payload = { "filters": {
        "attributes": {
            "criticality": [],
            "environment": [],
            "lifecycle": []
        },
        "isMonitored": False,
        "name": "",
        "origin": "",
        "tags": { "includes": [] },
        "type": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/projects"

payload <- "{\n  \"filters\": {\n    \"attributes\": {\n      \"criticality\": [],\n      \"environment\": [],\n      \"lifecycle\": []\n    },\n    \"isMonitored\": false,\n    \"name\": \"\",\n    \"origin\": \"\",\n    \"tags\": {\n      \"includes\": []\n    },\n    \"type\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/projects")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"filters\": {\n    \"attributes\": {\n      \"criticality\": [],\n      \"environment\": [],\n      \"lifecycle\": []\n    },\n    \"isMonitored\": false,\n    \"name\": \"\",\n    \"origin\": \"\",\n    \"tags\": {\n      \"includes\": []\n    },\n    \"type\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/org/:orgId/projects') do |req|
  req.body = "{\n  \"filters\": {\n    \"attributes\": {\n      \"criticality\": [],\n      \"environment\": [],\n      \"lifecycle\": []\n    },\n    \"isMonitored\": false,\n    \"name\": \"\",\n    \"origin\": \"\",\n    \"tags\": {\n      \"includes\": []\n    },\n    \"type\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/projects";

    let payload = json!({"filters": json!({
            "attributes": json!({
                "criticality": (),
                "environment": (),
                "lifecycle": ()
            }),
            "isMonitored": false,
            "name": "",
            "origin": "",
            "tags": json!({"includes": ()}),
            "type": ""
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/projects \
  --header 'content-type: application/json' \
  --data '{
  "filters": {
    "attributes": {
      "criticality": [],
      "environment": [],
      "lifecycle": []
    },
    "isMonitored": false,
    "name": "",
    "origin": "",
    "tags": {
      "includes": []
    },
    "type": ""
  }
}'
echo '{
  "filters": {
    "attributes": {
      "criticality": [],
      "environment": [],
      "lifecycle": []
    },
    "isMonitored": false,
    "name": "",
    "origin": "",
    "tags": {
      "includes": []
    },
    "type": ""
  }
}' |  \
  http POST {{baseUrl}}/org/:orgId/projects \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "filters": {\n    "attributes": {\n      "criticality": [],\n      "environment": [],\n      "lifecycle": []\n    },\n    "isMonitored": false,\n    "name": "",\n    "origin": "",\n    "tags": {\n      "includes": []\n    },\n    "type": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/projects
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["filters": [
    "attributes": [
      "criticality": [],
      "environment": [],
      "lifecycle": []
    ],
    "isMonitored": false,
    "name": "",
    "origin": "",
    "tags": ["includes": []],
    "type": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/projects")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "org": {
    "id": "689ce7f9-7943-4a71-b704-2ba575f01089",
    "name": "defaultOrg"
  },
  "projects": [
    {
      "branch": "master",
      "created": "2018-10-29T09:50:54.014Z",
      "id": "6d5813be-7e6d-4ab8-80c2-1e3e2a454545",
      "importingUser": {
        "email": "example-user@snyk.io",
        "id": "e713cf94-bb02-4ea0-89d9-613cce0caed2",
        "name": "example-user@snyk.io",
        "username": "exampleUser"
      },
      "isMonitored": true,
      "issueCountsBySeverity": {
        "critical": 3,
        "high": 10,
        "low": 8,
        "medium": 15
      },
      "lastTestedDate": "2019-02-05T06:21:00.000Z",
      "name": "atokeneduser/goof",
      "origin": "cli",
      "owner": {
        "email": "example-user@snyk.io",
        "id": "e713cf94-bb02-4ea0-89d9-613cce0caed2",
        "name": "example-user@snyk.io",
        "username": "exampleUser"
      },
      "readOnly": false,
      "remoteRepoUrl": "https://github.com/snyk/goof.git",
      "tags": [
        {
          "key": "example-tag-key",
          "value": "example-tag-value"
        }
      ],
      "targetReference": "master",
      "testFrequency": "daily",
      "totalDependencies": 438,
      "type": "npm"
    },
    {
      "branch": "master",
      "created": "2018-10-29T09:50:54.014Z",
      "id": "af127b96-6966-46c1-826b-2e79ac49bbd9",
      "importingUser": {
        "email": "example-user@snyk.io",
        "id": "e713cf94-bb02-4ea0-89d9-613cce0caed2",
        "name": "example-user@snyk.io",
        "username": "exampleUser"
      },
      "isMonitored": false,
      "issueCountsBySeverity": {
        "critical": 10,
        "high": 3,
        "low": 8,
        "medium": 21
      },
      "lastTestedDate": "2019-02-05T07:01:00.000Z",
      "name": "atokeneduser/clojure",
      "origin": "github",
      "owner": {
        "email": "example-user2@snyk.io",
        "id": "42ce0e0f-6288-4874-9266-ef799e7f31bb",
        "name": "example-user2@snyk.io",
        "username": "exampleUser2"
      },
      "readOnly": false,
      "remoteRepoUrl": "https://github.com/clojure/clojure.git",
      "tags": [
        {
          "key": "example-tag-key",
          "value": "example-tag-value"
        }
      ],
      "targetReference": "master",
      "testFrequency": "daily",
      "totalDependencies": 42,
      "type": "maven"
    },
    {
      "branch": "master",
      "created": "2019-02-04T08:54:07.704Z",
      "id": "f6c8339d-57e1-4d64-90c1-81af0e811f7e",
      "imageId": "sha256:caf27325b298a6730837023a8a342699c8b7b388b8d878966b064a1320043019",
      "imageTag": "latest",
      "importingUser": null,
      "isMonitored": false,
      "issueCountsBySeverity": {
        "critical": 0,
        "high": 0,
        "low": 0,
        "medium": 0
      },
      "lastTestedDate": "2019-02-05T08:54:07.704Z",
      "name": "docker-image|alpine",
      "origin": "cli",
      "owner": null,
      "readOnly": false,
      "tags": [
        {
          "key": "example-tag-key",
          "value": "example-tag-value"
        }
      ],
      "targetReference": "master",
      "testFrequency": "daily",
      "totalDependencies": 14,
      "type": "apk"
    }
  ]
}
GET List project settings
{{baseUrl}}/org/:orgId/project/:projectId/settings
QUERY PARAMS

orgId
projectId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/settings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/project/:projectId/settings")
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/settings"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/settings"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/settings");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/settings"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/project/:projectId/settings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/project/:projectId/settings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/settings"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/settings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/project/:projectId/settings")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/project/:projectId/settings');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/settings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/settings';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/settings',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/settings")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/settings',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/settings'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/project/:projectId/settings');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/settings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/settings';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/settings"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/settings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/settings",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/project/:projectId/settings');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/settings');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/settings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/settings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/settings' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/project/:projectId/settings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/settings"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/settings"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/settings")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/project/:projectId/settings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/settings";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/project/:projectId/settings
http GET {{baseUrl}}/org/:orgId/project/:projectId/settings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/settings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/settings")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [
    "tap",
    "ava"
  ],
  "autoDepUpgradeLimit": 2,
  "autoDepUpgradeMinAge": 21,
  "autoRemediationPrs": {
    "backlogPrsEnabled": false,
    "freshPrsEnabled": true,
    "usePatchRemediation": true
  },
  "pullRequestAssignment": {
    "assignees": [
      "username"
    ],
    "enabled": true,
    "type": "manual"
  },
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": true,
  "pullRequestTestEnabled": true
}
PUT Move project to a different organization
{{baseUrl}}/org/:orgId/project/:projectId/move
QUERY PARAMS

orgId
projectId
BODY json

{
  "targetOrgId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/move");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"targetOrgId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/org/:orgId/project/:projectId/move" {:content-type :json
                                                                              :form-params {:targetOrgId ""}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/move"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"targetOrgId\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/move"),
    Content = new StringContent("{\n  \"targetOrgId\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/move");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"targetOrgId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/move"

	payload := strings.NewReader("{\n  \"targetOrgId\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/org/:orgId/project/:projectId/move HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 23

{
  "targetOrgId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/org/:orgId/project/:projectId/move")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"targetOrgId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/move"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"targetOrgId\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"targetOrgId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/move")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/org/:orgId/project/:projectId/move")
  .header("content-type", "application/json")
  .body("{\n  \"targetOrgId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  targetOrgId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/org/:orgId/project/:projectId/move');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/move',
  headers: {'content-type': 'application/json'},
  data: {targetOrgId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/move';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"targetOrgId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/move',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "targetOrgId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"targetOrgId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/move")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/move',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({targetOrgId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/move',
  headers: {'content-type': 'application/json'},
  body: {targetOrgId: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/org/:orgId/project/:projectId/move');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  targetOrgId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/move',
  headers: {'content-type': 'application/json'},
  data: {targetOrgId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/move';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"targetOrgId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"targetOrgId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/move"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/move" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"targetOrgId\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/move",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'targetOrgId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/org/:orgId/project/:projectId/move', [
  'body' => '{
  "targetOrgId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/move');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'targetOrgId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'targetOrgId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/move');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/move' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "targetOrgId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/move' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "targetOrgId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"targetOrgId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/org/:orgId/project/:projectId/move", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/move"

payload = { "targetOrgId": "" }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/move"

payload <- "{\n  \"targetOrgId\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/move")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"targetOrgId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/org/:orgId/project/:projectId/move') do |req|
  req.body = "{\n  \"targetOrgId\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/move";

    let payload = json!({"targetOrgId": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/org/:orgId/project/:projectId/move \
  --header 'content-type: application/json' \
  --data '{
  "targetOrgId": ""
}'
echo '{
  "targetOrgId": ""
}' |  \
  http PUT {{baseUrl}}/org/:orgId/project/:projectId/move \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "targetOrgId": ""\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/move
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["targetOrgId": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/move")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "destinationOrg": "4a18d42f-0706-4ad0-b127-24078731fbed",
  "movedProject": "463c1ee5-31bc-428c-b451-b79a3270db08",
  "originOrg": "4a18d42f-0706-4ad0-b127-24078731fbed"
}
POST Remove a tag from a project
{{baseUrl}}/org/:orgId/project/:projectId/tags/remove
QUERY PARAMS

orgId
projectId
BODY json

{
  "key": "",
  "value": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/tags/remove");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"key\": \"\",\n  \"value\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/project/:projectId/tags/remove" {:content-type :json
                                                                                      :form-params {:key ""
                                                                                                    :value ""}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/tags/remove"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"key\": \"\",\n  \"value\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/tags/remove"),
    Content = new StringContent("{\n  \"key\": \"\",\n  \"value\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/tags/remove");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"key\": \"\",\n  \"value\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/tags/remove"

	payload := strings.NewReader("{\n  \"key\": \"\",\n  \"value\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/project/:projectId/tags/remove HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 30

{
  "key": "",
  "value": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/project/:projectId/tags/remove")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"key\": \"\",\n  \"value\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/tags/remove"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"key\": \"\",\n  \"value\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"key\": \"\",\n  \"value\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/tags/remove")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/project/:projectId/tags/remove")
  .header("content-type", "application/json")
  .body("{\n  \"key\": \"\",\n  \"value\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  key: '',
  value: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/project/:projectId/tags/remove');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/tags/remove',
  headers: {'content-type': 'application/json'},
  data: {key: '', value: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/tags/remove';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"key":"","value":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/tags/remove',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "key": "",\n  "value": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"key\": \"\",\n  \"value\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/tags/remove")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/tags/remove',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({key: '', value: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/tags/remove',
  headers: {'content-type': 'application/json'},
  body: {key: '', value: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/project/:projectId/tags/remove');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  key: '',
  value: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/tags/remove',
  headers: {'content-type': 'application/json'},
  data: {key: '', value: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/tags/remove';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"key":"","value":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"key": @"",
                              @"value": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/tags/remove"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/tags/remove" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"key\": \"\",\n  \"value\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/tags/remove",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'key' => '',
    'value' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/project/:projectId/tags/remove', [
  'body' => '{
  "key": "",
  "value": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/tags/remove');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'key' => '',
  'value' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'key' => '',
  'value' => ''
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/tags/remove');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/tags/remove' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "key": "",
  "value": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/tags/remove' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "key": "",
  "value": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"key\": \"\",\n  \"value\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/org/:orgId/project/:projectId/tags/remove", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/tags/remove"

payload = {
    "key": "",
    "value": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/tags/remove"

payload <- "{\n  \"key\": \"\",\n  \"value\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/tags/remove")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"key\": \"\",\n  \"value\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/org/:orgId/project/:projectId/tags/remove') do |req|
  req.body = "{\n  \"key\": \"\",\n  \"value\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/tags/remove";

    let payload = json!({
        "key": "",
        "value": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/project/:projectId/tags/remove \
  --header 'content-type: application/json' \
  --data '{
  "key": "",
  "value": ""
}'
echo '{
  "key": "",
  "value": ""
}' |  \
  http POST {{baseUrl}}/org/:orgId/project/:projectId/tags/remove \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "key": "",\n  "value": ""\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/tags/remove
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "key": "",
  "value": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/tags/remove")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "tags": [
    {
      "key": "example-tag-key",
      "value": "example-tag-value"
    }
  ]
}
PUT Replace ignores
{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId
QUERY PARAMS

orgId
projectId
issueId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"

response = HTTP::Client.put url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId");
var request = new RestRequest("", Method.Put);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"

	req, _ := http.NewRequest("PUT", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/org/:orgId/project/:projectId/ignore/:issueId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"))
    .method("PUT", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
  .put(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/ignore/:issueId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/org/:orgId/project/:projectId/ignore/:issueId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"

response <- VERB("PUT", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.put('/baseUrl/org/:orgId/project/:projectId/ignore/:issueId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId
http PUT {{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

[
  {
    "*": {
      "created": "2017-10-31T11:24:00.932Z",
      "disregardIfFixable": true,
      "ignoredBy": {
        "email": "jbloggs@gmail.com",
        "id": "a3952187-0d8e-45d8-9aa2-036642857b4f",
        "name": "Joe Bloggs"
      },
      "reason": "No fix available",
      "reasonType": "temporary-ignore"
    }
  }
]
GET Retrieve a single project
{{baseUrl}}/org/:orgId/project/:projectId
QUERY PARAMS

orgId
projectId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/project/:projectId")
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/project/:projectId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/project/:projectId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/project/:projectId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/project/:projectId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/project/:projectId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/project/:projectId');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/project/:projectId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/project/:projectId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/project/:projectId
http GET {{baseUrl}}/org/:orgId/project/:projectId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "attributes": {
    "criticality": [
      "high"
    ],
    "environment": [
      "backend"
    ],
    "lifecycle": [
      "development"
    ]
  },
  "branch": null,
  "browseUrl": "https://app.snyk.io/org/4a18d42f-0706-4ad0-b127-24078731fbed/project/af137b96-6966-46c1-826b-2e79ac49bbd9",
  "created": "2018-10-29T09:50:54.014Z",
  "hostname": null,
  "id": "af137b96-6966-46c1-826b-2e79ac49bbd9",
  "imageBaseImage": "alpine:3",
  "imageCluster": "Production",
  "imageId": "sha256:caf27325b298a6730837023a8a342699c8b7b388b8d878966b064a1320043019",
  "imagePlatform": "linux/arm64",
  "imageTag": "latest",
  "importingUser": {
    "email": "example-user@snyk.io",
    "id": "e713cf94-bb02-4ea0-89d9-613cce0caed2",
    "name": "example-user@snyk.io",
    "username": "exampleUser"
  },
  "isMonitored": false,
  "issueCountsBySeverity": {
    "critical": 3,
    "high": 1,
    "low": 13,
    "medium": 8
  },
  "lastTestedDate": "2019-02-05T08:54:07.704Z",
  "name": "snyk/goof",
  "origin": "github",
  "owner": null,
  "readOnly": false,
  "remediation": {
    "patch": {},
    "pin": {},
    "upgrade": {}
  },
  "remoteRepoUrl": "https://github.com/snyk/goof.git",
  "tags": [
    {
      "key": "example-tag-key",
      "value": "example-tag-value"
    }
  ],
  "targetReference": null,
  "testFrequency": "daily",
  "totalDependencies": 42,
  "type": "maven"
}
GET Retrieve ignore
{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId
QUERY PARAMS

orgId
projectId
issueId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/project/:projectId/ignore/:issueId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/ignore/:issueId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/project/:projectId/ignore/:issueId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/project/:projectId/ignore/:issueId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId
http GET {{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/ignore/:issueId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

[
  {
    "*": {
      "created": "2017-10-31T11:24:00.932Z",
      "disregardIfFixable": true,
      "ignoredBy": {
        "email": "jbloggs@gmail.com",
        "id": "a3952187-0d8e-45d8-9aa2-036642857b4f",
        "name": "Joe Bloggs"
      },
      "reason": "No fix available",
      "reasonType": "temporary-ignore"
    }
  }
]
PUT Update a project
{{baseUrl}}/org/:orgId/project/:projectId
QUERY PARAMS

orgId
projectId
BODY json

{
  "branch": "",
  "owner": {
    "id": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"branch\": \"\",\n  \"owner\": {\n    \"id\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/org/:orgId/project/:projectId" {:content-type :json
                                                                         :form-params {:branch ""
                                                                                       :owner {:id ""}}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"branch\": \"\",\n  \"owner\": {\n    \"id\": \"\"\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId"),
    Content = new StringContent("{\n  \"branch\": \"\",\n  \"owner\": {\n    \"id\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"branch\": \"\",\n  \"owner\": {\n    \"id\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId"

	payload := strings.NewReader("{\n  \"branch\": \"\",\n  \"owner\": {\n    \"id\": \"\"\n  }\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/org/:orgId/project/:projectId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 49

{
  "branch": "",
  "owner": {
    "id": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/org/:orgId/project/:projectId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"branch\": \"\",\n  \"owner\": {\n    \"id\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"branch\": \"\",\n  \"owner\": {\n    \"id\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"branch\": \"\",\n  \"owner\": {\n    \"id\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/org/:orgId/project/:projectId")
  .header("content-type", "application/json")
  .body("{\n  \"branch\": \"\",\n  \"owner\": {\n    \"id\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  branch: '',
  owner: {
    id: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/org/:orgId/project/:projectId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/project/:projectId',
  headers: {'content-type': 'application/json'},
  data: {branch: '', owner: {id: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"branch":"","owner":{"id":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "branch": "",\n  "owner": {\n    "id": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"branch\": \"\",\n  \"owner\": {\n    \"id\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({branch: '', owner: {id: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/project/:projectId',
  headers: {'content-type': 'application/json'},
  body: {branch: '', owner: {id: ''}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/org/:orgId/project/:projectId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  branch: '',
  owner: {
    id: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/project/:projectId',
  headers: {'content-type': 'application/json'},
  data: {branch: '', owner: {id: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"branch":"","owner":{"id":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"branch": @"",
                              @"owner": @{ @"id": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"branch\": \"\",\n  \"owner\": {\n    \"id\": \"\"\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'branch' => '',
    'owner' => [
        'id' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/org/:orgId/project/:projectId', [
  'body' => '{
  "branch": "",
  "owner": {
    "id": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'branch' => '',
  'owner' => [
    'id' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'branch' => '',
  'owner' => [
    'id' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "branch": "",
  "owner": {
    "id": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "branch": "",
  "owner": {
    "id": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"branch\": \"\",\n  \"owner\": {\n    \"id\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/org/:orgId/project/:projectId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId"

payload = {
    "branch": "",
    "owner": { "id": "" }
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId"

payload <- "{\n  \"branch\": \"\",\n  \"owner\": {\n    \"id\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"branch\": \"\",\n  \"owner\": {\n    \"id\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/org/:orgId/project/:projectId') do |req|
  req.body = "{\n  \"branch\": \"\",\n  \"owner\": {\n    \"id\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId";

    let payload = json!({
        "branch": "",
        "owner": json!({"id": ""})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/org/:orgId/project/:projectId \
  --header 'content-type: application/json' \
  --data '{
  "branch": "",
  "owner": {
    "id": ""
  }
}'
echo '{
  "branch": "",
  "owner": {
    "id": ""
  }
}' |  \
  http PUT {{baseUrl}}/org/:orgId/project/:projectId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "branch": "",\n  "owner": {\n    "id": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "branch": "",
  "owner": ["id": ""]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "attributes": {
    "criticality": [
      "high"
    ],
    "environment": [
      "backend"
    ],
    "lifecycle": [
      "development"
    ]
  },
  "branch": null,
  "browseUrl": "https://app.snyk.io/org/4a18d42f-0706-4ad0-b127-24078731fbed/project/af137b96-6966-46c1-826b-2e79ac49bbd9",
  "created": "2018-10-29T09:50:54.014Z",
  "hostname": null,
  "id": "af137b96-6966-46c1-826b-2e79ac49bbd9",
  "imageBaseImage": "alpine:3",
  "imageCluster": "Production",
  "imageId": "sha256:caf27325b298a6730837023a8a342699c8b7b388b8d878966b064a1320043019",
  "imagePlatform": "linux/arm64",
  "imageTag": "latest",
  "importingUser": {
    "email": "example-user@snyk.io",
    "id": "e713cf94-bb02-4ea0-89d9-613cce0caed2",
    "name": "example-user@snyk.io",
    "username": "exampleUser"
  },
  "isMonitored": false,
  "issueCountsBySeverity": {
    "critical": 3,
    "high": 1,
    "low": 13,
    "medium": 8
  },
  "lastTestedDate": "2019-02-05T08:54:07.704Z",
  "name": "snyk/goof",
  "origin": "github",
  "owner": null,
  "readOnly": false,
  "remediation": {
    "patch": {},
    "pin": {},
    "upgrade": {}
  },
  "remoteRepoUrl": "https://github.com/snyk/goof.git",
  "tags": [
    {
      "key": "example-tag-key",
      "value": "example-tag-value"
    }
  ],
  "targetReference": null,
  "testFrequency": "daily",
  "totalDependencies": 42,
  "type": "maven"
}
PUT Update project settings
{{baseUrl}}/org/:orgId/project/:projectId/settings
QUERY PARAMS

orgId
projectId
BODY json

{
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [],
  "autoDepUpgradeLimit": "",
  "autoDepUpgradeMinAge": "",
  "autoRemediationPrs": {
    "backlogPrsEnabled": false,
    "freshPrsEnabled": false,
    "usePatchRemediation": false
  },
  "pullRequestAssignment": {
    "assignees": [],
    "enabled": false,
    "type": ""
  },
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": false,
  "pullRequestTestEnabled": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/project/:projectId/settings");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/org/:orgId/project/:projectId/settings" {:content-type :json
                                                                                  :form-params {:autoDepUpgradeEnabled false
                                                                                                :autoDepUpgradeIgnoredDependencies []
                                                                                                :autoDepUpgradeLimit ""
                                                                                                :autoDepUpgradeMinAge ""
                                                                                                :autoRemediationPrs {:backlogPrsEnabled false
                                                                                                                     :freshPrsEnabled false
                                                                                                                     :usePatchRemediation false}
                                                                                                :pullRequestAssignment {:assignees []
                                                                                                                        :enabled false
                                                                                                                        :type ""}
                                                                                                :pullRequestFailOnAnyVulns false
                                                                                                :pullRequestFailOnlyForHighSeverity false
                                                                                                :pullRequestTestEnabled false}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/project/:projectId/settings"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/project/:projectId/settings"),
    Content = new StringContent("{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/project/:projectId/settings");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/project/:projectId/settings"

	payload := strings.NewReader("{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/org/:orgId/project/:projectId/settings HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 476

{
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [],
  "autoDepUpgradeLimit": "",
  "autoDepUpgradeMinAge": "",
  "autoRemediationPrs": {
    "backlogPrsEnabled": false,
    "freshPrsEnabled": false,
    "usePatchRemediation": false
  },
  "pullRequestAssignment": {
    "assignees": [],
    "enabled": false,
    "type": ""
  },
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": false,
  "pullRequestTestEnabled": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/org/:orgId/project/:projectId/settings")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/project/:projectId/settings"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/settings")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/org/:orgId/project/:projectId/settings")
  .header("content-type", "application/json")
  .body("{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}")
  .asString();
const data = JSON.stringify({
  autoDepUpgradeEnabled: false,
  autoDepUpgradeIgnoredDependencies: [],
  autoDepUpgradeLimit: '',
  autoDepUpgradeMinAge: '',
  autoRemediationPrs: {
    backlogPrsEnabled: false,
    freshPrsEnabled: false,
    usePatchRemediation: false
  },
  pullRequestAssignment: {
    assignees: [],
    enabled: false,
    type: ''
  },
  pullRequestFailOnAnyVulns: false,
  pullRequestFailOnlyForHighSeverity: false,
  pullRequestTestEnabled: false
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/org/:orgId/project/:projectId/settings');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/settings',
  headers: {'content-type': 'application/json'},
  data: {
    autoDepUpgradeEnabled: false,
    autoDepUpgradeIgnoredDependencies: [],
    autoDepUpgradeLimit: '',
    autoDepUpgradeMinAge: '',
    autoRemediationPrs: {backlogPrsEnabled: false, freshPrsEnabled: false, usePatchRemediation: false},
    pullRequestAssignment: {assignees: [], enabled: false, type: ''},
    pullRequestFailOnAnyVulns: false,
    pullRequestFailOnlyForHighSeverity: false,
    pullRequestTestEnabled: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/project/:projectId/settings';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"autoDepUpgradeEnabled":false,"autoDepUpgradeIgnoredDependencies":[],"autoDepUpgradeLimit":"","autoDepUpgradeMinAge":"","autoRemediationPrs":{"backlogPrsEnabled":false,"freshPrsEnabled":false,"usePatchRemediation":false},"pullRequestAssignment":{"assignees":[],"enabled":false,"type":""},"pullRequestFailOnAnyVulns":false,"pullRequestFailOnlyForHighSeverity":false,"pullRequestTestEnabled":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/project/:projectId/settings',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "autoDepUpgradeEnabled": false,\n  "autoDepUpgradeIgnoredDependencies": [],\n  "autoDepUpgradeLimit": "",\n  "autoDepUpgradeMinAge": "",\n  "autoRemediationPrs": {\n    "backlogPrsEnabled": false,\n    "freshPrsEnabled": false,\n    "usePatchRemediation": false\n  },\n  "pullRequestAssignment": {\n    "assignees": [],\n    "enabled": false,\n    "type": ""\n  },\n  "pullRequestFailOnAnyVulns": false,\n  "pullRequestFailOnlyForHighSeverity": false,\n  "pullRequestTestEnabled": false\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/project/:projectId/settings")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/project/:projectId/settings',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  autoDepUpgradeEnabled: false,
  autoDepUpgradeIgnoredDependencies: [],
  autoDepUpgradeLimit: '',
  autoDepUpgradeMinAge: '',
  autoRemediationPrs: {backlogPrsEnabled: false, freshPrsEnabled: false, usePatchRemediation: false},
  pullRequestAssignment: {assignees: [], enabled: false, type: ''},
  pullRequestFailOnAnyVulns: false,
  pullRequestFailOnlyForHighSeverity: false,
  pullRequestTestEnabled: false
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/settings',
  headers: {'content-type': 'application/json'},
  body: {
    autoDepUpgradeEnabled: false,
    autoDepUpgradeIgnoredDependencies: [],
    autoDepUpgradeLimit: '',
    autoDepUpgradeMinAge: '',
    autoRemediationPrs: {backlogPrsEnabled: false, freshPrsEnabled: false, usePatchRemediation: false},
    pullRequestAssignment: {assignees: [], enabled: false, type: ''},
    pullRequestFailOnAnyVulns: false,
    pullRequestFailOnlyForHighSeverity: false,
    pullRequestTestEnabled: false
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/org/:orgId/project/:projectId/settings');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  autoDepUpgradeEnabled: false,
  autoDepUpgradeIgnoredDependencies: [],
  autoDepUpgradeLimit: '',
  autoDepUpgradeMinAge: '',
  autoRemediationPrs: {
    backlogPrsEnabled: false,
    freshPrsEnabled: false,
    usePatchRemediation: false
  },
  pullRequestAssignment: {
    assignees: [],
    enabled: false,
    type: ''
  },
  pullRequestFailOnAnyVulns: false,
  pullRequestFailOnlyForHighSeverity: false,
  pullRequestTestEnabled: false
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/org/:orgId/project/:projectId/settings',
  headers: {'content-type': 'application/json'},
  data: {
    autoDepUpgradeEnabled: false,
    autoDepUpgradeIgnoredDependencies: [],
    autoDepUpgradeLimit: '',
    autoDepUpgradeMinAge: '',
    autoRemediationPrs: {backlogPrsEnabled: false, freshPrsEnabled: false, usePatchRemediation: false},
    pullRequestAssignment: {assignees: [], enabled: false, type: ''},
    pullRequestFailOnAnyVulns: false,
    pullRequestFailOnlyForHighSeverity: false,
    pullRequestTestEnabled: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/project/:projectId/settings';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"autoDepUpgradeEnabled":false,"autoDepUpgradeIgnoredDependencies":[],"autoDepUpgradeLimit":"","autoDepUpgradeMinAge":"","autoRemediationPrs":{"backlogPrsEnabled":false,"freshPrsEnabled":false,"usePatchRemediation":false},"pullRequestAssignment":{"assignees":[],"enabled":false,"type":""},"pullRequestFailOnAnyVulns":false,"pullRequestFailOnlyForHighSeverity":false,"pullRequestTestEnabled":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"autoDepUpgradeEnabled": @NO,
                              @"autoDepUpgradeIgnoredDependencies": @[  ],
                              @"autoDepUpgradeLimit": @"",
                              @"autoDepUpgradeMinAge": @"",
                              @"autoRemediationPrs": @{ @"backlogPrsEnabled": @NO, @"freshPrsEnabled": @NO, @"usePatchRemediation": @NO },
                              @"pullRequestAssignment": @{ @"assignees": @[  ], @"enabled": @NO, @"type": @"" },
                              @"pullRequestFailOnAnyVulns": @NO,
                              @"pullRequestFailOnlyForHighSeverity": @NO,
                              @"pullRequestTestEnabled": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/project/:projectId/settings"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/project/:projectId/settings" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/project/:projectId/settings",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'autoDepUpgradeEnabled' => null,
    'autoDepUpgradeIgnoredDependencies' => [
        
    ],
    'autoDepUpgradeLimit' => '',
    'autoDepUpgradeMinAge' => '',
    'autoRemediationPrs' => [
        'backlogPrsEnabled' => null,
        'freshPrsEnabled' => null,
        'usePatchRemediation' => null
    ],
    'pullRequestAssignment' => [
        'assignees' => [
                
        ],
        'enabled' => null,
        'type' => ''
    ],
    'pullRequestFailOnAnyVulns' => null,
    'pullRequestFailOnlyForHighSeverity' => null,
    'pullRequestTestEnabled' => null
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/org/:orgId/project/:projectId/settings', [
  'body' => '{
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [],
  "autoDepUpgradeLimit": "",
  "autoDepUpgradeMinAge": "",
  "autoRemediationPrs": {
    "backlogPrsEnabled": false,
    "freshPrsEnabled": false,
    "usePatchRemediation": false
  },
  "pullRequestAssignment": {
    "assignees": [],
    "enabled": false,
    "type": ""
  },
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": false,
  "pullRequestTestEnabled": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/project/:projectId/settings');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'autoDepUpgradeEnabled' => null,
  'autoDepUpgradeIgnoredDependencies' => [
    
  ],
  'autoDepUpgradeLimit' => '',
  'autoDepUpgradeMinAge' => '',
  'autoRemediationPrs' => [
    'backlogPrsEnabled' => null,
    'freshPrsEnabled' => null,
    'usePatchRemediation' => null
  ],
  'pullRequestAssignment' => [
    'assignees' => [
        
    ],
    'enabled' => null,
    'type' => ''
  ],
  'pullRequestFailOnAnyVulns' => null,
  'pullRequestFailOnlyForHighSeverity' => null,
  'pullRequestTestEnabled' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'autoDepUpgradeEnabled' => null,
  'autoDepUpgradeIgnoredDependencies' => [
    
  ],
  'autoDepUpgradeLimit' => '',
  'autoDepUpgradeMinAge' => '',
  'autoRemediationPrs' => [
    'backlogPrsEnabled' => null,
    'freshPrsEnabled' => null,
    'usePatchRemediation' => null
  ],
  'pullRequestAssignment' => [
    'assignees' => [
        
    ],
    'enabled' => null,
    'type' => ''
  ],
  'pullRequestFailOnAnyVulns' => null,
  'pullRequestFailOnlyForHighSeverity' => null,
  'pullRequestTestEnabled' => null
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/project/:projectId/settings');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/project/:projectId/settings' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [],
  "autoDepUpgradeLimit": "",
  "autoDepUpgradeMinAge": "",
  "autoRemediationPrs": {
    "backlogPrsEnabled": false,
    "freshPrsEnabled": false,
    "usePatchRemediation": false
  },
  "pullRequestAssignment": {
    "assignees": [],
    "enabled": false,
    "type": ""
  },
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": false,
  "pullRequestTestEnabled": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/project/:projectId/settings' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [],
  "autoDepUpgradeLimit": "",
  "autoDepUpgradeMinAge": "",
  "autoRemediationPrs": {
    "backlogPrsEnabled": false,
    "freshPrsEnabled": false,
    "usePatchRemediation": false
  },
  "pullRequestAssignment": {
    "assignees": [],
    "enabled": false,
    "type": ""
  },
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": false,
  "pullRequestTestEnabled": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/org/:orgId/project/:projectId/settings", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/project/:projectId/settings"

payload = {
    "autoDepUpgradeEnabled": False,
    "autoDepUpgradeIgnoredDependencies": [],
    "autoDepUpgradeLimit": "",
    "autoDepUpgradeMinAge": "",
    "autoRemediationPrs": {
        "backlogPrsEnabled": False,
        "freshPrsEnabled": False,
        "usePatchRemediation": False
    },
    "pullRequestAssignment": {
        "assignees": [],
        "enabled": False,
        "type": ""
    },
    "pullRequestFailOnAnyVulns": False,
    "pullRequestFailOnlyForHighSeverity": False,
    "pullRequestTestEnabled": False
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/project/:projectId/settings"

payload <- "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/project/:projectId/settings")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/org/:orgId/project/:projectId/settings') do |req|
  req.body = "{\n  \"autoDepUpgradeEnabled\": false,\n  \"autoDepUpgradeIgnoredDependencies\": [],\n  \"autoDepUpgradeLimit\": \"\",\n  \"autoDepUpgradeMinAge\": \"\",\n  \"autoRemediationPrs\": {\n    \"backlogPrsEnabled\": false,\n    \"freshPrsEnabled\": false,\n    \"usePatchRemediation\": false\n  },\n  \"pullRequestAssignment\": {\n    \"assignees\": [],\n    \"enabled\": false,\n    \"type\": \"\"\n  },\n  \"pullRequestFailOnAnyVulns\": false,\n  \"pullRequestFailOnlyForHighSeverity\": false,\n  \"pullRequestTestEnabled\": false\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/project/:projectId/settings";

    let payload = json!({
        "autoDepUpgradeEnabled": false,
        "autoDepUpgradeIgnoredDependencies": (),
        "autoDepUpgradeLimit": "",
        "autoDepUpgradeMinAge": "",
        "autoRemediationPrs": json!({
            "backlogPrsEnabled": false,
            "freshPrsEnabled": false,
            "usePatchRemediation": false
        }),
        "pullRequestAssignment": json!({
            "assignees": (),
            "enabled": false,
            "type": ""
        }),
        "pullRequestFailOnAnyVulns": false,
        "pullRequestFailOnlyForHighSeverity": false,
        "pullRequestTestEnabled": false
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/org/:orgId/project/:projectId/settings \
  --header 'content-type: application/json' \
  --data '{
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [],
  "autoDepUpgradeLimit": "",
  "autoDepUpgradeMinAge": "",
  "autoRemediationPrs": {
    "backlogPrsEnabled": false,
    "freshPrsEnabled": false,
    "usePatchRemediation": false
  },
  "pullRequestAssignment": {
    "assignees": [],
    "enabled": false,
    "type": ""
  },
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": false,
  "pullRequestTestEnabled": false
}'
echo '{
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [],
  "autoDepUpgradeLimit": "",
  "autoDepUpgradeMinAge": "",
  "autoRemediationPrs": {
    "backlogPrsEnabled": false,
    "freshPrsEnabled": false,
    "usePatchRemediation": false
  },
  "pullRequestAssignment": {
    "assignees": [],
    "enabled": false,
    "type": ""
  },
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": false,
  "pullRequestTestEnabled": false
}' |  \
  http PUT {{baseUrl}}/org/:orgId/project/:projectId/settings \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "autoDepUpgradeEnabled": false,\n  "autoDepUpgradeIgnoredDependencies": [],\n  "autoDepUpgradeLimit": "",\n  "autoDepUpgradeMinAge": "",\n  "autoRemediationPrs": {\n    "backlogPrsEnabled": false,\n    "freshPrsEnabled": false,\n    "usePatchRemediation": false\n  },\n  "pullRequestAssignment": {\n    "assignees": [],\n    "enabled": false,\n    "type": ""\n  },\n  "pullRequestFailOnAnyVulns": false,\n  "pullRequestFailOnlyForHighSeverity": false,\n  "pullRequestTestEnabled": false\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/project/:projectId/settings
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [],
  "autoDepUpgradeLimit": "",
  "autoDepUpgradeMinAge": "",
  "autoRemediationPrs": [
    "backlogPrsEnabled": false,
    "freshPrsEnabled": false,
    "usePatchRemediation": false
  ],
  "pullRequestAssignment": [
    "assignees": [],
    "enabled": false,
    "type": ""
  ],
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": false,
  "pullRequestTestEnabled": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/project/:projectId/settings")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "autoDepUpgradeEnabled": false,
  "autoDepUpgradeIgnoredDependencies": [
    "tap",
    "ava"
  ],
  "autoDepUpgradeLimit": 2,
  "autoDepUpgradeMinAge": 21,
  "autoRemediationPrs": {
    "backlogPrsEnabled": false,
    "freshPrsEnabled": true,
    "usePatchRemediation": false
  },
  "pullRequestAssignment": {
    "assignees": [
      "username"
    ],
    "enabled": true,
    "type": "manual"
  },
  "pullRequestFailOnAnyVulns": false,
  "pullRequestFailOnlyForHighSeverity": true,
  "pullRequestTestEnabled": true
}
POST Get issue counts
{{baseUrl}}/reporting/counts/issues
QUERY PARAMS

from
to
BODY json

{
  "filters": {
    "fixable": false,
    "ignored": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/reporting/counts/issues?from=&to=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/reporting/counts/issues" {:query-params {:from ""
                                                                                   :to ""}
                                                                    :content-type :json
                                                                    :form-params {:filters {:fixable false
                                                                                            :ignored false
                                                                                            :isPatchable false
                                                                                            :isPinnable false
                                                                                            :isUpgradable false
                                                                                            :languages []
                                                                                            :orgs ""
                                                                                            :patched false
                                                                                            :priorityScore {:max ""
                                                                                                            :min ""}
                                                                                            :projects ""
                                                                                            :severity []
                                                                                            :types []}}})
require "http/client"

url = "{{baseUrl}}/reporting/counts/issues?from=&to="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/reporting/counts/issues?from=&to="),
    Content = new StringContent("{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/reporting/counts/issues?from=&to=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/reporting/counts/issues?from=&to="

	payload := strings.NewReader("{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/reporting/counts/issues?from=&to= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 322

{
  "filters": {
    "fixable": false,
    "ignored": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/reporting/counts/issues?from=&to=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/reporting/counts/issues?from=&to="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/reporting/counts/issues?from=&to=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/reporting/counts/issues?from=&to=")
  .header("content-type", "application/json")
  .body("{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")
  .asString();
const data = JSON.stringify({
  filters: {
    fixable: false,
    ignored: false,
    isPatchable: false,
    isPinnable: false,
    isUpgradable: false,
    languages: [],
    orgs: '',
    patched: false,
    priorityScore: {
      max: '',
      min: ''
    },
    projects: '',
    severity: [],
    types: []
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/reporting/counts/issues?from=&to=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/counts/issues',
  params: {from: '', to: ''},
  headers: {'content-type': 'application/json'},
  data: {
    filters: {
      fixable: false,
      ignored: false,
      isPatchable: false,
      isPinnable: false,
      isUpgradable: false,
      languages: [],
      orgs: '',
      patched: false,
      priorityScore: {max: '', min: ''},
      projects: '',
      severity: [],
      types: []
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/reporting/counts/issues?from=&to=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"fixable":false,"ignored":false,"isPatchable":false,"isPinnable":false,"isUpgradable":false,"languages":[],"orgs":"","patched":false,"priorityScore":{"max":"","min":""},"projects":"","severity":[],"types":[]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/reporting/counts/issues?from=&to=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "filters": {\n    "fixable": false,\n    "ignored": false,\n    "isPatchable": false,\n    "isPinnable": false,\n    "isUpgradable": false,\n    "languages": [],\n    "orgs": "",\n    "patched": false,\n    "priorityScore": {\n      "max": "",\n      "min": ""\n    },\n    "projects": "",\n    "severity": [],\n    "types": []\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/reporting/counts/issues?from=&to=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/reporting/counts/issues?from=&to=',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  filters: {
    fixable: false,
    ignored: false,
    isPatchable: false,
    isPinnable: false,
    isUpgradable: false,
    languages: [],
    orgs: '',
    patched: false,
    priorityScore: {max: '', min: ''},
    projects: '',
    severity: [],
    types: []
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/counts/issues',
  qs: {from: '', to: ''},
  headers: {'content-type': 'application/json'},
  body: {
    filters: {
      fixable: false,
      ignored: false,
      isPatchable: false,
      isPinnable: false,
      isUpgradable: false,
      languages: [],
      orgs: '',
      patched: false,
      priorityScore: {max: '', min: ''},
      projects: '',
      severity: [],
      types: []
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/reporting/counts/issues');

req.query({
  from: '',
  to: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  filters: {
    fixable: false,
    ignored: false,
    isPatchable: false,
    isPinnable: false,
    isUpgradable: false,
    languages: [],
    orgs: '',
    patched: false,
    priorityScore: {
      max: '',
      min: ''
    },
    projects: '',
    severity: [],
    types: []
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/counts/issues',
  params: {from: '', to: ''},
  headers: {'content-type': 'application/json'},
  data: {
    filters: {
      fixable: false,
      ignored: false,
      isPatchable: false,
      isPinnable: false,
      isUpgradable: false,
      languages: [],
      orgs: '',
      patched: false,
      priorityScore: {max: '', min: ''},
      projects: '',
      severity: [],
      types: []
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/reporting/counts/issues?from=&to=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"fixable":false,"ignored":false,"isPatchable":false,"isPinnable":false,"isUpgradable":false,"languages":[],"orgs":"","patched":false,"priorityScore":{"max":"","min":""},"projects":"","severity":[],"types":[]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"filters": @{ @"fixable": @NO, @"ignored": @NO, @"isPatchable": @NO, @"isPinnable": @NO, @"isUpgradable": @NO, @"languages": @[  ], @"orgs": @"", @"patched": @NO, @"priorityScore": @{ @"max": @"", @"min": @"" }, @"projects": @"", @"severity": @[  ], @"types": @[  ] } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/reporting/counts/issues?from=&to="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/reporting/counts/issues?from=&to=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/reporting/counts/issues?from=&to=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'filters' => [
        'fixable' => null,
        'ignored' => null,
        'isPatchable' => null,
        'isPinnable' => null,
        'isUpgradable' => null,
        'languages' => [
                
        ],
        'orgs' => '',
        'patched' => null,
        'priorityScore' => [
                'max' => '',
                'min' => ''
        ],
        'projects' => '',
        'severity' => [
                
        ],
        'types' => [
                
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/reporting/counts/issues?from=&to=', [
  'body' => '{
  "filters": {
    "fixable": false,
    "ignored": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/reporting/counts/issues');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'from' => '',
  'to' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'filters' => [
    'fixable' => null,
    'ignored' => null,
    'isPatchable' => null,
    'isPinnable' => null,
    'isUpgradable' => null,
    'languages' => [
        
    ],
    'orgs' => '',
    'patched' => null,
    'priorityScore' => [
        'max' => '',
        'min' => ''
    ],
    'projects' => '',
    'severity' => [
        
    ],
    'types' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'filters' => [
    'fixable' => null,
    'ignored' => null,
    'isPatchable' => null,
    'isPinnable' => null,
    'isUpgradable' => null,
    'languages' => [
        
    ],
    'orgs' => '',
    'patched' => null,
    'priorityScore' => [
        'max' => '',
        'min' => ''
    ],
    'projects' => '',
    'severity' => [
        
    ],
    'types' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/reporting/counts/issues');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'from' => '',
  'to' => ''
]));

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/reporting/counts/issues?from=&to=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "fixable": false,
    "ignored": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/reporting/counts/issues?from=&to=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "fixable": false,
    "ignored": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/reporting/counts/issues?from=&to=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/reporting/counts/issues"

querystring = {"from":"","to":""}

payload = { "filters": {
        "fixable": False,
        "ignored": False,
        "isPatchable": False,
        "isPinnable": False,
        "isUpgradable": False,
        "languages": [],
        "orgs": "",
        "patched": False,
        "priorityScore": {
            "max": "",
            "min": ""
        },
        "projects": "",
        "severity": [],
        "types": []
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/reporting/counts/issues"

queryString <- list(
  from = "",
  to = ""
)

payload <- "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/reporting/counts/issues?from=&to=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/reporting/counts/issues') do |req|
  req.params['from'] = ''
  req.params['to'] = ''
  req.body = "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/reporting/counts/issues";

    let querystring = [
        ("from", ""),
        ("to", ""),
    ];

    let payload = json!({"filters": json!({
            "fixable": false,
            "ignored": false,
            "isPatchable": false,
            "isPinnable": false,
            "isUpgradable": false,
            "languages": (),
            "orgs": "",
            "patched": false,
            "priorityScore": json!({
                "max": "",
                "min": ""
            }),
            "projects": "",
            "severity": (),
            "types": ()
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/reporting/counts/issues?from=&to=' \
  --header 'content-type: application/json' \
  --data '{
  "filters": {
    "fixable": false,
    "ignored": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}'
echo '{
  "filters": {
    "fixable": false,
    "ignored": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}' |  \
  http POST '{{baseUrl}}/reporting/counts/issues?from=&to=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "filters": {\n    "fixable": false,\n    "ignored": false,\n    "isPatchable": false,\n    "isPinnable": false,\n    "isUpgradable": false,\n    "languages": [],\n    "orgs": "",\n    "patched": false,\n    "priorityScore": {\n      "max": "",\n      "min": ""\n    },\n    "projects": "",\n    "severity": [],\n    "types": []\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/reporting/counts/issues?from=&to='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["filters": [
    "fixable": false,
    "ignored": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": [
      "max": "",
      "min": ""
    ],
    "projects": "",
    "severity": [],
    "types": []
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/reporting/counts/issues?from=&to=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "results": [
    {
      "count": 0,
      "day": "2017-07-01",
      "severity": {
        "critical": 0,
        "high": 0,
        "low": 0,
        "medium": 0
      }
    },
    {
      "count": 0,
      "day": "2017-07-02",
      "severity": {
        "critical": 0,
        "high": 0,
        "low": 0,
        "medium": 0
      }
    },
    {
      "count": 0,
      "day": "2017-07-03",
      "severity": {
        "critical": 0,
        "high": 0,
        "low": 0,
        "medium": 0
      }
    }
  ]
}
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "code": 400,
  "error": {
    "innerErrors": [
      "invalid type filters.types is an invalid type unsupported-type"
    ],
    "name": "ValidationError"
  },
  "ok": false
}
POST Get latest issue counts
{{baseUrl}}/reporting/counts/issues/latest
BODY json

{
  "filters": {
    "fixable": false,
    "ignored": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/reporting/counts/issues/latest");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/reporting/counts/issues/latest" {:content-type :json
                                                                           :form-params {:filters {:fixable false
                                                                                                   :ignored false
                                                                                                   :isPatchable false
                                                                                                   :isPinnable false
                                                                                                   :isUpgradable false
                                                                                                   :languages []
                                                                                                   :orgs ""
                                                                                                   :patched false
                                                                                                   :priorityScore {:max ""
                                                                                                                   :min ""}
                                                                                                   :projects ""
                                                                                                   :severity []
                                                                                                   :types []}}})
require "http/client"

url = "{{baseUrl}}/reporting/counts/issues/latest"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/reporting/counts/issues/latest"),
    Content = new StringContent("{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/reporting/counts/issues/latest");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/reporting/counts/issues/latest"

	payload := strings.NewReader("{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/reporting/counts/issues/latest HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 322

{
  "filters": {
    "fixable": false,
    "ignored": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/reporting/counts/issues/latest")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/reporting/counts/issues/latest"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/reporting/counts/issues/latest")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/reporting/counts/issues/latest")
  .header("content-type", "application/json")
  .body("{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")
  .asString();
const data = JSON.stringify({
  filters: {
    fixable: false,
    ignored: false,
    isPatchable: false,
    isPinnable: false,
    isUpgradable: false,
    languages: [],
    orgs: '',
    patched: false,
    priorityScore: {
      max: '',
      min: ''
    },
    projects: '',
    severity: [],
    types: []
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/reporting/counts/issues/latest');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/counts/issues/latest',
  headers: {'content-type': 'application/json'},
  data: {
    filters: {
      fixable: false,
      ignored: false,
      isPatchable: false,
      isPinnable: false,
      isUpgradable: false,
      languages: [],
      orgs: '',
      patched: false,
      priorityScore: {max: '', min: ''},
      projects: '',
      severity: [],
      types: []
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/reporting/counts/issues/latest';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"fixable":false,"ignored":false,"isPatchable":false,"isPinnable":false,"isUpgradable":false,"languages":[],"orgs":"","patched":false,"priorityScore":{"max":"","min":""},"projects":"","severity":[],"types":[]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/reporting/counts/issues/latest',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "filters": {\n    "fixable": false,\n    "ignored": false,\n    "isPatchable": false,\n    "isPinnable": false,\n    "isUpgradable": false,\n    "languages": [],\n    "orgs": "",\n    "patched": false,\n    "priorityScore": {\n      "max": "",\n      "min": ""\n    },\n    "projects": "",\n    "severity": [],\n    "types": []\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/reporting/counts/issues/latest")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/reporting/counts/issues/latest',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  filters: {
    fixable: false,
    ignored: false,
    isPatchable: false,
    isPinnable: false,
    isUpgradable: false,
    languages: [],
    orgs: '',
    patched: false,
    priorityScore: {max: '', min: ''},
    projects: '',
    severity: [],
    types: []
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/counts/issues/latest',
  headers: {'content-type': 'application/json'},
  body: {
    filters: {
      fixable: false,
      ignored: false,
      isPatchable: false,
      isPinnable: false,
      isUpgradable: false,
      languages: [],
      orgs: '',
      patched: false,
      priorityScore: {max: '', min: ''},
      projects: '',
      severity: [],
      types: []
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/reporting/counts/issues/latest');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  filters: {
    fixable: false,
    ignored: false,
    isPatchable: false,
    isPinnable: false,
    isUpgradable: false,
    languages: [],
    orgs: '',
    patched: false,
    priorityScore: {
      max: '',
      min: ''
    },
    projects: '',
    severity: [],
    types: []
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/counts/issues/latest',
  headers: {'content-type': 'application/json'},
  data: {
    filters: {
      fixable: false,
      ignored: false,
      isPatchable: false,
      isPinnable: false,
      isUpgradable: false,
      languages: [],
      orgs: '',
      patched: false,
      priorityScore: {max: '', min: ''},
      projects: '',
      severity: [],
      types: []
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/reporting/counts/issues/latest';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"fixable":false,"ignored":false,"isPatchable":false,"isPinnable":false,"isUpgradable":false,"languages":[],"orgs":"","patched":false,"priorityScore":{"max":"","min":""},"projects":"","severity":[],"types":[]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"filters": @{ @"fixable": @NO, @"ignored": @NO, @"isPatchable": @NO, @"isPinnable": @NO, @"isUpgradable": @NO, @"languages": @[  ], @"orgs": @"", @"patched": @NO, @"priorityScore": @{ @"max": @"", @"min": @"" }, @"projects": @"", @"severity": @[  ], @"types": @[  ] } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/reporting/counts/issues/latest"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/reporting/counts/issues/latest" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/reporting/counts/issues/latest",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'filters' => [
        'fixable' => null,
        'ignored' => null,
        'isPatchable' => null,
        'isPinnable' => null,
        'isUpgradable' => null,
        'languages' => [
                
        ],
        'orgs' => '',
        'patched' => null,
        'priorityScore' => [
                'max' => '',
                'min' => ''
        ],
        'projects' => '',
        'severity' => [
                
        ],
        'types' => [
                
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/reporting/counts/issues/latest', [
  'body' => '{
  "filters": {
    "fixable": false,
    "ignored": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/reporting/counts/issues/latest');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'filters' => [
    'fixable' => null,
    'ignored' => null,
    'isPatchable' => null,
    'isPinnable' => null,
    'isUpgradable' => null,
    'languages' => [
        
    ],
    'orgs' => '',
    'patched' => null,
    'priorityScore' => [
        'max' => '',
        'min' => ''
    ],
    'projects' => '',
    'severity' => [
        
    ],
    'types' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'filters' => [
    'fixable' => null,
    'ignored' => null,
    'isPatchable' => null,
    'isPinnable' => null,
    'isUpgradable' => null,
    'languages' => [
        
    ],
    'orgs' => '',
    'patched' => null,
    'priorityScore' => [
        'max' => '',
        'min' => ''
    ],
    'projects' => '',
    'severity' => [
        
    ],
    'types' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/reporting/counts/issues/latest');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/reporting/counts/issues/latest' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "fixable": false,
    "ignored": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/reporting/counts/issues/latest' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "fixable": false,
    "ignored": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/reporting/counts/issues/latest", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/reporting/counts/issues/latest"

payload = { "filters": {
        "fixable": False,
        "ignored": False,
        "isPatchable": False,
        "isPinnable": False,
        "isUpgradable": False,
        "languages": [],
        "orgs": "",
        "patched": False,
        "priorityScore": {
            "max": "",
            "min": ""
        },
        "projects": "",
        "severity": [],
        "types": []
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/reporting/counts/issues/latest"

payload <- "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/reporting/counts/issues/latest")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/reporting/counts/issues/latest') do |req|
  req.body = "{\n  \"filters\": {\n    \"fixable\": false,\n    \"ignored\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/reporting/counts/issues/latest";

    let payload = json!({"filters": json!({
            "fixable": false,
            "ignored": false,
            "isPatchable": false,
            "isPinnable": false,
            "isUpgradable": false,
            "languages": (),
            "orgs": "",
            "patched": false,
            "priorityScore": json!({
                "max": "",
                "min": ""
            }),
            "projects": "",
            "severity": (),
            "types": ()
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/reporting/counts/issues/latest \
  --header 'content-type: application/json' \
  --data '{
  "filters": {
    "fixable": false,
    "ignored": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}'
echo '{
  "filters": {
    "fixable": false,
    "ignored": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}' |  \
  http POST {{baseUrl}}/reporting/counts/issues/latest \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "filters": {\n    "fixable": false,\n    "ignored": false,\n    "isPatchable": false,\n    "isPinnable": false,\n    "isUpgradable": false,\n    "languages": [],\n    "orgs": "",\n    "patched": false,\n    "priorityScore": {\n      "max": "",\n      "min": ""\n    },\n    "projects": "",\n    "severity": [],\n    "types": []\n  }\n}' \
  --output-document \
  - {{baseUrl}}/reporting/counts/issues/latest
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["filters": [
    "fixable": false,
    "ignored": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": [
      "max": "",
      "min": ""
    ],
    "projects": "",
    "severity": [],
    "types": []
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/reporting/counts/issues/latest")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "code": 400,
  "error": {
    "innerErrors": [
      "invalid type filters.types is an invalid type unsupported-type"
    ],
    "name": "ValidationError"
  },
  "ok": false
}
POST Get latest project counts
{{baseUrl}}/reporting/counts/projects/latest
BODY json

{
  "filters": {
    "languages": [],
    "orgs": "",
    "projects": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/reporting/counts/projects/latest");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/reporting/counts/projects/latest" {:content-type :json
                                                                             :form-params {:filters {:languages []
                                                                                                     :orgs ""
                                                                                                     :projects ""}}})
require "http/client"

url = "{{baseUrl}}/reporting/counts/projects/latest"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/reporting/counts/projects/latest"),
    Content = new StringContent("{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/reporting/counts/projects/latest");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/reporting/counts/projects/latest"

	payload := strings.NewReader("{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/reporting/counts/projects/latest HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 78

{
  "filters": {
    "languages": [],
    "orgs": "",
    "projects": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/reporting/counts/projects/latest")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/reporting/counts/projects/latest"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/reporting/counts/projects/latest")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/reporting/counts/projects/latest")
  .header("content-type", "application/json")
  .body("{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  filters: {
    languages: [],
    orgs: '',
    projects: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/reporting/counts/projects/latest');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/counts/projects/latest',
  headers: {'content-type': 'application/json'},
  data: {filters: {languages: [], orgs: '', projects: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/reporting/counts/projects/latest';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"languages":[],"orgs":"","projects":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/reporting/counts/projects/latest',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "filters": {\n    "languages": [],\n    "orgs": "",\n    "projects": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/reporting/counts/projects/latest")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/reporting/counts/projects/latest',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({filters: {languages: [], orgs: '', projects: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/counts/projects/latest',
  headers: {'content-type': 'application/json'},
  body: {filters: {languages: [], orgs: '', projects: ''}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/reporting/counts/projects/latest');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  filters: {
    languages: [],
    orgs: '',
    projects: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/counts/projects/latest',
  headers: {'content-type': 'application/json'},
  data: {filters: {languages: [], orgs: '', projects: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/reporting/counts/projects/latest';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"languages":[],"orgs":"","projects":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"filters": @{ @"languages": @[  ], @"orgs": @"", @"projects": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/reporting/counts/projects/latest"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/reporting/counts/projects/latest" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/reporting/counts/projects/latest",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'filters' => [
        'languages' => [
                
        ],
        'orgs' => '',
        'projects' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/reporting/counts/projects/latest', [
  'body' => '{
  "filters": {
    "languages": [],
    "orgs": "",
    "projects": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/reporting/counts/projects/latest');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'filters' => [
    'languages' => [
        
    ],
    'orgs' => '',
    'projects' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'filters' => [
    'languages' => [
        
    ],
    'orgs' => '',
    'projects' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/reporting/counts/projects/latest');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/reporting/counts/projects/latest' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "languages": [],
    "orgs": "",
    "projects": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/reporting/counts/projects/latest' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "languages": [],
    "orgs": "",
    "projects": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/reporting/counts/projects/latest", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/reporting/counts/projects/latest"

payload = { "filters": {
        "languages": [],
        "orgs": "",
        "projects": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/reporting/counts/projects/latest"

payload <- "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/reporting/counts/projects/latest")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/reporting/counts/projects/latest') do |req|
  req.body = "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/reporting/counts/projects/latest";

    let payload = json!({"filters": json!({
            "languages": (),
            "orgs": "",
            "projects": ""
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/reporting/counts/projects/latest \
  --header 'content-type: application/json' \
  --data '{
  "filters": {
    "languages": [],
    "orgs": "",
    "projects": ""
  }
}'
echo '{
  "filters": {
    "languages": [],
    "orgs": "",
    "projects": ""
  }
}' |  \
  http POST {{baseUrl}}/reporting/counts/projects/latest \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "filters": {\n    "languages": [],\n    "orgs": "",\n    "projects": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/reporting/counts/projects/latest
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["filters": [
    "languages": [],
    "orgs": "",
    "projects": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/reporting/counts/projects/latest")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "results": [
    {
      "count": 0,
      "day": "2017-07-01"
    }
  ]
}
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "code": 400,
  "error": {
    "innerErrors": [
      "invalid type filters.projects is an invalid project unsupported-project"
    ],
    "name": "ValidationError"
  },
  "ok": false
}
POST Get list of issues
{{baseUrl}}/reporting/issues/
QUERY PARAMS

from
to
BODY json

{
  "filters": {
    "exploitMaturity": [],
    "fixable": false,
    "identifier": "",
    "ignored": false,
    "isFixed": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "issues": "",
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/reporting/issues/?from=&to=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/reporting/issues/" {:query-params {:from ""
                                                                             :to ""}
                                                              :content-type :json
                                                              :form-params {:filters {:exploitMaturity []
                                                                                      :fixable false
                                                                                      :identifier ""
                                                                                      :ignored false
                                                                                      :isFixed false
                                                                                      :isPatchable false
                                                                                      :isPinnable false
                                                                                      :isUpgradable false
                                                                                      :issues ""
                                                                                      :languages []
                                                                                      :orgs ""
                                                                                      :patched false
                                                                                      :priorityScore {:max ""
                                                                                                      :min ""}
                                                                                      :projects ""
                                                                                      :severity []
                                                                                      :types []}}})
require "http/client"

url = "{{baseUrl}}/reporting/issues/?from=&to="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/reporting/issues/?from=&to="),
    Content = new StringContent("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/reporting/issues/?from=&to=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/reporting/issues/?from=&to="

	payload := strings.NewReader("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/reporting/issues/?from=&to= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 411

{
  "filters": {
    "exploitMaturity": [],
    "fixable": false,
    "identifier": "",
    "ignored": false,
    "isFixed": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "issues": "",
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/reporting/issues/?from=&to=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/reporting/issues/?from=&to="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/reporting/issues/?from=&to=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/reporting/issues/?from=&to=")
  .header("content-type", "application/json")
  .body("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")
  .asString();
const data = JSON.stringify({
  filters: {
    exploitMaturity: [],
    fixable: false,
    identifier: '',
    ignored: false,
    isFixed: false,
    isPatchable: false,
    isPinnable: false,
    isUpgradable: false,
    issues: '',
    languages: [],
    orgs: '',
    patched: false,
    priorityScore: {
      max: '',
      min: ''
    },
    projects: '',
    severity: [],
    types: []
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/reporting/issues/?from=&to=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/issues/',
  params: {from: '', to: ''},
  headers: {'content-type': 'application/json'},
  data: {
    filters: {
      exploitMaturity: [],
      fixable: false,
      identifier: '',
      ignored: false,
      isFixed: false,
      isPatchable: false,
      isPinnable: false,
      isUpgradable: false,
      issues: '',
      languages: [],
      orgs: '',
      patched: false,
      priorityScore: {max: '', min: ''},
      projects: '',
      severity: [],
      types: []
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/reporting/issues/?from=&to=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"exploitMaturity":[],"fixable":false,"identifier":"","ignored":false,"isFixed":false,"isPatchable":false,"isPinnable":false,"isUpgradable":false,"issues":"","languages":[],"orgs":"","patched":false,"priorityScore":{"max":"","min":""},"projects":"","severity":[],"types":[]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/reporting/issues/?from=&to=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "filters": {\n    "exploitMaturity": [],\n    "fixable": false,\n    "identifier": "",\n    "ignored": false,\n    "isFixed": false,\n    "isPatchable": false,\n    "isPinnable": false,\n    "isUpgradable": false,\n    "issues": "",\n    "languages": [],\n    "orgs": "",\n    "patched": false,\n    "priorityScore": {\n      "max": "",\n      "min": ""\n    },\n    "projects": "",\n    "severity": [],\n    "types": []\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/reporting/issues/?from=&to=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/reporting/issues/?from=&to=',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  filters: {
    exploitMaturity: [],
    fixable: false,
    identifier: '',
    ignored: false,
    isFixed: false,
    isPatchable: false,
    isPinnable: false,
    isUpgradable: false,
    issues: '',
    languages: [],
    orgs: '',
    patched: false,
    priorityScore: {max: '', min: ''},
    projects: '',
    severity: [],
    types: []
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/issues/',
  qs: {from: '', to: ''},
  headers: {'content-type': 'application/json'},
  body: {
    filters: {
      exploitMaturity: [],
      fixable: false,
      identifier: '',
      ignored: false,
      isFixed: false,
      isPatchable: false,
      isPinnable: false,
      isUpgradable: false,
      issues: '',
      languages: [],
      orgs: '',
      patched: false,
      priorityScore: {max: '', min: ''},
      projects: '',
      severity: [],
      types: []
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/reporting/issues/');

req.query({
  from: '',
  to: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  filters: {
    exploitMaturity: [],
    fixable: false,
    identifier: '',
    ignored: false,
    isFixed: false,
    isPatchable: false,
    isPinnable: false,
    isUpgradable: false,
    issues: '',
    languages: [],
    orgs: '',
    patched: false,
    priorityScore: {
      max: '',
      min: ''
    },
    projects: '',
    severity: [],
    types: []
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/issues/',
  params: {from: '', to: ''},
  headers: {'content-type': 'application/json'},
  data: {
    filters: {
      exploitMaturity: [],
      fixable: false,
      identifier: '',
      ignored: false,
      isFixed: false,
      isPatchable: false,
      isPinnable: false,
      isUpgradable: false,
      issues: '',
      languages: [],
      orgs: '',
      patched: false,
      priorityScore: {max: '', min: ''},
      projects: '',
      severity: [],
      types: []
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/reporting/issues/?from=&to=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"exploitMaturity":[],"fixable":false,"identifier":"","ignored":false,"isFixed":false,"isPatchable":false,"isPinnable":false,"isUpgradable":false,"issues":"","languages":[],"orgs":"","patched":false,"priorityScore":{"max":"","min":""},"projects":"","severity":[],"types":[]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"filters": @{ @"exploitMaturity": @[  ], @"fixable": @NO, @"identifier": @"", @"ignored": @NO, @"isFixed": @NO, @"isPatchable": @NO, @"isPinnable": @NO, @"isUpgradable": @NO, @"issues": @"", @"languages": @[  ], @"orgs": @"", @"patched": @NO, @"priorityScore": @{ @"max": @"", @"min": @"" }, @"projects": @"", @"severity": @[  ], @"types": @[  ] } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/reporting/issues/?from=&to="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/reporting/issues/?from=&to=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/reporting/issues/?from=&to=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'filters' => [
        'exploitMaturity' => [
                
        ],
        'fixable' => null,
        'identifier' => '',
        'ignored' => null,
        'isFixed' => null,
        'isPatchable' => null,
        'isPinnable' => null,
        'isUpgradable' => null,
        'issues' => '',
        'languages' => [
                
        ],
        'orgs' => '',
        'patched' => null,
        'priorityScore' => [
                'max' => '',
                'min' => ''
        ],
        'projects' => '',
        'severity' => [
                
        ],
        'types' => [
                
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/reporting/issues/?from=&to=', [
  'body' => '{
  "filters": {
    "exploitMaturity": [],
    "fixable": false,
    "identifier": "",
    "ignored": false,
    "isFixed": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "issues": "",
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/reporting/issues/');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'from' => '',
  'to' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'filters' => [
    'exploitMaturity' => [
        
    ],
    'fixable' => null,
    'identifier' => '',
    'ignored' => null,
    'isFixed' => null,
    'isPatchable' => null,
    'isPinnable' => null,
    'isUpgradable' => null,
    'issues' => '',
    'languages' => [
        
    ],
    'orgs' => '',
    'patched' => null,
    'priorityScore' => [
        'max' => '',
        'min' => ''
    ],
    'projects' => '',
    'severity' => [
        
    ],
    'types' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'filters' => [
    'exploitMaturity' => [
        
    ],
    'fixable' => null,
    'identifier' => '',
    'ignored' => null,
    'isFixed' => null,
    'isPatchable' => null,
    'isPinnable' => null,
    'isUpgradable' => null,
    'issues' => '',
    'languages' => [
        
    ],
    'orgs' => '',
    'patched' => null,
    'priorityScore' => [
        'max' => '',
        'min' => ''
    ],
    'projects' => '',
    'severity' => [
        
    ],
    'types' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/reporting/issues/');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'from' => '',
  'to' => ''
]));

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/reporting/issues/?from=&to=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "exploitMaturity": [],
    "fixable": false,
    "identifier": "",
    "ignored": false,
    "isFixed": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "issues": "",
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/reporting/issues/?from=&to=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "exploitMaturity": [],
    "fixable": false,
    "identifier": "",
    "ignored": false,
    "isFixed": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "issues": "",
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/reporting/issues/?from=&to=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/reporting/issues/"

querystring = {"from":"","to":""}

payload = { "filters": {
        "exploitMaturity": [],
        "fixable": False,
        "identifier": "",
        "ignored": False,
        "isFixed": False,
        "isPatchable": False,
        "isPinnable": False,
        "isUpgradable": False,
        "issues": "",
        "languages": [],
        "orgs": "",
        "patched": False,
        "priorityScore": {
            "max": "",
            "min": ""
        },
        "projects": "",
        "severity": [],
        "types": []
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/reporting/issues/"

queryString <- list(
  from = "",
  to = ""
)

payload <- "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/reporting/issues/?from=&to=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/reporting/issues/') do |req|
  req.params['from'] = ''
  req.params['to'] = ''
  req.body = "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/reporting/issues/";

    let querystring = [
        ("from", ""),
        ("to", ""),
    ];

    let payload = json!({"filters": json!({
            "exploitMaturity": (),
            "fixable": false,
            "identifier": "",
            "ignored": false,
            "isFixed": false,
            "isPatchable": false,
            "isPinnable": false,
            "isUpgradable": false,
            "issues": "",
            "languages": (),
            "orgs": "",
            "patched": false,
            "priorityScore": json!({
                "max": "",
                "min": ""
            }),
            "projects": "",
            "severity": (),
            "types": ()
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/reporting/issues/?from=&to=' \
  --header 'content-type: application/json' \
  --data '{
  "filters": {
    "exploitMaturity": [],
    "fixable": false,
    "identifier": "",
    "ignored": false,
    "isFixed": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "issues": "",
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}'
echo '{
  "filters": {
    "exploitMaturity": [],
    "fixable": false,
    "identifier": "",
    "ignored": false,
    "isFixed": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "issues": "",
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}' |  \
  http POST '{{baseUrl}}/reporting/issues/?from=&to=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "filters": {\n    "exploitMaturity": [],\n    "fixable": false,\n    "identifier": "",\n    "ignored": false,\n    "isFixed": false,\n    "isPatchable": false,\n    "isPinnable": false,\n    "isUpgradable": false,\n    "issues": "",\n    "languages": [],\n    "orgs": "",\n    "patched": false,\n    "priorityScore": {\n      "max": "",\n      "min": ""\n    },\n    "projects": "",\n    "severity": [],\n    "types": []\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/reporting/issues/?from=&to='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["filters": [
    "exploitMaturity": [],
    "fixable": false,
    "identifier": "",
    "ignored": false,
    "isFixed": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "issues": "",
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": [
      "max": "",
      "min": ""
    ],
    "projects": "",
    "severity": [],
    "types": []
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/reporting/issues/?from=&to=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "results": [
    {
      "fixedDate": "",
      "introducedDate": "",
      "isFixed": false,
      "issue": {
        "CVSSv3": "",
        "credit": [],
        "cvssScore": 0,
        "disclosureTime": "",
        "exploitMaturity": "",
        "id": "",
        "identifiers": {
          "CVE": [],
          "CWE": [],
          "OSVDB": []
        },
        "ignored": [
          {
            "expires": "",
            "reason": "",
            "source": "cli"
          }
        ],
        "isIgnored": false,
        "isPatchable": false,
        "isPatched": false,
        "isPinnable": false,
        "isUpgradable": false,
        "jiraIssueUrl": "",
        "language": "",
        "originalSeverity": "",
        "package": "",
        "packageManager": "",
        "patches": [
          {
            "comments": [],
            "id": "",
            "modificationTime": "",
            "urls": [],
            "version": ""
          }
        ],
        "priorityScore": 0,
        "publicationTime": "",
        "semver": {
          "unaffected": "",
          "vulnerable": []
        },
        "severity": "",
        "title": "",
        "type": "",
        "uniqueSeveritiesList": [],
        "url": "",
        "version": ""
      },
      "patchedDate": "",
      "projects": [
        {
          "id": "",
          "name": "",
          "packageManager": "",
          "source": "",
          "targetFile": "",
          "url": ""
        }
      ]
    }
  ],
  "total": 0
}
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "code": 400,
  "error": {
    "innerErrors": [
      "invalid type filters.types is an invalid type unsupported-type"
    ],
    "name": "ValidationError"
  },
  "ok": false
}
POST Get list of latest issues
{{baseUrl}}/reporting/issues/latest
BODY json

{
  "filters": {
    "exploitMaturity": [],
    "fixable": false,
    "identifier": "",
    "ignored": false,
    "isFixed": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "issues": "",
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/reporting/issues/latest");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/reporting/issues/latest" {:content-type :json
                                                                    :form-params {:filters {:exploitMaturity []
                                                                                            :fixable false
                                                                                            :identifier ""
                                                                                            :ignored false
                                                                                            :isFixed false
                                                                                            :isPatchable false
                                                                                            :isPinnable false
                                                                                            :isUpgradable false
                                                                                            :issues ""
                                                                                            :languages []
                                                                                            :orgs ""
                                                                                            :patched false
                                                                                            :priorityScore {:max ""
                                                                                                            :min ""}
                                                                                            :projects ""
                                                                                            :severity []
                                                                                            :types []}}})
require "http/client"

url = "{{baseUrl}}/reporting/issues/latest"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/reporting/issues/latest"),
    Content = new StringContent("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/reporting/issues/latest");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/reporting/issues/latest"

	payload := strings.NewReader("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/reporting/issues/latest HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 411

{
  "filters": {
    "exploitMaturity": [],
    "fixable": false,
    "identifier": "",
    "ignored": false,
    "isFixed": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "issues": "",
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/reporting/issues/latest")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/reporting/issues/latest"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/reporting/issues/latest")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/reporting/issues/latest")
  .header("content-type", "application/json")
  .body("{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")
  .asString();
const data = JSON.stringify({
  filters: {
    exploitMaturity: [],
    fixable: false,
    identifier: '',
    ignored: false,
    isFixed: false,
    isPatchable: false,
    isPinnable: false,
    isUpgradable: false,
    issues: '',
    languages: [],
    orgs: '',
    patched: false,
    priorityScore: {
      max: '',
      min: ''
    },
    projects: '',
    severity: [],
    types: []
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/reporting/issues/latest');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/issues/latest',
  headers: {'content-type': 'application/json'},
  data: {
    filters: {
      exploitMaturity: [],
      fixable: false,
      identifier: '',
      ignored: false,
      isFixed: false,
      isPatchable: false,
      isPinnable: false,
      isUpgradable: false,
      issues: '',
      languages: [],
      orgs: '',
      patched: false,
      priorityScore: {max: '', min: ''},
      projects: '',
      severity: [],
      types: []
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/reporting/issues/latest';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"exploitMaturity":[],"fixable":false,"identifier":"","ignored":false,"isFixed":false,"isPatchable":false,"isPinnable":false,"isUpgradable":false,"issues":"","languages":[],"orgs":"","patched":false,"priorityScore":{"max":"","min":""},"projects":"","severity":[],"types":[]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/reporting/issues/latest',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "filters": {\n    "exploitMaturity": [],\n    "fixable": false,\n    "identifier": "",\n    "ignored": false,\n    "isFixed": false,\n    "isPatchable": false,\n    "isPinnable": false,\n    "isUpgradable": false,\n    "issues": "",\n    "languages": [],\n    "orgs": "",\n    "patched": false,\n    "priorityScore": {\n      "max": "",\n      "min": ""\n    },\n    "projects": "",\n    "severity": [],\n    "types": []\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/reporting/issues/latest")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/reporting/issues/latest',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  filters: {
    exploitMaturity: [],
    fixable: false,
    identifier: '',
    ignored: false,
    isFixed: false,
    isPatchable: false,
    isPinnable: false,
    isUpgradable: false,
    issues: '',
    languages: [],
    orgs: '',
    patched: false,
    priorityScore: {max: '', min: ''},
    projects: '',
    severity: [],
    types: []
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/issues/latest',
  headers: {'content-type': 'application/json'},
  body: {
    filters: {
      exploitMaturity: [],
      fixable: false,
      identifier: '',
      ignored: false,
      isFixed: false,
      isPatchable: false,
      isPinnable: false,
      isUpgradable: false,
      issues: '',
      languages: [],
      orgs: '',
      patched: false,
      priorityScore: {max: '', min: ''},
      projects: '',
      severity: [],
      types: []
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/reporting/issues/latest');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  filters: {
    exploitMaturity: [],
    fixable: false,
    identifier: '',
    ignored: false,
    isFixed: false,
    isPatchable: false,
    isPinnable: false,
    isUpgradable: false,
    issues: '',
    languages: [],
    orgs: '',
    patched: false,
    priorityScore: {
      max: '',
      min: ''
    },
    projects: '',
    severity: [],
    types: []
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/issues/latest',
  headers: {'content-type': 'application/json'},
  data: {
    filters: {
      exploitMaturity: [],
      fixable: false,
      identifier: '',
      ignored: false,
      isFixed: false,
      isPatchable: false,
      isPinnable: false,
      isUpgradable: false,
      issues: '',
      languages: [],
      orgs: '',
      patched: false,
      priorityScore: {max: '', min: ''},
      projects: '',
      severity: [],
      types: []
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/reporting/issues/latest';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"exploitMaturity":[],"fixable":false,"identifier":"","ignored":false,"isFixed":false,"isPatchable":false,"isPinnable":false,"isUpgradable":false,"issues":"","languages":[],"orgs":"","patched":false,"priorityScore":{"max":"","min":""},"projects":"","severity":[],"types":[]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"filters": @{ @"exploitMaturity": @[  ], @"fixable": @NO, @"identifier": @"", @"ignored": @NO, @"isFixed": @NO, @"isPatchable": @NO, @"isPinnable": @NO, @"isUpgradable": @NO, @"issues": @"", @"languages": @[  ], @"orgs": @"", @"patched": @NO, @"priorityScore": @{ @"max": @"", @"min": @"" }, @"projects": @"", @"severity": @[  ], @"types": @[  ] } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/reporting/issues/latest"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/reporting/issues/latest" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/reporting/issues/latest",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'filters' => [
        'exploitMaturity' => [
                
        ],
        'fixable' => null,
        'identifier' => '',
        'ignored' => null,
        'isFixed' => null,
        'isPatchable' => null,
        'isPinnable' => null,
        'isUpgradable' => null,
        'issues' => '',
        'languages' => [
                
        ],
        'orgs' => '',
        'patched' => null,
        'priorityScore' => [
                'max' => '',
                'min' => ''
        ],
        'projects' => '',
        'severity' => [
                
        ],
        'types' => [
                
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/reporting/issues/latest', [
  'body' => '{
  "filters": {
    "exploitMaturity": [],
    "fixable": false,
    "identifier": "",
    "ignored": false,
    "isFixed": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "issues": "",
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/reporting/issues/latest');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'filters' => [
    'exploitMaturity' => [
        
    ],
    'fixable' => null,
    'identifier' => '',
    'ignored' => null,
    'isFixed' => null,
    'isPatchable' => null,
    'isPinnable' => null,
    'isUpgradable' => null,
    'issues' => '',
    'languages' => [
        
    ],
    'orgs' => '',
    'patched' => null,
    'priorityScore' => [
        'max' => '',
        'min' => ''
    ],
    'projects' => '',
    'severity' => [
        
    ],
    'types' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'filters' => [
    'exploitMaturity' => [
        
    ],
    'fixable' => null,
    'identifier' => '',
    'ignored' => null,
    'isFixed' => null,
    'isPatchable' => null,
    'isPinnable' => null,
    'isUpgradable' => null,
    'issues' => '',
    'languages' => [
        
    ],
    'orgs' => '',
    'patched' => null,
    'priorityScore' => [
        'max' => '',
        'min' => ''
    ],
    'projects' => '',
    'severity' => [
        
    ],
    'types' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/reporting/issues/latest');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/reporting/issues/latest' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "exploitMaturity": [],
    "fixable": false,
    "identifier": "",
    "ignored": false,
    "isFixed": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "issues": "",
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/reporting/issues/latest' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "exploitMaturity": [],
    "fixable": false,
    "identifier": "",
    "ignored": false,
    "isFixed": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "issues": "",
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/reporting/issues/latest", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/reporting/issues/latest"

payload = { "filters": {
        "exploitMaturity": [],
        "fixable": False,
        "identifier": "",
        "ignored": False,
        "isFixed": False,
        "isPatchable": False,
        "isPinnable": False,
        "isUpgradable": False,
        "issues": "",
        "languages": [],
        "orgs": "",
        "patched": False,
        "priorityScore": {
            "max": "",
            "min": ""
        },
        "projects": "",
        "severity": [],
        "types": []
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/reporting/issues/latest"

payload <- "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/reporting/issues/latest")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/reporting/issues/latest') do |req|
  req.body = "{\n  \"filters\": {\n    \"exploitMaturity\": [],\n    \"fixable\": false,\n    \"identifier\": \"\",\n    \"ignored\": false,\n    \"isFixed\": false,\n    \"isPatchable\": false,\n    \"isPinnable\": false,\n    \"isUpgradable\": false,\n    \"issues\": \"\",\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"patched\": false,\n    \"priorityScore\": {\n      \"max\": \"\",\n      \"min\": \"\"\n    },\n    \"projects\": \"\",\n    \"severity\": [],\n    \"types\": []\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/reporting/issues/latest";

    let payload = json!({"filters": json!({
            "exploitMaturity": (),
            "fixable": false,
            "identifier": "",
            "ignored": false,
            "isFixed": false,
            "isPatchable": false,
            "isPinnable": false,
            "isUpgradable": false,
            "issues": "",
            "languages": (),
            "orgs": "",
            "patched": false,
            "priorityScore": json!({
                "max": "",
                "min": ""
            }),
            "projects": "",
            "severity": (),
            "types": ()
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/reporting/issues/latest \
  --header 'content-type: application/json' \
  --data '{
  "filters": {
    "exploitMaturity": [],
    "fixable": false,
    "identifier": "",
    "ignored": false,
    "isFixed": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "issues": "",
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}'
echo '{
  "filters": {
    "exploitMaturity": [],
    "fixable": false,
    "identifier": "",
    "ignored": false,
    "isFixed": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "issues": "",
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": {
      "max": "",
      "min": ""
    },
    "projects": "",
    "severity": [],
    "types": []
  }
}' |  \
  http POST {{baseUrl}}/reporting/issues/latest \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "filters": {\n    "exploitMaturity": [],\n    "fixable": false,\n    "identifier": "",\n    "ignored": false,\n    "isFixed": false,\n    "isPatchable": false,\n    "isPinnable": false,\n    "isUpgradable": false,\n    "issues": "",\n    "languages": [],\n    "orgs": "",\n    "patched": false,\n    "priorityScore": {\n      "max": "",\n      "min": ""\n    },\n    "projects": "",\n    "severity": [],\n    "types": []\n  }\n}' \
  --output-document \
  - {{baseUrl}}/reporting/issues/latest
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["filters": [
    "exploitMaturity": [],
    "fixable": false,
    "identifier": "",
    "ignored": false,
    "isFixed": false,
    "isPatchable": false,
    "isPinnable": false,
    "isUpgradable": false,
    "issues": "",
    "languages": [],
    "orgs": "",
    "patched": false,
    "priorityScore": [
      "max": "",
      "min": ""
    ],
    "projects": "",
    "severity": [],
    "types": []
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/reporting/issues/latest")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "results": [
    {
      "fixedDate": "",
      "introducedDate": "",
      "isFixed": false,
      "issue": {
        "CVSSv3": "",
        "credit": [],
        "cvssScore": 0,
        "disclosureTime": "",
        "exploitMaturity": "",
        "id": "",
        "identifiers": {
          "CVE": [],
          "CWE": [],
          "OSVDB": []
        },
        "ignored": [
          {
            "expires": "",
            "reason": "",
            "source": "cli"
          }
        ],
        "isIgnored": false,
        "isPatchable": false,
        "isPatched": false,
        "isPinnable": false,
        "isUpgradable": false,
        "jiraIssueUrl": "",
        "language": "",
        "originalSeverity": "",
        "package": "",
        "packageManager": "",
        "patches": [
          {
            "comments": [],
            "id": "",
            "modificationTime": "",
            "urls": [],
            "version": ""
          }
        ],
        "priorityScore": 0,
        "publicationTime": "",
        "semver": {
          "unaffected": "",
          "vulnerable": []
        },
        "severity": "",
        "title": "",
        "type": "",
        "uniqueSeveritiesList": [],
        "url": "",
        "version": ""
      },
      "patchedDate": "",
      "projects": [
        {
          "id": "",
          "name": "",
          "packageManager": "",
          "source": "",
          "targetFile": "",
          "url": ""
        }
      ]
    }
  ],
  "total": 0
}
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "code": 400,
  "error": {
    "innerErrors": [
      "invalid type filters.types is an invalid type unsupported-type"
    ],
    "name": "ValidationError"
  },
  "ok": false
}
POST Get project counts
{{baseUrl}}/reporting/counts/projects
QUERY PARAMS

from
to
BODY json

{
  "filters": {
    "languages": [],
    "orgs": "",
    "projects": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/reporting/counts/projects?from=&to=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/reporting/counts/projects" {:query-params {:from ""
                                                                                     :to ""}
                                                                      :content-type :json
                                                                      :form-params {:filters {:languages []
                                                                                              :orgs ""
                                                                                              :projects ""}}})
require "http/client"

url = "{{baseUrl}}/reporting/counts/projects?from=&to="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/reporting/counts/projects?from=&to="),
    Content = new StringContent("{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/reporting/counts/projects?from=&to=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/reporting/counts/projects?from=&to="

	payload := strings.NewReader("{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/reporting/counts/projects?from=&to= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 78

{
  "filters": {
    "languages": [],
    "orgs": "",
    "projects": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/reporting/counts/projects?from=&to=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/reporting/counts/projects?from=&to="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/reporting/counts/projects?from=&to=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/reporting/counts/projects?from=&to=")
  .header("content-type", "application/json")
  .body("{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  filters: {
    languages: [],
    orgs: '',
    projects: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/reporting/counts/projects?from=&to=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/counts/projects',
  params: {from: '', to: ''},
  headers: {'content-type': 'application/json'},
  data: {filters: {languages: [], orgs: '', projects: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/reporting/counts/projects?from=&to=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"languages":[],"orgs":"","projects":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/reporting/counts/projects?from=&to=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "filters": {\n    "languages": [],\n    "orgs": "",\n    "projects": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/reporting/counts/projects?from=&to=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/reporting/counts/projects?from=&to=',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({filters: {languages: [], orgs: '', projects: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/counts/projects',
  qs: {from: '', to: ''},
  headers: {'content-type': 'application/json'},
  body: {filters: {languages: [], orgs: '', projects: ''}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/reporting/counts/projects');

req.query({
  from: '',
  to: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  filters: {
    languages: [],
    orgs: '',
    projects: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/counts/projects',
  params: {from: '', to: ''},
  headers: {'content-type': 'application/json'},
  data: {filters: {languages: [], orgs: '', projects: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/reporting/counts/projects?from=&to=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"languages":[],"orgs":"","projects":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"filters": @{ @"languages": @[  ], @"orgs": @"", @"projects": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/reporting/counts/projects?from=&to="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/reporting/counts/projects?from=&to=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/reporting/counts/projects?from=&to=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'filters' => [
        'languages' => [
                
        ],
        'orgs' => '',
        'projects' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/reporting/counts/projects?from=&to=', [
  'body' => '{
  "filters": {
    "languages": [],
    "orgs": "",
    "projects": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/reporting/counts/projects');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'from' => '',
  'to' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'filters' => [
    'languages' => [
        
    ],
    'orgs' => '',
    'projects' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'filters' => [
    'languages' => [
        
    ],
    'orgs' => '',
    'projects' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/reporting/counts/projects');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'from' => '',
  'to' => ''
]));

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/reporting/counts/projects?from=&to=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "languages": [],
    "orgs": "",
    "projects": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/reporting/counts/projects?from=&to=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "languages": [],
    "orgs": "",
    "projects": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/reporting/counts/projects?from=&to=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/reporting/counts/projects"

querystring = {"from":"","to":""}

payload = { "filters": {
        "languages": [],
        "orgs": "",
        "projects": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/reporting/counts/projects"

queryString <- list(
  from = "",
  to = ""
)

payload <- "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/reporting/counts/projects?from=&to=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/reporting/counts/projects') do |req|
  req.params['from'] = ''
  req.params['to'] = ''
  req.body = "{\n  \"filters\": {\n    \"languages\": [],\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/reporting/counts/projects";

    let querystring = [
        ("from", ""),
        ("to", ""),
    ];

    let payload = json!({"filters": json!({
            "languages": (),
            "orgs": "",
            "projects": ""
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/reporting/counts/projects?from=&to=' \
  --header 'content-type: application/json' \
  --data '{
  "filters": {
    "languages": [],
    "orgs": "",
    "projects": ""
  }
}'
echo '{
  "filters": {
    "languages": [],
    "orgs": "",
    "projects": ""
  }
}' |  \
  http POST '{{baseUrl}}/reporting/counts/projects?from=&to=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "filters": {\n    "languages": [],\n    "orgs": "",\n    "projects": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/reporting/counts/projects?from=&to='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["filters": [
    "languages": [],
    "orgs": "",
    "projects": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/reporting/counts/projects?from=&to=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "results": [
    {
      "count": 0,
      "day": "2017-07-01"
    },
    {
      "count": 0,
      "day": "2017-07-02"
    },
    {
      "count": 0,
      "day": "2017-07-03"
    }
  ]
}
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "code": 400,
  "error": {
    "innerErrors": [
      "invalid type filters.projects is an invalid project unsupported-project"
    ],
    "name": "ValidationError"
  },
  "ok": false
}
POST Get test counts
{{baseUrl}}/reporting/counts/tests
QUERY PARAMS

from
to
BODY json

{
  "filters": {
    "isPrivate": false,
    "issuesPrevented": false,
    "orgs": "",
    "projects": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/reporting/counts/tests?from=&to=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"filters\": {\n    \"isPrivate\": false,\n    \"issuesPrevented\": false,\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/reporting/counts/tests" {:query-params {:from ""
                                                                                  :to ""}
                                                                   :content-type :json
                                                                   :form-params {:filters {:isPrivate false
                                                                                           :issuesPrevented false
                                                                                           :orgs ""
                                                                                           :projects ""}}})
require "http/client"

url = "{{baseUrl}}/reporting/counts/tests?from=&to="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"filters\": {\n    \"isPrivate\": false,\n    \"issuesPrevented\": false,\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/reporting/counts/tests?from=&to="),
    Content = new StringContent("{\n  \"filters\": {\n    \"isPrivate\": false,\n    \"issuesPrevented\": false,\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/reporting/counts/tests?from=&to=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"filters\": {\n    \"isPrivate\": false,\n    \"issuesPrevented\": false,\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/reporting/counts/tests?from=&to="

	payload := strings.NewReader("{\n  \"filters\": {\n    \"isPrivate\": false,\n    \"issuesPrevented\": false,\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/reporting/counts/tests?from=&to= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 111

{
  "filters": {
    "isPrivate": false,
    "issuesPrevented": false,
    "orgs": "",
    "projects": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/reporting/counts/tests?from=&to=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"filters\": {\n    \"isPrivate\": false,\n    \"issuesPrevented\": false,\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/reporting/counts/tests?from=&to="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"filters\": {\n    \"isPrivate\": false,\n    \"issuesPrevented\": false,\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"isPrivate\": false,\n    \"issuesPrevented\": false,\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/reporting/counts/tests?from=&to=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/reporting/counts/tests?from=&to=")
  .header("content-type", "application/json")
  .body("{\n  \"filters\": {\n    \"isPrivate\": false,\n    \"issuesPrevented\": false,\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  filters: {
    isPrivate: false,
    issuesPrevented: false,
    orgs: '',
    projects: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/reporting/counts/tests?from=&to=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/counts/tests',
  params: {from: '', to: ''},
  headers: {'content-type': 'application/json'},
  data: {filters: {isPrivate: false, issuesPrevented: false, orgs: '', projects: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/reporting/counts/tests?from=&to=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"isPrivate":false,"issuesPrevented":false,"orgs":"","projects":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/reporting/counts/tests?from=&to=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "filters": {\n    "isPrivate": false,\n    "issuesPrevented": false,\n    "orgs": "",\n    "projects": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"filters\": {\n    \"isPrivate\": false,\n    \"issuesPrevented\": false,\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/reporting/counts/tests?from=&to=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/reporting/counts/tests?from=&to=',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({filters: {isPrivate: false, issuesPrevented: false, orgs: '', projects: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/counts/tests',
  qs: {from: '', to: ''},
  headers: {'content-type': 'application/json'},
  body: {filters: {isPrivate: false, issuesPrevented: false, orgs: '', projects: ''}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/reporting/counts/tests');

req.query({
  from: '',
  to: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  filters: {
    isPrivate: false,
    issuesPrevented: false,
    orgs: '',
    projects: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/reporting/counts/tests',
  params: {from: '', to: ''},
  headers: {'content-type': 'application/json'},
  data: {filters: {isPrivate: false, issuesPrevented: false, orgs: '', projects: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/reporting/counts/tests?from=&to=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"filters":{"isPrivate":false,"issuesPrevented":false,"orgs":"","projects":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"filters": @{ @"isPrivate": @NO, @"issuesPrevented": @NO, @"orgs": @"", @"projects": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/reporting/counts/tests?from=&to="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/reporting/counts/tests?from=&to=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"filters\": {\n    \"isPrivate\": false,\n    \"issuesPrevented\": false,\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/reporting/counts/tests?from=&to=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'filters' => [
        'isPrivate' => null,
        'issuesPrevented' => null,
        'orgs' => '',
        'projects' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/reporting/counts/tests?from=&to=', [
  'body' => '{
  "filters": {
    "isPrivate": false,
    "issuesPrevented": false,
    "orgs": "",
    "projects": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/reporting/counts/tests');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'from' => '',
  'to' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'filters' => [
    'isPrivate' => null,
    'issuesPrevented' => null,
    'orgs' => '',
    'projects' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'filters' => [
    'isPrivate' => null,
    'issuesPrevented' => null,
    'orgs' => '',
    'projects' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/reporting/counts/tests');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'from' => '',
  'to' => ''
]));

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/reporting/counts/tests?from=&to=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "isPrivate": false,
    "issuesPrevented": false,
    "orgs": "",
    "projects": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/reporting/counts/tests?from=&to=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "filters": {
    "isPrivate": false,
    "issuesPrevented": false,
    "orgs": "",
    "projects": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"filters\": {\n    \"isPrivate\": false,\n    \"issuesPrevented\": false,\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/reporting/counts/tests?from=&to=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/reporting/counts/tests"

querystring = {"from":"","to":""}

payload = { "filters": {
        "isPrivate": False,
        "issuesPrevented": False,
        "orgs": "",
        "projects": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/reporting/counts/tests"

queryString <- list(
  from = "",
  to = ""
)

payload <- "{\n  \"filters\": {\n    \"isPrivate\": false,\n    \"issuesPrevented\": false,\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/reporting/counts/tests?from=&to=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"filters\": {\n    \"isPrivate\": false,\n    \"issuesPrevented\": false,\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/reporting/counts/tests') do |req|
  req.params['from'] = ''
  req.params['to'] = ''
  req.body = "{\n  \"filters\": {\n    \"isPrivate\": false,\n    \"issuesPrevented\": false,\n    \"orgs\": \"\",\n    \"projects\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/reporting/counts/tests";

    let querystring = [
        ("from", ""),
        ("to", ""),
    ];

    let payload = json!({"filters": json!({
            "isPrivate": false,
            "issuesPrevented": false,
            "orgs": "",
            "projects": ""
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/reporting/counts/tests?from=&to=' \
  --header 'content-type: application/json' \
  --data '{
  "filters": {
    "isPrivate": false,
    "issuesPrevented": false,
    "orgs": "",
    "projects": ""
  }
}'
echo '{
  "filters": {
    "isPrivate": false,
    "issuesPrevented": false,
    "orgs": "",
    "projects": ""
  }
}' |  \
  http POST '{{baseUrl}}/reporting/counts/tests?from=&to=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "filters": {\n    "isPrivate": false,\n    "issuesPrevented": false,\n    "orgs": "",\n    "projects": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/reporting/counts/tests?from=&to='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["filters": [
    "isPrivate": false,
    "issuesPrevented": false,
    "orgs": "",
    "projects": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/reporting/counts/tests?from=&to=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "results": [
    {
      "count": 0,
      "isPrivate": {
        "false": 0,
        "true": 0
      }
    }
  ]
}
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "code": 400,
  "error": {
    "innerErrors": [
      "invalid type filters.isPrivate is not a Boolean"
    ],
    "name": "ValidationError"
  },
  "ok": false
}
POST Test Dep Graph
{{baseUrl}}/test/dep-graph
BODY json

{
  "depGraph": {
    "graph": {
      "nodes": [],
      "rootNodeId": ""
    },
    "pkgManager": {
      "name": "",
      "repositories": []
    },
    "pkgs": [],
    "schemaVersion": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/test/dep-graph");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/test/dep-graph" {:content-type :json
                                                           :form-params {:depGraph {:graph {:nodes []
                                                                                            :rootNodeId ""}
                                                                                    :pkgManager {:name ""
                                                                                                 :repositories []}
                                                                                    :pkgs []
                                                                                    :schemaVersion ""}}})
require "http/client"

url = "{{baseUrl}}/test/dep-graph"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/test/dep-graph"),
    Content = new StringContent("{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/test/dep-graph");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/test/dep-graph"

	payload := strings.NewReader("{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/test/dep-graph HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 197

{
  "depGraph": {
    "graph": {
      "nodes": [],
      "rootNodeId": ""
    },
    "pkgManager": {
      "name": "",
      "repositories": []
    },
    "pkgs": [],
    "schemaVersion": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/test/dep-graph")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/test/dep-graph"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/test/dep-graph")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/test/dep-graph")
  .header("content-type", "application/json")
  .body("{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  depGraph: {
    graph: {
      nodes: [],
      rootNodeId: ''
    },
    pkgManager: {
      name: '',
      repositories: []
    },
    pkgs: [],
    schemaVersion: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/test/dep-graph');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/dep-graph',
  headers: {'content-type': 'application/json'},
  data: {
    depGraph: {
      graph: {nodes: [], rootNodeId: ''},
      pkgManager: {name: '', repositories: []},
      pkgs: [],
      schemaVersion: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/test/dep-graph';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"depGraph":{"graph":{"nodes":[],"rootNodeId":""},"pkgManager":{"name":"","repositories":[]},"pkgs":[],"schemaVersion":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/test/dep-graph',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "depGraph": {\n    "graph": {\n      "nodes": [],\n      "rootNodeId": ""\n    },\n    "pkgManager": {\n      "name": "",\n      "repositories": []\n    },\n    "pkgs": [],\n    "schemaVersion": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/test/dep-graph")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/test/dep-graph',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  depGraph: {
    graph: {nodes: [], rootNodeId: ''},
    pkgManager: {name: '', repositories: []},
    pkgs: [],
    schemaVersion: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/dep-graph',
  headers: {'content-type': 'application/json'},
  body: {
    depGraph: {
      graph: {nodes: [], rootNodeId: ''},
      pkgManager: {name: '', repositories: []},
      pkgs: [],
      schemaVersion: ''
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/test/dep-graph');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  depGraph: {
    graph: {
      nodes: [],
      rootNodeId: ''
    },
    pkgManager: {
      name: '',
      repositories: []
    },
    pkgs: [],
    schemaVersion: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/dep-graph',
  headers: {'content-type': 'application/json'},
  data: {
    depGraph: {
      graph: {nodes: [], rootNodeId: ''},
      pkgManager: {name: '', repositories: []},
      pkgs: [],
      schemaVersion: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/test/dep-graph';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"depGraph":{"graph":{"nodes":[],"rootNodeId":""},"pkgManager":{"name":"","repositories":[]},"pkgs":[],"schemaVersion":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"depGraph": @{ @"graph": @{ @"nodes": @[  ], @"rootNodeId": @"" }, @"pkgManager": @{ @"name": @"", @"repositories": @[  ] }, @"pkgs": @[  ], @"schemaVersion": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/test/dep-graph"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/test/dep-graph" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/test/dep-graph",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'depGraph' => [
        'graph' => [
                'nodes' => [
                                
                ],
                'rootNodeId' => ''
        ],
        'pkgManager' => [
                'name' => '',
                'repositories' => [
                                
                ]
        ],
        'pkgs' => [
                
        ],
        'schemaVersion' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/test/dep-graph', [
  'body' => '{
  "depGraph": {
    "graph": {
      "nodes": [],
      "rootNodeId": ""
    },
    "pkgManager": {
      "name": "",
      "repositories": []
    },
    "pkgs": [],
    "schemaVersion": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/test/dep-graph');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'depGraph' => [
    'graph' => [
        'nodes' => [
                
        ],
        'rootNodeId' => ''
    ],
    'pkgManager' => [
        'name' => '',
        'repositories' => [
                
        ]
    ],
    'pkgs' => [
        
    ],
    'schemaVersion' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'depGraph' => [
    'graph' => [
        'nodes' => [
                
        ],
        'rootNodeId' => ''
    ],
    'pkgManager' => [
        'name' => '',
        'repositories' => [
                
        ]
    ],
    'pkgs' => [
        
    ],
    'schemaVersion' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/test/dep-graph');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/test/dep-graph' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "depGraph": {
    "graph": {
      "nodes": [],
      "rootNodeId": ""
    },
    "pkgManager": {
      "name": "",
      "repositories": []
    },
    "pkgs": [],
    "schemaVersion": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/test/dep-graph' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "depGraph": {
    "graph": {
      "nodes": [],
      "rootNodeId": ""
    },
    "pkgManager": {
      "name": "",
      "repositories": []
    },
    "pkgs": [],
    "schemaVersion": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/test/dep-graph", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/test/dep-graph"

payload = { "depGraph": {
        "graph": {
            "nodes": [],
            "rootNodeId": ""
        },
        "pkgManager": {
            "name": "",
            "repositories": []
        },
        "pkgs": [],
        "schemaVersion": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/test/dep-graph"

payload <- "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/test/dep-graph")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/test/dep-graph') do |req|
  req.body = "{\n  \"depGraph\": {\n    \"graph\": {\n      \"nodes\": [],\n      \"rootNodeId\": \"\"\n    },\n    \"pkgManager\": {\n      \"name\": \"\",\n      \"repositories\": []\n    },\n    \"pkgs\": [],\n    \"schemaVersion\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/test/dep-graph";

    let payload = json!({"depGraph": json!({
            "graph": json!({
                "nodes": (),
                "rootNodeId": ""
            }),
            "pkgManager": json!({
                "name": "",
                "repositories": ()
            }),
            "pkgs": (),
            "schemaVersion": ""
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/test/dep-graph \
  --header 'content-type: application/json' \
  --data '{
  "depGraph": {
    "graph": {
      "nodes": [],
      "rootNodeId": ""
    },
    "pkgManager": {
      "name": "",
      "repositories": []
    },
    "pkgs": [],
    "schemaVersion": ""
  }
}'
echo '{
  "depGraph": {
    "graph": {
      "nodes": [],
      "rootNodeId": ""
    },
    "pkgManager": {
      "name": "",
      "repositories": []
    },
    "pkgs": [],
    "schemaVersion": ""
  }
}' |  \
  http POST {{baseUrl}}/test/dep-graph \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "depGraph": {\n    "graph": {\n      "nodes": [],\n      "rootNodeId": ""\n    },\n    "pkgManager": {\n      "name": "",\n      "repositories": []\n    },\n    "pkgs": [],\n    "schemaVersion": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/test/dep-graph
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["depGraph": [
    "graph": [
      "nodes": [],
      "rootNodeId": ""
    ],
    "pkgManager": [
      "name": "",
      "repositories": []
    ],
    "pkgs": [],
    "schemaVersion": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/test/dep-graph")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "issues": [
    {
      "fixInfo": {},
      "issueId": "SNYK-JAVA-CHQOSLOGBACK-30208",
      "pkgName": "ch.qos.logback:logback-core",
      "pkgVersion": "1.0.13"
    }
  ],
  "issuesData": {
    "SNYK-JAVA-CHQOSLOGBACK-30208": {
      "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "credit": [
        "Unknown"
      ],
      "cvssScore": 9.8,
      "description": "## Overview\n\n[ch.qos.logback:logback-core](https://mvnrepository.com/artifact/ch.qos.logback/logback-core) is a logback-core module.\n\n\nAffected versions of this package are vulnerable to Arbitrary Code Execution.\nA configuration can be turned on to allow remote logging through interfaces that accept untrusted serialized data. Authenticated attackers on the adjacent network can exploit this vulnerability to run arbitrary code through the deserialization of custom gadget chains.\n\n## Details\nSerialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like _Remote Method Invocation (RMI)_, _Java Management Extension (JMX)_, _Java Messaging System (JMS)_, _Action Message Format (AMF)_, _Java Server Faces (JSF) ViewState_, etc.\r\n\r\n  \r\n\r\n_Deserialization of untrusted data_ ([CWE-502](https://cwe.mitre.org/data/definitions/502.html)), is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, letting the attacker to control the state or the flow of the execution.\r\n\r\n  \r\n\r\nJava deserialization issues have been known for years. However, interest in the issue intensified greatly in 2015, when classes that could be abused to achieve remote code execution were found in a [popular library (Apache Commons Collection)](https://snyk.io/vuln/SNYK-JAVA-COMMONSCOLLECTIONS-30078). These classes were used in zero-days affecting IBM WebSphere, Oracle WebLogic and many other products.\r\n\r\n  \r\n\r\nAn attacker just needs to identify a piece of software that has both a vulnerable class on its path, and performs deserialization on untrusted data. Then all they need to do is send the payload into the deserializer, getting the command executed.\r\n\r\n  \r\n\r\n> Developers put too much trust in Java Object Serialization. Some even de-serialize objects pre-authentication. When deserializing an Object in Java you typically cast it to an expected type, and therefore Java's strict type system will ensure you only get valid object trees. Unfortunately, by the time the type checking happens, platform code has already created and executed significant logic. So, before the final type is checked a lot of code is executed from the readObject() methods of various objects, all of which is out of the developer's control. By combining the readObject() methods of various classes which are available on the classpath of the vulnerable application an attacker can execute functions (including calling Runtime.exec() to execute local OS commands).\r\n\r\n- Apache Blog\r\n\r\n  \r\n\r\nThe vulnerability, also know as _Mad Gadget_\r\n\r\n> Mad Gadget is one of the most pernicious vulnerabilities we’ve seen. By merely existing on the Java classpath, seven “gadget” classes in Apache Commons Collections (versions 3.0, 3.1, 3.2, 3.2.1, and 4.0) make object deserialization for the entire JVM process Turing complete with an exec function. Since many business applications use object deserialization to send messages across the network, it would be like hiring a bank teller who was trained to hand over all the money in the vault if asked to do so politely, and then entrusting that teller with the key. The only thing that would keep a bank safe in such a circumstance is that most people wouldn’t consider asking such a question.\r\n\r\n- Google\n\n## Remediation\n\nUpgrade `ch.qos.logback:logback-core` to version 1.1.11 or higher.\n\n\n## References\n\n- [Logback News](https://logback.qos.ch/news.html)\n\n- [NVD](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-5929/)\n",
      "disclosureTime": "2017-03-13T06:59:00Z",
      "fixedIn": [
        "1.1.11"
      ],
      "id": "SNYK-JAVA-CHQOSLOGBACK-30208",
      "identifiers": {
        "CVE": [
          "CVE-2017-5929"
        ],
        "CWE": [
          "CWE-502"
        ]
      },
      "language": "java",
      "mavenModuleName": {
        "artifactId": "logback-core",
        "groupId": "ch.qos.logback"
      },
      "moduleName": "ch.qos.logback:logback-core",
      "packageManager": "maven",
      "packageName": "ch.qos.logback:logback-core",
      "patches": [],
      "semver": {
        "vulnerable": [
          "[, 1.1.11)"
        ]
      },
      "severity": "critical",
      "title": "Arbitrary Code Execution"
    }
  },
  "ok": false,
  "org": {
    "id": "4a18d42f-0706-4ad0-b127-24078731fbed",
    "name": "atokeneduser"
  },
  "packageManager": "maven"
}
POST Test Gopkg.toml & Gopkg.lock File
{{baseUrl}}/test/golangdep
BODY json

{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/test/golangdep");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/test/golangdep" {:content-type :json
                                                           :form-params {:encoding ""
                                                                         :files {:additional []
                                                                                 :target {:contents ""}}}})
require "http/client"

url = "{{baseUrl}}/test/golangdep"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/test/golangdep"),
    Content = new StringContent("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/test/golangdep");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/test/golangdep"

	payload := strings.NewReader("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/test/golangdep HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 103

{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/test/golangdep")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/test/golangdep"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/test/golangdep")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/test/golangdep")
  .header("content-type", "application/json")
  .body("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  encoding: '',
  files: {
    additional: [],
    target: {
      contents: ''
    }
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/test/golangdep');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/golangdep',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {additional: [], target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/test/golangdep';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"additional":[],"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/test/golangdep',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "encoding": "",\n  "files": {\n    "additional": [],\n    "target": {\n      "contents": ""\n    }\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/test/golangdep")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/test/golangdep',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({encoding: '', files: {additional: [], target: {contents: ''}}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/golangdep',
  headers: {'content-type': 'application/json'},
  body: {encoding: '', files: {additional: [], target: {contents: ''}}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/test/golangdep');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  encoding: '',
  files: {
    additional: [],
    target: {
      contents: ''
    }
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/golangdep',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {additional: [], target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/test/golangdep';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"additional":[],"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"encoding": @"",
                              @"files": @{ @"additional": @[  ], @"target": @{ @"contents": @"" } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/test/golangdep"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/test/golangdep" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/test/golangdep",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'encoding' => '',
    'files' => [
        'additional' => [
                
        ],
        'target' => [
                'contents' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/test/golangdep', [
  'body' => '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/test/golangdep');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'encoding' => '',
  'files' => [
    'additional' => [
        
    ],
    'target' => [
        'contents' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'encoding' => '',
  'files' => [
    'additional' => [
        
    ],
    'target' => [
        'contents' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/test/golangdep');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/test/golangdep' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/test/golangdep' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/test/golangdep", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/test/golangdep"

payload = {
    "encoding": "",
    "files": {
        "additional": [],
        "target": { "contents": "" }
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/test/golangdep"

payload <- "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/test/golangdep")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/test/golangdep') do |req|
  req.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/test/golangdep";

    let payload = json!({
        "encoding": "",
        "files": json!({
            "additional": (),
            "target": json!({"contents": ""})
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/test/golangdep \
  --header 'content-type: application/json' \
  --data '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}'
echo '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}' |  \
  http POST {{baseUrl}}/test/golangdep \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "encoding": "",\n  "files": {\n    "additional": [],\n    "target": {\n      "contents": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/test/golangdep
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "encoding": "",
  "files": [
    "additional": [],
    "target": ["contents": ""]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/test/golangdep")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "dependencyCount": 101,
  "issues": {
    "licenses": [
      {
        "from": [
          "github.com/hashicorp/hcl/json/token@v1.0.0"
        ],
        "id": "snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "language": "golang",
        "package": "github.com/hashicorp/hcl/json/token",
        "packageManager": "golang",
        "semver": {
          "vulnerable": [
            ">=0"
          ],
          "vulnerableHashes": [
            "*"
          ]
        },
        "severity": "medium",
        "title": "MPL-2.0 license",
        "type": "license",
        "url": "http://localhost:34612/vuln/snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "version": "v1.0.0"
      },
      {
        "from": [
          "github.com/hashicorp/hcl/json/scanner@v1.0.0"
        ],
        "id": "snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "language": "golang",
        "package": "github.com/hashicorp/hcl/json/scanner",
        "packageManager": "golang",
        "semver": {
          "vulnerable": [
            ">=0"
          ],
          "vulnerableHashes": [
            "*"
          ]
        },
        "severity": "medium",
        "title": "MPL-2.0 license",
        "type": "license",
        "url": "http://localhost:34612/vuln/snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "version": "v1.0.0"
      },
      {
        "from": [
          "github.com/hashicorp/hcl/json/parser@v1.0.0"
        ],
        "id": "snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "language": "golang",
        "package": "github.com/hashicorp/hcl/json/parser",
        "packageManager": "golang",
        "semver": {
          "vulnerable": [
            ">=0"
          ],
          "vulnerableHashes": [
            "*"
          ]
        },
        "severity": "medium",
        "title": "MPL-2.0 license",
        "type": "license",
        "url": "http://localhost:34612/vuln/snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "version": "v1.0.0"
      },
      {
        "from": [
          "github.com/hashicorp/hcl/hcl/token@v1.0.0"
        ],
        "id": "snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "language": "golang",
        "package": "github.com/hashicorp/hcl/hcl/token",
        "packageManager": "golang",
        "semver": {
          "vulnerable": [
            ">=0"
          ],
          "vulnerableHashes": [
            "*"
          ]
        },
        "severity": "medium",
        "title": "MPL-2.0 license",
        "type": "license",
        "url": "http://localhost:34612/vuln/snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "version": "v1.0.0"
      },
      {
        "from": [
          "github.com/hashicorp/hcl/hcl/strconv@v1.0.0"
        ],
        "id": "snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "language": "golang",
        "package": "github.com/hashicorp/hcl/hcl/strconv",
        "packageManager": "golang",
        "semver": {
          "vulnerable": [
            ">=0"
          ],
          "vulnerableHashes": [
            "*"
          ]
        },
        "severity": "medium",
        "title": "MPL-2.0 license",
        "type": "license",
        "url": "http://localhost:34612/vuln/snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "version": "v1.0.0"
      },
      {
        "from": [
          "github.com/hashicorp/hcl/hcl/scanner@v1.0.0"
        ],
        "id": "snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "language": "golang",
        "package": "github.com/hashicorp/hcl/hcl/scanner",
        "packageManager": "golang",
        "semver": {
          "vulnerable": [
            ">=0"
          ],
          "vulnerableHashes": [
            "*"
          ]
        },
        "severity": "medium",
        "title": "MPL-2.0 license",
        "type": "license",
        "url": "http://localhost:34612/vuln/snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "version": "v1.0.0"
      },
      {
        "from": [
          "github.com/hashicorp/hcl/hcl/printer@v1.0.0"
        ],
        "id": "snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "language": "golang",
        "package": "github.com/hashicorp/hcl/hcl/printer",
        "packageManager": "golang",
        "semver": {
          "vulnerable": [
            ">=0"
          ],
          "vulnerableHashes": [
            "*"
          ]
        },
        "severity": "medium",
        "title": "MPL-2.0 license",
        "type": "license",
        "url": "http://localhost:34612/vuln/snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "version": "v1.0.0"
      },
      {
        "from": [
          "github.com/hashicorp/hcl/hcl/parser@v1.0.0"
        ],
        "id": "snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "language": "golang",
        "package": "github.com/hashicorp/hcl/hcl/parser",
        "packageManager": "golang",
        "semver": {
          "vulnerable": [
            ">=0"
          ],
          "vulnerableHashes": [
            "*"
          ]
        },
        "severity": "medium",
        "title": "MPL-2.0 license",
        "type": "license",
        "url": "http://localhost:34612/vuln/snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "version": "v1.0.0"
      },
      {
        "from": [
          "github.com/hashicorp/hcl/hcl/ast@v1.0.0"
        ],
        "id": "snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "language": "golang",
        "package": "github.com/hashicorp/hcl/hcl/ast",
        "packageManager": "golang",
        "semver": {
          "vulnerable": [
            ">=0"
          ],
          "vulnerableHashes": [
            "*"
          ]
        },
        "severity": "medium",
        "title": "MPL-2.0 license",
        "type": "license",
        "url": "http://localhost:34612/vuln/snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "version": "v1.0.0"
      },
      {
        "from": [
          "github.com/hashicorp/hcl@v1.0.0"
        ],
        "id": "snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "language": "golang",
        "package": "github.com/hashicorp/hcl",
        "packageManager": "golang",
        "semver": {
          "vulnerable": [
            ">=0"
          ],
          "vulnerableHashes": [
            "*"
          ]
        },
        "severity": "medium",
        "title": "MPL-2.0 license",
        "type": "license",
        "url": "http://localhost:34612/vuln/snyk:lic:golang:github.com:hashicorp:hcl:MPL-2.0",
        "version": "v1.0.0"
      }
    ],
    "vulnerabilities": [
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
        "credit": [
          "josselin-c"
        ],
        "cvssScore": 8.1,
        "description": "## Overview\n[github.com/satori/go.uuid](https://github.com/satori/go.uuid) provides pure Go implementation of Universally Unique Identifier (UUID).\r\n\r\nAffected versions of this package are vulnerable to Insecure Randomness producing predictable `UUID` identifiers due to the limited number of bytes read when using the `g.rand.Read` function.\r\n \r\n## Disclosure Timeline\r\n* Jun 3th, 2018 - The vulnerability introduced by replacing the function `rand.Read()` with the function `g.rand.Read()` (https://github.com/satori/go.uuid/commit/0ef6afb2f6cdd6cdaeee3885a95099c63f18fc8c)\r\n* Mar 23th, 2018- An issue was reported.\r\n* Oct 16th, 2018 Issue fixed\r\n\r\n## Remediation\r\nA fix was merged into the master branch but not yet published.\n\n## References\n- [GitHub Commit](https://github.com/satori/go.uuid/commit/d91630c8510268e75203009fe7daf2b8e1d60c45)\n- [Github Issue](https://github.com/satori/go.uuid/issues/73)\n",
        "disclosureTime": "2018-03-23T08:57:24Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "github.com/satori/go.uuid@v1.2.0"
        ],
        "functions": [],
        "id": "SNYK-GOLANG-GITHUBCOMSATORIGOUUID-72488",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-338"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "golang",
        "package": "github.com/satori/go.uuid",
        "packageManager": "golang",
        "patches": [],
        "publicationTime": "2018-10-24T08:56:41Z",
        "semver": {
          "hashesRange": [
            ">=0ef6afb2f6cdd6cdaeee3885a95099c63f18fc8c 
POST Test composer.json & composer.lock file
{{baseUrl}}/test/composer
BODY json

{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/test/composer");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/test/composer" {:content-type :json
                                                          :form-params {:encoding ""
                                                                        :files {:additional []
                                                                                :target {:contents ""}}}})
require "http/client"

url = "{{baseUrl}}/test/composer"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/test/composer"),
    Content = new StringContent("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/test/composer");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/test/composer"

	payload := strings.NewReader("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/test/composer HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 103

{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/test/composer")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/test/composer"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/test/composer")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/test/composer")
  .header("content-type", "application/json")
  .body("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  encoding: '',
  files: {
    additional: [],
    target: {
      contents: ''
    }
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/test/composer');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/composer',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {additional: [], target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/test/composer';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"additional":[],"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/test/composer',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "encoding": "",\n  "files": {\n    "additional": [],\n    "target": {\n      "contents": ""\n    }\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/test/composer")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/test/composer',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({encoding: '', files: {additional: [], target: {contents: ''}}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/composer',
  headers: {'content-type': 'application/json'},
  body: {encoding: '', files: {additional: [], target: {contents: ''}}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/test/composer');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  encoding: '',
  files: {
    additional: [],
    target: {
      contents: ''
    }
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/composer',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {additional: [], target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/test/composer';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"additional":[],"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"encoding": @"",
                              @"files": @{ @"additional": @[  ], @"target": @{ @"contents": @"" } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/test/composer"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/test/composer" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/test/composer",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'encoding' => '',
    'files' => [
        'additional' => [
                
        ],
        'target' => [
                'contents' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/test/composer', [
  'body' => '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/test/composer');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'encoding' => '',
  'files' => [
    'additional' => [
        
    ],
    'target' => [
        'contents' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'encoding' => '',
  'files' => [
    'additional' => [
        
    ],
    'target' => [
        'contents' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/test/composer');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/test/composer' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/test/composer' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/test/composer", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/test/composer"

payload = {
    "encoding": "",
    "files": {
        "additional": [],
        "target": { "contents": "" }
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/test/composer"

payload <- "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/test/composer")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/test/composer') do |req|
  req.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/test/composer";

    let payload = json!({
        "encoding": "",
        "files": json!({
            "additional": (),
            "target": json!({"contents": ""})
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/test/composer \
  --header 'content-type: application/json' \
  --data '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}'
echo '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}' |  \
  http POST {{baseUrl}}/test/composer \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "encoding": "",\n  "files": {\n    "additional": [],\n    "target": {\n      "contents": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/test/composer
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "encoding": "",
  "files": [
    "additional": [],
    "target": ["contents": ""]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/test/composer")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "dependencyCount": 31,
  "issues": {
    "licenses": [],
    "vulnerabilities": [
      {
        "CVSSv3": "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
        "credit": [
          "Ryan Lane"
        ],
        "cvssScore": 7.8,
        "description": "## Overview\n  Affected versions of [`aws/aws-sdk-php`](https://packagist.org/packages/aws/aws-sdk-php) are vulnerable to Arbitrary Code Execution.\n\nDoctrine Annotations before 1.2.7, Cache before 1.3.2 and 1.4.x before 1.4.2, Common before 2.4.3 and 2.5.x before 2.5.1, ORM before 2.4.8 or 2.5.x before 2.5.1, MongoDB ODM before 1.0.2, and MongoDB ODM Bundle before 3.0.1 use world-writable permissions for cache directories, which allows local users to execute arbitrary PHP code with additional privileges by leveraging an application with the umask set to 0 and that executes cache entries as code.\n\n## Remediation\nUpgrade `aws/aws-sdk-php` to version 3.2.1 or higher.\n\n## References\n- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2015-5723)\n- [Github ChangeLog](https://github.com/aws/aws-sdk-php/blob/master/CHANGELOG.md#321---2015-07-23)\n",
        "disclosureTime": "2015-07-24T00:41:41Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "aws/aws-sdk-php@3.0.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-AWSAWSSDKPHP-70003",
        "identifiers": {
          "CVE": [
            "CVE-2015-5723"
          ],
          "CWE": [
            "CWE-264"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "aws/aws-sdk-php",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2015-07-24T00:41:41Z",
        "semver": {
          "vulnerable": [
            "<3.2.1"
          ]
        },
        "severity": "high",
        "title": "Arbitrary Code Execution",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-AWSAWSSDKPHP-70003",
        "version": "3.0.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
        "credit": [
          "Ryan Lane"
        ],
        "cvssScore": 7.8,
        "description": "## Overview\nAffected versions of [`doctrine/common`](https://packagist.org/packages/doctrine/common) are vulnerable to Arbitrary Code Execution.\n\nDoctrine Annotations before 1.2.7, Cache before 1.3.2 and 1.4.x before 1.4.2, Common before 2.4.3 and 2.5.x before 2.5.1, ORM before 2.4.8 or 2.5.x before 2.5.1, MongoDB ODM before 1.0.2, and MongoDB ODM Bundle before 3.0.1 use world-writable permissions for cache directories, which allows local users to execute arbitrary PHP code with additional privileges by leveraging an application with the umask set to 0 and that executes cache entries as code.\n\n## Remediation\nUpgrade `doctrine/common` to version 2.5.1, 2.4.3 or higher.\n\n## References\n- [Doctrine Release Notes](http://www.doctrine-project.org/2015/08/31/security_misconfiguration_vulnerability_in_various_doctrine_projects.html)\n",
        "disclosureTime": "2015-08-31T14:42:59Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "doctrine/common@2.5.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-DOCTRINECOMMON-70024",
        "identifiers": {
          "CVE": [
            "CVE-2015-5723"
          ],
          "CWE": [
            "CWE-94"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "doctrine/common",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2015-08-31T14:42:59Z",
        "semver": {
          "vulnerable": [
            "<2.4.3",
            ">=2.5.0, <2.5.1"
          ]
        },
        "severity": "high",
        "title": "Arbitrary Code Execution",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-DOCTRINECOMMON-70024",
        "version": "2.5.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
        "credit": [
          "Ryan Lane"
        ],
        "cvssScore": 7.8,
        "description": "## Overview\nAffected versions of [`doctrine/common`](https://packagist.org/packages/doctrine/common) are vulnerable to Arbitrary Code Execution.\n\nDoctrine Annotations before 1.2.7, Cache before 1.3.2 and 1.4.x before 1.4.2, Common before 2.4.3 and 2.5.x before 2.5.1, ORM before 2.4.8 or 2.5.x before 2.5.1, MongoDB ODM before 1.0.2, and MongoDB ODM Bundle before 3.0.1 use world-writable permissions for cache directories, which allows local users to execute arbitrary PHP code with additional privileges by leveraging an application with the umask set to 0 and that executes cache entries as code.\n\n## Remediation\nUpgrade `doctrine/common` to version 2.5.1, 2.4.3 or higher.\n\n## References\n- [Doctrine Release Notes](http://www.doctrine-project.org/2015/08/31/security_misconfiguration_vulnerability_in_various_doctrine_projects.html)\n",
        "disclosureTime": "2015-08-31T14:42:59Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1",
          "doctrine/common@2.5.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-DOCTRINECOMMON-70024",
        "identifiers": {
          "CVE": [
            "CVE-2015-5723"
          ],
          "CWE": [
            "CWE-94"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "doctrine/common",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2015-08-31T14:42:59Z",
        "semver": {
          "vulnerable": [
            "<2.4.3",
            ">=2.5.0, <2.5.1"
          ]
        },
        "severity": "high",
        "title": "Arbitrary Code Execution",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-DOCTRINECOMMON-70024",
        "version": "2.5.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 6.1,
        "description": "## Overview\n\n[symfony/symfony](https://packagist.org/packages/symfony/symfony) is a PHP framework for web applications and a set of reusable PHP components.\n\n\nAffected versions of this package are vulnerable to Cross-site Scripting (XSS).\nA remote attacker could inject arbitrary web script or HTML via the \"file\" parameter in a URL.\n\n## Details\nA cross-site scripting attack occurs when the attacker tricks a legitimate web-based application or site to accept a request as originating from a trusted source.\r\n\r\nThis is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML)  in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.\r\n\r\nֿInjecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.\r\n\r\nEscaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, `<` can be coded as  `<`; and `>` can be coded as `>`; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses `<` and `>` as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.\r\n \r\nThe most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware. \r\n\r\n### Types of attacks\r\nThere are a few methods by which XSS can be manipulated:\r\n\r\n|Type|Origin|Description|\r\n|--|--|--|\r\n|**Stored**|Server|The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.|\r\n|**Reflected**|Server|The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.| \r\n|**DOM-based**|Client|The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.|\r\n|**Mutated**| |The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.|\r\n\r\n### Affected environments\r\nThe following environments are susceptible to an XSS attack:\r\n\r\n* Web servers\r\n* Application servers\r\n* Web application environments\r\n\r\n### How to prevent\r\nThis section describes the top best practices designed to specifically protect your code: \r\n\r\n* Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches. \r\n* Convert special characters such as `?`, `&`, `/`, `<`, `>` and spaces to their respective HTML or URL encoded equivalents. \r\n* Give users the option to disable client-side scripts.\r\n* Redirect invalid requests.\r\n* Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.\r\n* Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.\r\n* Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.\n\n## Remediation\n\nUpgrade `symfony/symfony` to version 4.1 or higher.\n\n\n## References\n\n- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2018-12040)\n",
        "disclosureTime": "2018-06-08T00:35:49Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-173743",
        "identifiers": {
          "CVE": [
            "CVE-2018-12040"
          ],
          "CWE": [
            "CWE-79"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2018-06-14T00:35:49Z",
        "semver": {
          "vulnerable": [
            "<4.1"
          ]
        },
        "severity": "medium",
        "title": "Cross-site Scripting (XSS)",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-173743",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N",
        "credit": [
          "Chaosversum"
        ],
        "cvssScore": 7.2,
        "description": "## Overview\n\n[symfony/symfony](https://packagist.org/packages/symfony/symfony) is a PHP framework for web applications and a set of reusable PHP components.\n\n\nAffected versions of this package are vulnerable to Host Header Injection.\nWhen using `HttpCache`, the values of the `X-Forwarded-Host` headers are implicitly set as trusted while this should be forbidden, leading to potential host header injection.\n\n## Remediation\n\nUpgrade `symfony/symfony` to version 2.7.49, 2.8.44, 3.3.18, 3.4.14, 4.0.14, 4.1.2 or higher.\n\n\n## References\n\n- [GitHub Commit](https://github.com/symfony/symfony/commit/725dee4cd8b4ccd52e335ae4b4522242cea9bd4a)\n\n- [GitHub Release Tag 4.1.3](https://github.com/symfony/symfony/releases/tag/v4.1.3)\n\n- [Symphony Security Blog](https://symfony.com/blog/cve-2018-14774-possible-host-header-injection-when-using-httpcache)\n",
        "disclosureTime": "2018-07-31T17:24:43Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-173744",
        "identifiers": {
          "CVE": [
            "CVE-2018-14774"
          ],
          "CWE": [
            "CWE-444"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2018-08-05T13:44:27Z",
        "semver": {
          "vulnerable": [
            "<2.7.49",
            ">=2.8.0, <2.8.44",
            ">=3.3.0, <3.3.18",
            ">=3.4.0, <3.4.14",
            ">=4.0.0, <4.0.14",
            ">=4.1.0, <4.1.2"
          ]
        },
        "severity": "high",
        "title": "Host Header Injection",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-173744",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 6.1,
        "description": "## Overview\n\n[symfony/symfony](https://packagist.org/packages/symfony/symfony) is a PHP framework for web applications and a set of reusable PHP components.\n\n\nAffected versions of this package are vulnerable to Cross-site Scripting (XSS)\nvia the content page.\n\n## Details\nA cross-site scripting attack occurs when the attacker tricks a legitimate web-based application or site to accept a request as originating from a trusted source.\r\n\r\nThis is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML)  in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.\r\n\r\nֿInjecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.\r\n\r\nEscaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, `<` can be coded as  `<`; and `>` can be coded as `>`; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses `<` and `>` as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.\r\n \r\nThe most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware. \r\n\r\n### Types of attacks\r\nThere are a few methods by which XSS can be manipulated:\r\n\r\n|Type|Origin|Description|\r\n|--|--|--|\r\n|**Stored**|Server|The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.|\r\n|**Reflected**|Server|The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.| \r\n|**DOM-based**|Client|The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.|\r\n|**Mutated**| |The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.|\r\n\r\n### Affected environments\r\nThe following environments are susceptible to an XSS attack:\r\n\r\n* Web servers\r\n* Application servers\r\n* Web application environments\r\n\r\n### How to prevent\r\nThis section describes the top best practices designed to specifically protect your code: \r\n\r\n* Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches. \r\n* Convert special characters such as `?`, `&`, `/`, `<`, `>` and spaces to their respective HTML or URL encoded equivalents. \r\n* Give users the option to disable client-side scripts.\r\n* Redirect invalid requests.\r\n* Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.\r\n* Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.\r\n* Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.\n\n## Remediation\n\nUpgrade `symfony/symfony` to version 2.7.7 or higher.\n\n\n## References\n\n- [GitHub Commit](https://github.com/symphonycms/symphony-2/commit/1ace6b31867cc83267b3550686271c9c65ac3ec0)\n\n- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2018-12043)\n",
        "disclosureTime": "2018-06-07T21:05:47Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-173745",
        "identifiers": {
          "CVE": [
            "CVE-2018-12043"
          ],
          "CWE": [
            "CWE-79"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2018-06-13T10:56:51Z",
        "semver": {
          "vulnerable": [
            "<2.7.7"
          ]
        },
        "severity": "medium",
        "title": "Cross-site Scripting (XSS)",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-173745",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N",
        "credit": [
          "Alexandre Salome"
        ],
        "cvssScore": 3.7,
        "description": "## Overview\nAffected versions of [`symfony/symfony`](https://packagist.org/packages/symfony/symfony) are vulnerable to Loss of Information.\n\nWhen using the Validator component, if Symfony\\\\Component\\\\Validator\\\\Mapping\\\\Cache\\\\ApcCache is enabled (or any other cache implementing Symfony\\\\Component\\\\Validator\\\\Mapping\\\\Cache\\\\CacheInterface), some information is lost during serialization (the collectionCascaded and the collectionCascadedDeeply fields).\n\n## Remediation\nUpgrade `symfony/symfony` to version 2.3.3, 2.1.12, 2.2.5, 2.0.24 or higher.\n\n## References\n- [Symfony Release Notes](http://symfony.com/blog/security-releases-symfony-2-0-24-2-1-12-2-2-5-and-2-3-3-released)\n",
        "disclosureTime": "2013-08-17T07:55:32Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-70207",
        "identifiers": {
          "CVE": [
            "CVE-2013-4751"
          ],
          "CWE": [
            "CWE-221"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2013-08-17T07:55:32Z",
        "semver": {
          "vulnerable": [
            ">=2.3.0, <2.3.3",
            ">=2.1.0, <2.1.12",
            ">=2.2.0, <2.2.5",
            ">=2, <2.0.24"
          ]
        },
        "severity": "low",
        "title": "Loss of Information",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-70207",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N",
        "credit": [
          "Jordan Alliot"
        ],
        "cvssScore": 8.2,
        "description": "## Overview\nAffected versions of [`symfony/symfony`](https://packagist.org/packages/symfony/symfony) are vulnerable to HTTP Host Header Poisoning.\n\n## Remediation\nUpgrade `symfony/symfony` to version 2.3.3, 2.1.12, 2.2.5, 2.0.24 or higher.\n\n## References\n- [Symfony Release Notes](http://symfony.com/blog/security-releases-symfony-2-0-24-2-1-12-2-2-5-and-2-3-3-released)\n",
        "disclosureTime": "2013-08-17T09:14:49Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-70208",
        "identifiers": {
          "CVE": [
            "CVE-2013-4752"
          ],
          "CWE": [
            "CWE-74"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2013-08-17T09:14:49Z",
        "semver": {
          "vulnerable": [
            ">=2.3.0, <2.3.3",
            ">=2.1.0, <2.1.12",
            ">=2.2.0, <2.2.5",
            ">=2, <2.0.24"
          ]
        },
        "severity": "high",
        "title": "HTTP Host Header Poisoning",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-70208",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 5.3,
        "description": "## Overview\nAffected versions of [`symfony/symfony`](https://packagist.org/packages/symfony/symfony) are vulnerable to Denial of Service (DoS).\n\nThe Security component in Symfony 2.0.x before 2.0.25, 2.1.x before 2.1.13, 2.2.x before 2.2.9, and 2.3.x before 2.3.6 allows remote attackers to cause a denial of service (CPU consumption) via a long password that triggers an expensive hash computation, as demonstrated by a PBKDF2 computation, a similar issue to [CVE-2013-5750](https://snyk.io/vuln/SNYK-PHP-FRIENDSOFSYMFONYUSERBUNDLE-70102).\n\n## Details\nDenial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.\r\n\r\nUnlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.\r\n\r\nOne popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.\r\n\r\nWhen it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.\r\n\r\nTwo common types of DoS vulnerabilities:\r\n\r\n* High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, [commons-fileupload:commons-fileupload](SNYK-JAVA-COMMONSFILEUPLOAD-30082).\r\n\r\n* Crash - An attacker sending crafted requests that could cause the system to crash. For Example,  [npm `ws` package](npm:ws:20171108)\n\n## Remediation\nUpgrade `symfony/symfony` to version 2.3.6, 2.1.13, 2.2.9, 2.0.25 or higher.\n\n## References\n- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2013-5958)\n- [Symfony Release Notes](http://symfony.com/blog/security-releases-cve-2013-5958-symfony-2-0-25-2-1-13-2-2-9-and-2-3-6-released)\n",
        "disclosureTime": "2013-10-10T08:30:51Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-70209",
        "identifiers": {
          "CVE": [
            "CVE-2013-5958"
          ],
          "CWE": [
            "CWE-400"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2013-10-10T08:30:51Z",
        "semver": {
          "vulnerable": [
            ">=2, <2.0.25",
            ">=2.1.0, <2.1.13",
            ">=2.2.0, <2.2.9",
            ">=2.3.0, <2.3.6"
          ]
        },
        "severity": "medium",
        "title": "Denial of Service (DoS)",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-70209",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L",
        "credit": [
          "Jeremy Derussé"
        ],
        "cvssScore": 5.6,
        "description": "## Overview\nAffected versions of [`symfony/symfony`](https://packagist.org/packages/symfony/symfony) are vulnerable to Arbitrary Code Injection.\n\n## Remediation\nUpgrade `symfony/symfony` to version 2.3.19, 2.2.0, 2.4.9, 2.5.4, 2.3.0, 2.1.0 or higher.\n\n## References\n- [Symfony Release Notes](http://symfony.com/blog/security-releases-cve-2014-4931-symfony-2-3-18-2-4-8-and-2-5-2-released)\n- [GitHub Commit](https://github.com/symfony/symfony/commit/06a80fbdbe744ad6f3010479ba64ef5cf35dd9af)\n",
        "disclosureTime": "2014-07-25T22:18:02Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-70210",
        "identifiers": {
          "CVE": [
            "CVE-2014-4931"
          ],
          "CWE": [
            "CWE-94"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2014-07-25T22:18:02Z",
        "semver": {
          "vulnerable": [
            ">=2.3.0, <2.3.19",
            ">=2.1.0, <2.2.0",
            ">=2.4.0, <2.4.9",
            ">=2.5.0, <2.5.4",
            ">=2.2.0, <2.3.0",
            ">=2, <2.1.0"
          ]
        },
        "severity": "medium",
        "title": "Arbitrary Code Injection",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-70210",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 5.3,
        "description": "## Overview\nAffected versions of [`symfony/symfony`](https://packagist.org/packages/symfony/symfony) are vulnerable to Denial of Service (DoS).\n\n## Details\nDenial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.\r\n\r\nUnlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.\r\n\r\nOne popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.\r\n\r\nWhen it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.\r\n\r\nTwo common types of DoS vulnerabilities:\r\n\r\n* High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, [commons-fileupload:commons-fileupload](SNYK-JAVA-COMMONSFILEUPLOAD-30082).\r\n\r\n* Crash - An attacker sending crafted requests that could cause the system to crash. For Example,  [npm `ws` package](npm:ws:20171108)\n\n## Remediation\nUpgrade `symfony/symfony` to version 2.3.19, 2.4.9, 2.5.4 or higher.\n\n## References\n- [Symfony Release Notes](http://symfony.com/blog/cve-2014-5244-denial-of-service-with-a-malicious-http-host-header)\n- [GitHub PR](https://github.com/symfony/symfony/pull/11828)\n- [GitHub Commit](https://github.com/symfony/symfony/commit/1ee96a8b1b0987ffe2a62dca7ad268bf9edfa9b8)\n",
        "disclosureTime": "2014-09-03T07:37:21Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-70211",
        "identifiers": {
          "CVE": [
            "CVE-2014-5244"
          ],
          "CWE": [
            "CWE-400"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2014-09-03T07:37:21Z",
        "semver": {
          "vulnerable": [
            ">=2, <2.3.19",
            ">=2.4.0, <2.4.9",
            ">=2.5.0, <2.5.4"
          ]
        },
        "severity": "medium",
        "title": "Denial of Service (DoS)",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-70211",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N",
        "credit": [
          "Cédric Nirousset",
          "Trent Steel",
          "Christophe Coevoet"
        ],
        "cvssScore": 3.7,
        "description": "## Overview\nAffected versions of [`symfony/symfony`](https://packagist.org/packages/symfony/symfony) are vulnerable to Information Exposure.\n\nWhen you enable the ESI feature and when you are using a proxy like Varnish that you configured as a trusted proxy, the FragmentHandler considered requests to render fragments as coming from a trusted source, even if the client was requesting them directly. Symfony can not distinguish between ESI requests done on behalf of the client by Varnish and faked fragment requests coming directly from the client.\n\n## Remediation\nUpgrade `symfony/symfony` to version 2.3.19, 2.2.0, 2.4.9, 2.5.4, 2.3.0, 2.1.0 or higher.\n\n## References\n- [Symfony Release Notes](http://symfony.com/blog/cve-2014-5245-direct-access-of-esi-urls-behind-a-trusted-proxy)\n- [GitHub PR](https://github.com/symfony/symfony/pull/11831)\n",
        "disclosureTime": "2014-09-03T07:40:02Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-70212",
        "identifiers": {
          "CVE": [
            "CVE-2014-5245"
          ],
          "CWE": [
            "CWE-200"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2014-09-03T07:40:02Z",
        "semver": {
          "vulnerable": [
            ">=2.3.0, <2.3.19",
            ">=2.1.0, <2.2.0",
            ">=2.4.0, <2.4.9",
            ">=2.5.0, <2.5.4",
            ">=2.2.0, <2.3.0",
            ">=2, <2.1.0"
          ]
        },
        "severity": "low",
        "title": "Information Exposure",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-70212",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N",
        "credit": [
          "Damien Tournoud"
        ],
        "cvssScore": 3.7,
        "description": "## Overview\nAffected versions of [`symfony/symfony`](https://packagist.org/packages/symfony/symfony) are vulnerable to Authentication Bypass.\n\nWhen an application uses an HTTP basic or digest authentication, Symfony does not parse the Authorization header properly, which could be exploited in some server setups (no exploits have been demonstrated though.)\n\n## Remediation\nUpgrade `symfony/symfony` to version 2.3.19, 2.2.0, 2.4.9, 2.5.4, 2.3.0, 2.1.0 or higher.\n\n## References\n- [Symfony Release Notes](http://symfony.com/blog/cve-2014-6061-security-issue-when-parsing-the-authorization-header)\n- [GitHub Issue](https://github.com/symfony/symfony/pull/11829)\n",
        "disclosureTime": "2014-09-03T07:38:23Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-70213",
        "identifiers": {
          "CVE": [
            "CVE-2014-6061"
          ],
          "CWE": [
            "CWE-592"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2014-09-03T07:38:23Z",
        "semver": {
          "vulnerable": [
            ">=2.3.0, <2.3.19",
            ">=2.1.0, <2.2.0",
            ">=2.4.0, <2.4.9",
            ">=2.5.0, <2.5.4",
            ">=2.2.0, <2.3.0",
            ">=2, <2.1.0"
          ]
        },
        "severity": "low",
        "title": "Authentication Bypass",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-70213",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 6.3,
        "description": "## Overview\nAffected versions of [`symfony/symfony`](https://packagist.org/packages/symfony/symfony) are vulnerable to Cross-site Request Forgery (CSRF).\n\n## Remediation\nUpgrade `symfony/symfony` to version 2.3.19, 2.2.0, 2.4.9, 2.5.4, 2.3.0, 2.1.0 or higher.\n\n## References\n- [Symfony Release Notes](http://symfony.com/blog/cve-2014-6072-csrf-vulnerability-in-the-web-profiler)\n",
        "disclosureTime": "2014-09-03T07:40:30Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-70214",
        "identifiers": {
          "CVE": [
            "CVE-2014-6072"
          ],
          "CWE": [
            "CWE-352"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2014-09-03T07:40:30Z",
        "semver": {
          "vulnerable": [
            ">=2.3.0, <2.3.19",
            ">=2.1.0, <2.2.0",
            ">=2.4.0, <2.4.9",
            ">=2.5.0, <2.5.4",
            ">=2.2.0, <2.3.0",
            ">=2, <2.1.0"
          ]
        },
        "severity": "medium",
        "title": "Cross-site Request Forgery (CSRF)",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-70214",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 6.3,
        "description": "## Overview\nAffected versions of [`symfony/symfony`](https://packagist.org/packages/symfony/symfony) are vulnerable to Arbitrary Code Injection.\n\nEval injection vulnerability in the HttpCache class in HttpKernel in Symfony 2.x before 2.3.27, 2.4.x and 2.5.x before 2.5.11, and 2.6.x before 2.6.6 allows remote attackers to execute arbitrary PHP code via a `language=\"php\"` attribute of a SCRIPT element.\n\n## Remediation\nUpgrade `symfony/symfony` to version 2.3.27, 2.6.6, 2.2.0, 2.5.0, 2.5.11, 2.3.0, 2.1.0 or higher.\n\n## References\n- [Symfony Release Notes](http://symfony.com/blog/cve-2015-2308-esi-code-injection)\n",
        "disclosureTime": "2015-04-01T18:55:26Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-70215",
        "identifiers": {
          "CVE": [
            "CVE-2015-2308"
          ],
          "CWE": [
            "CWE-94"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2015-04-01T18:55:26Z",
        "semver": {
          "vulnerable": [
            ">=2.3.0, <2.3.27",
            ">=2.6.0, <2.6.6",
            ">=2.1.0, <2.2.0",
            ">=2.4.0, <2.5.0",
            ">=2.5.0, <2.5.11",
            ">=2.2.0, <2.3.0",
            ">=2, <2.1.0"
          ]
        },
        "severity": "medium",
        "title": "Arbitrary Code Injection",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-70215",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N",
        "credit": [
          "Dmitrii Chekaliuk"
        ],
        "cvssScore": 6.5,
        "description": "## Overview\nAffected versions of [`symfony/symfony`](https://packagist.org/packages/symfony/symfony) are vulnerable to Man-in-the-Middle (MitM).\n\nThe `Symfony\\Component\\HttpFoundation\\Request` class provides a mechanism that ensures it does not trust HTTP header values coming from a \"non-trusted\" client. Unfortunately, it assumes that the remote address is always a trusted client if at least one trusted proxy is involved in the request; this allows a man-in-the-middle attack between the latest trusted proxy and the web server.\n\n## Remediation\nUpgrade `symfony/symfony` to version 2.3.27, 2.5.11, 2.6.6 or higher.\n\n## References\n- [Symfony Release Notes](http://symfony.com/blog/cve-2015-2309-unsafe-methods-in-the-request-class)\n",
        "disclosureTime": "2015-04-01T18:55:26Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-70216",
        "identifiers": {
          "CVE": [
            "CVE-2015-2309"
          ],
          "CWE": [
            "CWE-300"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2015-04-01T18:55:26Z",
        "semver": {
          "vulnerable": [
            ">=2, <2.3.27",
            ">=2.4.0, <2.5.11",
            ">=2.6.0, <2.6.6"
          ]
        },
        "severity": "medium",
        "title": "Man-in-the-Middle (MitM)",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-70216",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 6.3,
        "description": "## Overview\nAffected versions of [`symfony/symfony`](https://packagist.org/packages/symfony/symfony) are vulnerable to Session Fixation.\n\n## Remediation\nUpgrade `symfony/symfony` to version 2.3.35, 2.6.12, 2.5.0, 2.7.7, 2.6.0 or higher.\n\n## References\n- [Symfony Release Notes](http://symfony.com/blog/cve-2015-8124-session-fixation-in-the-remember-me-login-feature)\n",
        "disclosureTime": "2015-11-23T11:45:06Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-70218",
        "identifiers": {
          "CVE": [
            "CVE-2015-8124"
          ],
          "CWE": [
            "CWE-384"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2015-11-23T11:45:06Z",
        "semver": {
          "vulnerable": [
            ">=2.3.0, <2.3.35",
            ">=2.6.0, <2.6.12",
            ">=2.4.0, <2.5.0",
            ">=2.7.0, <2.7.7",
            ">=2.5.0, <2.6.0"
          ]
        },
        "severity": "medium",
        "title": "Session Fixation",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-70218",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
        "credit": [
          "Sebastiaan Stok"
        ],
        "cvssScore": 7.3,
        "description": "## Overview\nAffected versions of [`symfony/symfony`](https://packagist.org/packages/symfony/symfony) are vulnerable to Timing Attack.\n\nSymfony 2.3.x before 2.3.35, 2.6.x before 2.6.12, and 2.7.x before 2.7.7 might allow remote attackers to have unspecified impact via a timing attack involving:\n* Symfony/Component/Security/Http/RememberMe/PersistentTokenBasedRememberMeServices or\n* Symfony/Component/Security/Http/Firewall/DigestAuthenticationListener class in the Symfony Security Component, or\n* legacy CSRF implementation from the Symfony/Component/Form/Extension/Csrf/CsrfProvider/DefaultCsrfProvider class in the Symfony Form component.\n\n## Remediation\nUpgrade `symfony/symfony` to version 2.3.35, 2.6.12, 2.5.0, 2.7.7, 2.6.0 or higher.\n\n## References\n- [Symfony Release Notes](http://symfony.com/blog/cve-2015-8125-potential-remote-timing-attack-vulnerability-in-security-remember-me-service)\n",
        "disclosureTime": "2015-11-23T11:45:06Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-70219",
        "identifiers": {
          "CVE": [
            "CVE-2015-8125"
          ],
          "CWE": [
            "CWE-208"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2015-11-23T11:45:06Z",
        "semver": {
          "vulnerable": [
            ">=2.3.0, <2.3.35",
            ">=2.6.0, <2.6.12",
            ">=2.4.0, <2.5.0",
            ">=2.7.0, <2.7.7",
            ">=2.5.0, <2.6.0"
          ]
        },
        "severity": "high",
        "title": "Timing Attack",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-70219",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 7.5,
        "description": "## Overview\nAffected versions of [`symfony/symfony`](https://packagist.org/packages/symfony/symfony) are vulnerable to Insecure Randomness .\n\nThe nextBytes function in the SecureRandom class in Symfony before 2.3.37, 2.6.x before 2.6.13, and 2.7.x before 2.7.9 does not properly generate random numbers when used with PHP 5.x without the paragonie/random_compat library and the openssl_random_pseudo_bytes function fails, which makes it easier for attackers to defeat cryptographic protection mechanisms via unspecified vectors.\n\n## Remediation\nUpgrade `symfony/symfony` to version 2.3.37, 2.6.13, 2.5.0, 2.7.9, 2.6.0 or higher.\n\n## References\n- [Symfony Release Notes](http://symfony.com/blog/cve-2016-1902-securerandom-s-fallback-not-secure-when-openssl-fails)\n",
        "disclosureTime": "2016-01-14T09:59:32Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-70220",
        "identifiers": {
          "CVE": [
            "CVE-2016-1902"
          ],
          "CWE": [
            "CWE-330"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2016-01-14T09:59:32Z",
        "semver": {
          "vulnerable": [
            ">=2.3.0, <2.3.37",
            ">=2.6.0, <2.6.13",
            ">=2.4.0, <2.5.0",
            ">=2.7.0, <2.7.9",
            ">=2.5.0, <2.6.0"
          ]
        },
        "severity": "high",
        "title": "Insecure Randomness",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-70220",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
        "credit": [
          "Marek Alaksa"
        ],
        "cvssScore": 7.5,
        "description": "## Overview\nAffected versions of [`symfony/symfony`](https://packagist.org/packages/symfony/symfony) are vulnerable to Denial of Service (DoS).\n\nThe attemptAuthentication function in Component/Security/Http/Firewall/UsernamePasswordFormAuthenticationListener.php in Symfony before 2.3.41, 2.7.x before 2.7.13, 2.8.x before 2.8.6, and 3.0.x before 3.0.6 does not limit the length of a username stored in a session, which allows remote attackers to cause a denial of service (session storage consumption) via a series of authentication attempts with long, non-existent usernames.\n\n## Details\nDenial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.\r\n\r\nUnlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.\r\n\r\nOne popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.\r\n\r\nWhen it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.\r\n\r\nTwo common types of DoS vulnerabilities:\r\n\r\n* High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, [commons-fileupload:commons-fileupload](SNYK-JAVA-COMMONSFILEUPLOAD-30082).\r\n\r\n* Crash - An attacker sending crafted requests that could cause the system to crash. For Example,  [npm `ws` package](npm:ws:20171108)\n\n## Remediation\nUpgrade `symfony/symfony` to version 2.3.41, 2.7.0, 2.5.0, 2.7.13, 2.6.0, 2.8.6, 3.0.6 or higher.\n\n## References\n- [Symfony Release Notes](http://symfony.com/blog/cve-2016-4423-large-username-storage-in-session)\n- [GitHub PR](https://github.com/symfony/symfony/pull/18733)\n",
        "disclosureTime": "2016-05-09T21:31:02Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-70222",
        "identifiers": {
          "CVE": [
            "CVE-2016-4423"
          ],
          "CWE": [
            "CWE-400"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2016-05-09T21:31:02Z",
        "semver": {
          "vulnerable": [
            ">=2.3.0, <2.3.41",
            ">=2.6.0, <2.7.0",
            ">=2.4.0, <2.5.0",
            ">=2.7.0, <2.7.13",
            ">=2.5.0, <2.6.0",
            ">=2.8.0, <2.8.6",
            ">=3, <3.0.6"
          ]
        },
        "severity": "high",
        "title": "Denial of Service (DoS)",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-70222",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H",
        "credit": [
          "Federico Stange"
        ],
        "cvssScore": 5.9,
        "description": "## Overview\n[symfony/symfony](https://packagist.org/packages/symfony/symfony) is a set of reusable PHP components.\n\nAffected versions of this package are vulnerable to Denial of Service (DoS) attacks via the `PDOSessionHandler` class.\n\n**An application is vulnerable when:**\n\n* It uses `PDOSessionHandler` to store its sessions\n* And it uses MySQL as a backend for sessions managed by `PDOSessionHandler`\n* And the SQL mode does not contain `STRICT_ALL_TABLES` or `STRICT_TRANS_TABLES`.\n\nWith this configuration, An attacker may conduct a denial of service by a well-crafted session, which leads to an infinite loop in the code.\n\n## Details\nDenial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.\r\n\r\nUnlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.\r\n\r\nOne popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.\r\n\r\nWhen it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.\r\n\r\nTwo common types of DoS vulnerabilities:\r\n\r\n* High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, [commons-fileupload:commons-fileupload](SNYK-JAVA-COMMONSFILEUPLOAD-30082).\r\n\r\n* Crash - An attacker sending crafted requests that could cause the system to crash. For Example,  [npm `ws` package](npm:ws:20171108)\n\n## Remediation\nUpgrade `symfony/symfony` to versions 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11 or higher.\n\n## References\n- [Symphony Security Advisory](https://symfony.com/cve-2018-11386)\n",
        "disclosureTime": "2018-05-30T03:25:45.531000Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-72196",
        "identifiers": {
          "CVE": [
            "CVE-2018-11386"
          ],
          "CWE": [
            "CWE-835"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2018-05-30T11:36:38.154000Z",
        "semver": {
          "vulnerable": [
            "<2.7.48",
            ">=2.8.0, <2.8.41",
            ">=3.0.0, <3.3.17",
            ">=3.4.0, <3.4.11",
            ">=4.0.0, <4.0.11"
          ]
        },
        "severity": "medium",
        "title": "Denial of Service (DoS)",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-72196",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
        "credit": [
          "Theo Bouge"
        ],
        "cvssScore": 9.8,
        "description": "## Overview\n[symfony/symfony](https://packagist.org/packages/symfony/symfony) is a set of PHP components.\n\nAffected versions of this package are vulnerable to Access Restriction Bypass. A misconfigured LDAP server allowed unauthorized access, due to a missing check for `null` passwords.\n\n**Note:** This is related to [CVE-2016-2403](https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-70221).\n\n## Remediation\nUpgrade `symfony/symfony` to versions 2.8.37, 3.3.17, 3.4.7, 4.0.7 or higher.\n\n## References\n- [Symphony Security Advisory](https://symfony.com/cve-2018-11407)\n",
        "disclosureTime": "2018-05-30T03:25:45.532000Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-72197",
        "identifiers": {
          "CVE": [
            "CVE-2018-11407"
          ],
          "CWE": [
            "CWE-284"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2018-05-30T11:36:38.236000Z",
        "semver": {
          "vulnerable": [
            "<2.8.37",
            ">=3.0.0, <3.3.17",
            ">=3.4.0, <3.4.7",
            ">=4.0.0, <4.0.7"
          ]
        },
        "severity": "critical",
        "title": "Access Restriction Bypass",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-72197",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
        "credit": [
          "Kevin Liagre"
        ],
        "cvssScore": 8.8,
        "description": "## Overview\n[symfony/symfony](https://packagist.org/packages/symfony/symfony) is a set of reusable PHP components.\n\nAffected versions of this package are vulnerable to CSRF Token Fixation. CSRF tokens where not erased during logout, when the `invalidate_session` option was disabled. By default, a user’s session is invalidated when the user is logged out.\n\n## Remediation\nUpgrade `symfony/symfony` to versions 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11 or higher.\n\n## References\n- [Symphony Security Advisory](https://symfony.com/cve-2018-11406)\n",
        "disclosureTime": "2018-05-30T03:25:45.533000Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-72198",
        "identifiers": {
          "CVE": [
            "CVE-2018-11406"
          ],
          "CWE": [
            "CWE-384"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2018-05-30T11:36:38.318000Z",
        "semver": {
          "vulnerable": [
            "<2.7.48",
            ">=2.8.0, <2.8.41",
            ">=3.0.0, <3.3.17",
            ">=3.4.0, <3.4.11",
            ">=4.0.0, <4.0.11"
          ]
        },
        "severity": "high",
        "title": "CSRF Token Fixation",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-72198",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
        "credit": [
          "Antal Aron"
        ],
        "cvssScore": 6.1,
        "description": "## Overview\n[symfony/symfony](https://packagist.org/packages/symfony/symfony) is a set of reusable PHP components.\n\nAffected versions of this package are vulnerable to Open Redirect. This is due to an incomplete fix for [CVE-2017-16652](https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-70381). There was an an edge case when the `security.http_utils` was inlined by the container.\n\n## Remediation\nUpgrade `symfony/symfony` to versions 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11 or higher.\n\n## References\n- [Symphony Security Advisory](https://symfony.com/cve-2018-11408)\n",
        "disclosureTime": "2018-05-30T03:25:45.535000Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-72199",
        "identifiers": {
          "CVE": [
            "CVE-2018-11408"
          ],
          "CWE": [
            "CWE-601"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2018-05-30T11:36:38.403000Z",
        "semver": {
          "vulnerable": [
            "<2.7.48",
            ">=2.8.0, <2.8.41",
            ">=3.0.0, <3.3.17",
            ">=3.4.0, <3.4.11",
            ">=4.0.0, <4.0.11"
          ]
        },
        "severity": "medium",
        "title": "Open Redirect",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-72199",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
        "credit": [
          "Chris Wilkinson"
        ],
        "cvssScore": 8.1,
        "description": "## Overview\n[symfony/symfony](https://packagist.org/packages/symfony/symfony) is a set of reusable PHP components.\n\nAffected versions of this package are vulnerable to Session Fixation via the `Guard` login feature. An attacker may be able to impersonate the victim towards the web application if the session id value was previously known to the attacker. This allows the attacker to access a Symfony web application with the attacked user's permissions.\n\n**Note:**\n* The `Guard authentication` login feature must be enabled for the attack to be applicable.\n* The attacker must have access to the `PHPSESSID` cookie value or has successfully set a new value in the user's browser.\n\n## Remediation\nUpgrade `symfony/symfony` to versions 2.7.48, 2.8.41, 3.3.17, 3.4.11, 4.0.11 or higher.\n\n## References\n- [Symphony Security Advisory](https://symfony.com/cve-2018-11385)\n",
        "disclosureTime": "2018-05-30T03:25:45.536000Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-72200",
        "identifiers": {
          "CVE": [
            "CVE-2018-11385"
          ],
          "CWE": [
            "CWE-384"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2018-05-30T11:36:38.526000Z",
        "semver": {
          "vulnerable": [
            "<2.7.48",
            ">=2.8.0, <2.8.41",
            ">=3.0.0, <3.3.17",
            ">=3.4.0, <3.4.11",
            ">=4.0.0, <4.0.11"
          ]
        },
        "severity": "high",
        "title": "Session Fixation",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-72200",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 6.1,
        "description": "## Overview\n[symfony/symfony](https://packagist.org/packages/symfony/symfony) is the The Symfony PHP framework.\n\nAffected versions of this package are vulnerable to Cross-site Scripting (XSS) attacks via the `ExceptionHandler.php` method.\n\n## Details\nA cross-site scripting attack occurs when the attacker tricks a legitimate web-based application or site to accept a request as originating from a trusted source.\r\n\r\nThis is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML)  in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.\r\n\r\nֿInjecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.\r\n\r\nEscaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, `<` can be coded as  `<`; and `>` can be coded as `>`; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses `<` and `>` as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.\r\n \r\nThe most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware. \r\n\r\n### Types of attacks\r\nThere are a few methods by which XSS can be manipulated:\r\n\r\n|Type|Origin|Description|\r\n|--|--|--|\r\n|**Stored**|Server|The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.|\r\n|**Reflected**|Server|The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.| \r\n|**DOM-based**|Client|The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.|\r\n|**Mutated**| |The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.|\r\n\r\n### Affected environments\r\nThe following environments are susceptible to an XSS attack:\r\n\r\n* Web servers\r\n* Application servers\r\n* Web application environments\r\n\r\n### How to prevent\r\nThis section describes the top best practices designed to specifically protect your code: \r\n\r\n* Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches. \r\n* Convert special characters such as `?`, `&`, `/`, `<`, `>` and spaces to their respective HTML or URL encoded equivalents. \r\n* Give users the option to disable client-side scripts.\r\n* Redirect invalid requests.\r\n* Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.\r\n* Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.\r\n* Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.\n\n\n## Remediation\nUpgrade `symfony/symfony` to versions 2.7.33, 2.8.26, 3.2.13, 3.3.6 or higher.\n\n## References\n- [GitHub PR](https://github.com/symfony/symfony/pull/23684)\n- [GitHub Issue](https://github.com/symfony/symfony/issues/27987)\n",
        "disclosureTime": "2018-07-20T00:54:33.251000Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1"
        ],
        "functions": [],
        "id": "SNYK-PHP-SYMFONYSYMFONY-72246",
        "identifiers": {
          "CVE": [
            "CVE-2017-18343"
          ],
          "CWE": [
            "CWE-79"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "symfony/symfony",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2018-07-30T13:57:42.005000Z",
        "semver": {
          "vulnerable": [
            "<2.7.33",
            ">=2.8.0, <2.8.26",
            ">=3.0.0, <3.2.13",
            ">=3.3.0, <3.3.6"
          ]
        },
        "severity": "medium",
        "title": "Cross-site Scripting (XSS)",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-SYMFONYSYMFONY-72246",
        "version": "2.3.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N/RL:O",
        "credit": [
          "Fabien Potencier"
        ],
        "cvssScore": 4.8,
        "description": "## Overview\n\n[twig/twig](https://packagist.org/packages/twig/twig) is a flexible, fast, and secure template language for PHP.\n\n\nAffected versions of this package are vulnerable to Information Exposure\ndue to allowing the evaluation of non-trusted templates in a sandbox, where everything is forbidden if not explicitly allowed by a sandbox policy (tags, filters, functions, method calls, ...).\r\n\r\n*Note: If you are not using the sandbox, your code is not affected.*\n\n## Remediation\n\nUpgrade `twig/twig` to version 1.38.0, 2.7.0 or higher.\n\n\n## References\n\n- [GitHub Commit](https://github.com/twigphp/Twig/commit/0f3af98ef6e71929ad67fb6e5f3ad65777c1c4c5)\n\n- [Twig Security Advisory](https://symfony.com/blog/twig-sandbox-information-disclosure)\n",
        "disclosureTime": "2019-03-12T13:58:49Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1",
          "twig/twig@1.35.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-TWIGTWIG-173776",
        "identifiers": {
          "CVE": [
            "CVE-2019-9942"
          ],
          "CWE": [
            "CWE-200"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "twig/twig",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2019-03-12T13:58:49Z",
        "semver": {
          "vulnerable": [
            ">=1.0.0, <1.38.0",
            ">=2.0.0, <2.7.0"
          ]
        },
        "severity": "medium",
        "title": "Information Exposure",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-TWIGTWIG-173776",
        "version": "1.35.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 9.8,
        "description": "## Overview\n[twig/twig](https://packagist.org/packages/twig/twig) is a flexible, fast, and secure template language for PHP.\n\nAffected versions of this package are vulnerable to Server Side Template Injection (SSTI) via the `search_key` parameter.\n\n## Remediation\nUpgrade `twig/twig` to version 2.4.4 or higher.\n\n## References\n- [Exploit-DB](https://www.exploit-db.com/exploits/44102/)\n- [GitHub Commit](https://github.com/twigphp/Twig/commit/eddb97148ad779f27e670e1e3f19fb323aedafeb)\n- [GitHub ChangLog](https://github.com/twigphp/Twig/blob/2.x/CHANGELOG)\n",
        "disclosureTime": "2018-07-10T15:06:02.373000Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "symfony/symfony@2.3.1",
          "twig/twig@1.35.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-TWIGTWIG-72239",
        "identifiers": {
          "CVE": [
            "CVE-2018-13818"
          ],
          "CWE": [
            "CWE-94"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "twig/twig",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2018-07-23T13:46:08.115000Z",
        "semver": {
          "vulnerable": [
            "<2.4.4"
          ]
        },
        "severity": "critical",
        "title": "Server Side Template Injection (SSTI)",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-TWIGTWIG-72239",
        "version": "1.35.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 7.3,
        "description": "## Overview\nAffected versions of [`yiisoft/yii`](https://packagist.org/packages/yiisoft/yii) are vulnerable to Arbitrary Code Execution.\n\nThe CDetailView widget in Yii PHP Framework 1.1.14 allows remote attackers to execute arbitrary PHP scripts via vectors related to the value property.\n\n## Remediation\nUpgrade `yiisoft/yii` to version 1.1.15 or higher.\n\n## References\n- [Yii Framework Security Advisory](http://www.yiiframework.com/news/78/yii-1-1-15-is-released-security-fix/)\n",
        "disclosureTime": "2014-06-30T07:15:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "yiisoft/yii@1.1.14"
        ],
        "functions": [],
        "id": "SNYK-PHP-YIISOFTYII-70295",
        "identifiers": {
          "CVE": [
            "CVE-2014-4672"
          ],
          "CWE": [
            "CWE-94"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "yiisoft/yii",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2014-06-30T07:15:00Z",
        "semver": {
          "vulnerable": [
            "<1.1.15"
          ]
        },
        "severity": "high",
        "title": "Arbitrary Code Execution",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-YIISOFTYII-70295",
        "version": "1.1.14"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N",
        "credit": [
          "codemagician"
        ],
        "cvssScore": 6.5,
        "description": "## Overview\nAffected versions of [`zendframework/zendframework`](https://packagist.org/packages/zendframework/zendframework) are vulnerable to Route Parameter Injection.\n\n## Remediation\nUpgrade `zendframework/zendframework` to version 2.1.4, 2.0.8 or higher.\n\n## References\n- [Zend Framework Security Advisory](https://framework.zend.com/security/advisory/ZF2013-01)\n",
        "disclosureTime": "2013-03-13T08:39:38Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "zendframework/zendframework@2.1.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70321",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-74"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "zendframework/zendframework",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2013-03-13T08:39:38Z",
        "semver": {
          "vulnerable": [
            ">=2.1.0, <2.1.4",
            ">=2, <2.0.8"
          ]
        },
        "severity": "medium",
        "title": "Route Parameter Injection",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70321",
        "version": "2.1.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N",
        "credit": [
          "Pádraic Brady"
        ],
        "cvssScore": 3.7,
        "description": "## Overview\nAffected versions of [`zendframework/zendframework`](https://packagist.org/packages/zendframework/zendframework) are vulnerable to Information Exposure.\n\n## Remediation\nUpgrade `zendframework/zendframework` to version 2.1.4, 2.0.8 or higher.\n\n## References\n- [Zend Framework Security Advisory](https://framework.zend.com/security/advisory/ZF2013-02)\n",
        "disclosureTime": "2013-03-13T15:05:23Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "zendframework/zendframework@2.1.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70322",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-200"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "zendframework/zendframework",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2013-03-13T15:05:23Z",
        "semver": {
          "vulnerable": [
            ">=2.1.0, <2.1.4",
            ">=2, <2.0.8"
          ]
        },
        "severity": "low",
        "title": "Information Exposure",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70322",
        "version": "2.1.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L",
        "credit": [
          "Axel Helmert"
        ],
        "cvssScore": 6.3,
        "description": "## Overview\nAffected versions of [`zendframework/zendframework`](https://packagist.org/packages/zendframework/zendframework) are vulnerable to SQL Injection due to execution of platform-specific SQL containing interpolations.\n\n## Remediation\nUpgrade `zendframework/zendframework` to version 2.1.4, 2.0.8 or higher.\n\n## References\n- [Zend Framework Security Advisory](https://framework.zend.com/security/advisory/ZF2013-03)\n",
        "disclosureTime": "2013-03-13T15:04:50Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "zendframework/zendframework@2.1.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70323",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-89"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "zendframework/zendframework",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2013-03-13T15:04:50Z",
        "semver": {
          "vulnerable": [
            ">=2.1.0, <2.1.4",
            ">=2, <2.0.8"
          ]
        },
        "severity": "medium",
        "title": "SQL Injection",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70323",
        "version": "2.1.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N",
        "credit": [
          "Steve Talbot"
        ],
        "cvssScore": 5.3,
        "description": "## Overview\nAffected versions of [`zendframework/zendframework`](https://packagist.org/packages/zendframework/zendframework) are vulnerable to Potential IP Spoofing.\n\n## Remediation\nUpgrade `zendframework/zendframework` to version 2.2.5 or higher.\n\n## References\n- [Zend Framework Security Advisory](https://framework.zend.com/security/advisory/ZF2013-04)\n",
        "disclosureTime": "2013-10-31T10:35:17Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "zendframework/zendframework@2.1.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70324",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-290"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "zendframework/zendframework",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2013-10-31T10:35:17Z",
        "semver": {
          "vulnerable": [
            "<2.2.5"
          ]
        },
        "severity": "medium",
        "title": "IP Spoofing",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70324",
        "version": "2.1.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
        "credit": [
          "Lukas Reschke"
        ],
        "cvssScore": 7.3,
        "description": "## Overview\nAffected versions of [`zendframework/zendframework`](https://packagist.org/packages/zendframework/zendframework) are vulnerable to XML External Entity (XXE) Injection.\n\n## Details\n\nXXE Injection is a type of attack against an application that parses XML input.\r\nXML is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. By default, many XML processors allow specification of an external entity, a URI that is dereferenced and evaluated during XML processing. When an XML document is being parsed, the parser can make a request and include the content at the specified URI inside of the XML document.\r\n\r\nAttacks can include disclosing local files, which may contain sensitive data such as passwords or private user data, using file: schemes or relative paths in the system identifier.\r\n\r\nFor example, below is a sample XML document, containing an XML element- username.\r\n\r\n```xml\r\n\r\n   John\r\n\r\n```\r\n\r\nAn external XML entity - `xxe`, is defined using a system identifier and present within a DOCTYPE header. These entities can access local or remote content. For example the below code contains an external XML entity that would fetch the content of  `/etc/passwd` and display it to the user rendered by `username`.\r\n\r\n```xml\r\n\r\n]>\r\n   &xxe;\r\n\r\n```\r\n\r\nOther XXE Injection attacks can access local resources that may not stop returning data, possibly impacting application availability and leading to Denial of Service.\n\n## Remediation\nUpgrade `zendframework/zendframework` to version 2.1.6, 2.2.6 or higher.\n\n## References\n- [Zend Framework Security Advisory](https://framework.zend.com/security/advisory/ZF2014-01)\n",
        "disclosureTime": "2014-02-26T16:02:02Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "zendframework/zendframework@2.1.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70325",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-611"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "zendframework/zendframework",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2014-02-26T16:02:02Z",
        "semver": {
          "vulnerable": [
            ">=2.1.0, <2.1.6",
            ">=2.2.0, <2.2.6"
          ]
        },
        "severity": "high",
        "title": "XML External Entity (XXE) Injection",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70325",
        "version": "2.1.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 6.5,
        "description": "## Overview\nAffected versions of [`zendframework/zendframework`](https://packagist.org/packages/zendframework/zendframework) are vulnerable to Cross-site Scripting (XSS).\n\n## Details\nA cross-site scripting attack occurs when the attacker tricks a legitimate web-based application or site to accept a request as originating from a trusted source.\r\n\r\nThis is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML)  in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.\r\n\r\nֿInjecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.\r\n\r\nEscaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, `<` can be coded as  `<`; and `>` can be coded as `>`; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses `<` and `>` as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.\r\n \r\nThe most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware. \r\n\r\n### Types of attacks\r\nThere are a few methods by which XSS can be manipulated:\r\n\r\n|Type|Origin|Description|\r\n|--|--|--|\r\n|**Stored**|Server|The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.|\r\n|**Reflected**|Server|The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.| \r\n|**DOM-based**|Client|The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.|\r\n|**Mutated**| |The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.|\r\n\r\n### Affected environments\r\nThe following environments are susceptible to an XSS attack:\r\n\r\n* Web servers\r\n* Application servers\r\n* Web application environments\r\n\r\n### How to prevent\r\nThis section describes the top best practices designed to specifically protect your code: \r\n\r\n* Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches. \r\n* Convert special characters such as `?`, `&`, `/`, `<`, `>` and spaces to their respective HTML or URL encoded equivalents. \r\n* Give users the option to disable client-side scripts.\r\n* Redirect invalid requests.\r\n* Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.\r\n* Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.\r\n* Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.\n\n\n## Remediation\nUpgrade `zendframework/zendframework` to version 2.3.1, 2.2.7 or higher.\n\n## References\n- [Zend Framework Security Advisory](https://framework.zend.com/security/advisory/ZF2014-03)\n",
        "disclosureTime": "2014-02-26T16:02:02Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "zendframework/zendframework@2.1.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70326",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-79"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "zendframework/zendframework",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2014-02-26T16:02:02Z",
        "semver": {
          "vulnerable": [
            ">=2.3.0, <2.3.1",
            ">=2, <2.2.7"
          ]
        },
        "severity": "medium",
        "title": "Cross-site Scripting (XSS)",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70326",
        "version": "2.1.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N",
        "credit": [
          "Matthew Daley"
        ],
        "cvssScore": 5.3,
        "description": "## Overview\nAffected versions of [`zendframework/zendframework`](https://packagist.org/packages/zendframework/zendframework) are vulnerable to Authentication Bypass.\n\n## Remediation\nUpgrade `zendframework/zendframework` to version 2.3.3, 2.2.8 or higher.\n\n## References\n- [Zend Framework Security Advisory](https://framework.zend.com/security/advisory/ZF2014-05)\n",
        "disclosureTime": "2014-09-16T22:00:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "zendframework/zendframework@2.1.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70327",
        "identifiers": {
          "CVE": [
            "CVE-2014-8088"
          ],
          "CWE": [
            "CWE-592"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "zendframework/zendframework",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2014-09-16T22:00:00Z",
        "semver": {
          "vulnerable": [
            ">=2.3.0, <2.3.3",
            ">=2, <2.2.8"
          ]
        },
        "severity": "medium",
        "title": "Authentication Bypass",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70327",
        "version": "2.1.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L",
        "credit": [
          "Jonas Sandström"
        ],
        "cvssScore": 6.3,
        "description": "## Overview\nAffected versions of [`zendframework/zendframework`](https://packagist.org/packages/zendframework/zendframework) are vulnerable to SQL Injection vector when manually quoting values for sqlsrv extension, using null byte.\n\n## Remediation\nUpgrade `zendframework/zendframework` to version 2.3.3, 2.2.8 or higher.\n\n## References\n- [Zend Framework Security Advisory](https://framework.zend.com/security/advisory/ZF2014-06)\n",
        "disclosureTime": "2014-09-16T22:00:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "zendframework/zendframework@2.1.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70328",
        "identifiers": {
          "CVE": [
            "CVE-2014-8089"
          ],
          "CWE": [
            "CWE-89"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "zendframework/zendframework",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2014-09-16T22:00:00Z",
        "semver": {
          "vulnerable": [
            ">=2.3.0, <2.3.3",
            ">=2, <2.2.8"
          ]
        },
        "severity": "medium",
        "title": "SQL Injection",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70328",
        "version": "2.1.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N",
        "credit": [
          "Yuriy Dyachenko"
        ],
        "cvssScore": 5.3,
        "description": "## Overview\nAffected versions of [`zendframework/zendframework`](https://packagist.org/packages/zendframework/zendframework) are vulnerable to Insufficient Session Validation.\n\n`Zend\\Session` session validators do not work as expected if set prior to the start of a session.\n\nThe implication is that subsequent calls to `Zend\\Session\\SessionManager#start()` (in later requests, assuming a session was created) will not have any validator metadata attached, which causes any validator metadata to be re-built from scratch, thus marking the session as valid.\n\nAn attacker is thus able to simply ignore session validators such as `RemoteAddr` or `HttpUserAgent`, since the \"signature\" that these validators check against is not being stored in the session.\n\n## Remediation\nUpgrade `zendframework/zendframework` to version 2.3.4, 2.2.9 or higher.\n\n## References\n- [Zend Framework Security Advisory](https://framework.zend.com/security/advisory/ZF2015-01)\n",
        "disclosureTime": "2015-01-14T22:00:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "zendframework/zendframework@2.1.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70329",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-284"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "zendframework/zendframework",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2015-01-14T22:00:00Z",
        "semver": {
          "vulnerable": [
            ">=2.3.0, <2.3.4",
            ">=2, <2.2.9"
          ]
        },
        "severity": "medium",
        "title": "Insufficient Session Validation",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70329",
        "version": "2.1.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L",
        "credit": [
          "Grigory Ivanov"
        ],
        "cvssScore": 6.3,
        "description": "## Overview\nAffected versions of [`zendframework/zendframework`](https://packagist.org/packages/zendframework/zendframework) are vulnerable to SQL Injection.\n\n## Remediation\nUpgrade `zendframework/zendframework` to version 2.3.5, 2.2.10 or higher.\n\n## References\n- [Zend Framework Security Advisory](https://framework.zend.com/security/advisory/ZF2015-02)\n",
        "disclosureTime": "2015-02-18T19:15:09Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "zendframework/zendframework@2.1.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70330",
        "identifiers": {
          "CVE": [
            "CVE-2015-0270"
          ],
          "CWE": [
            "CWE-89"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "zendframework/zendframework",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2015-02-18T19:15:09Z",
        "semver": {
          "vulnerable": [
            ">=2.3.0, <2.3.5",
            ">=2, <2.2.10"
          ]
        },
        "severity": "medium",
        "title": "SQL Injection",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70330",
        "version": "2.1.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N",
        "credit": [
          "Filippo Tessarotto",
          "Maks3w"
        ],
        "cvssScore": 5.3,
        "description": "## Overview\nAffected versions of [`zendframework/zendframework`](https://packagist.org/packages/zendframework/zendframework) are vulnerable to Potential CRLF injection attacks in mail and HTTP headers.\n\n## Remediation\nUpgrade `zendframework/zendframework` to version 2.3.8, 2.4.1 or higher.\n\n## References\n- [Zend Framework Security Advisory](https://framework.zend.com/security/advisory/ZF2015-04)\n",
        "disclosureTime": "2015-05-07T08:53:42Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "zendframework/zendframework@2.1.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70332",
        "identifiers": {
          "CVE": [
            "CVE-2015-3154"
          ],
          "CWE": [
            "CWE-113"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "zendframework/zendframework",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2015-05-07T08:53:42Z",
        "semver": {
          "vulnerable": [
            "<2.3.8",
            ">=2.4.0, <2.4.1"
          ]
        },
        "severity": "medium",
        "title": "CRLF Injection",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70332",
        "version": "2.1.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L/E:P/RL:O/RC:R",
        "credit": [
          "Dawid Golunski"
        ],
        "cvssScore": 6.3,
        "description": "## Overview\r\nAffected versions of [`zendframework/zendframework`](https://packagist.org/packages/zendframework/zendframework) are vulnerable to XML External Entity (XXE) Injection.\r\n\r\n## Details\r\n\r\nXXE Injection is a type of attack against an application that parses XML input.\r\nXML is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. By default, many XML processors allow specification of an external entity, a URI that is dereferenced and evaluated during XML processing. When an XML document is being parsed, the parser can make a request and include the content at the specified URI inside of the XML document.\r\n\r\nAttacks can include disclosing local files, which may contain sensitive data such as passwords or private user data, using file: schemes or relative paths in the system identifier.\r\n\r\nFor example, below is a sample XML document, containing an XML element- username.\r\n\r\n```xml\r\n\r\n   John\r\n\r\n```\r\n\r\nAn external XML entity - `xxe`, is defined using a system identifier and present within a DOCTYPE header. These entities can access local or remote content. For example the below code contains an external XML entity that would fetch the content of  `/etc/passwd` and display it to the user rendered by `username`.\r\n\r\n```xml\r\n\r\n]>\r\n   &xxe;\r\n\r\n```\r\n\r\nOther XXE Injection attacks can access local resources that may not stop returning data, possibly impacting application availability and leading to Denial of Service.\r\n\r\n## Remediation\r\nUpgrade `zendframework/zendframework` to version 2.4.6, 2.5.1 or higher.\r\n\r\n## References\r\n- [Zend Framework Security Advisory](https://framework.zend.com/security/advisory/ZF2015-06)",
        "disclosureTime": "2015-08-03T15:13:58Z",
        "exploitMaturity": "proof-of-concept",
        "from": [
          "zendframework/zendframework@2.1.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70333",
        "identifiers": {
          "CVE": [
            "CVE-2015-5161"
          ],
          "CWE": [
            "CWE-611"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "zendframework/zendframework",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2015-08-03T15:13:58Z",
        "semver": {
          "vulnerable": [
            "<2.4.6",
            ">=2.5.0, <2.5.1"
          ]
        },
        "severity": "medium",
        "title": "XML External Entity (XXE) Injection",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70333",
        "version": "2.1.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N",
        "credit": [
          "Vincent Herbulot"
        ],
        "cvssScore": 3.7,
        "description": "## Overview\nAffected versions of [`zendframework/zendframework`](https://packagist.org/packages/zendframework/zendframework) are vulnerable to Information Exposure.\n\n## Remediation\nUpgrade `zendframework/zendframework` to version 2.4.9 or higher.\n\n## References\n- [Zend Framework Security Advisory](https://framework.zend.com/security/advisory/ZF2015-09)\n",
        "disclosureTime": "2015-11-23T14:30:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "zendframework/zendframework@2.1.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70335",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-200"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "zendframework/zendframework",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2015-11-23T14:30:00Z",
        "semver": {
          "vulnerable": [
            "<2.4.9"
          ]
        },
        "severity": "low",
        "title": "Information Exposure",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70335",
        "version": "2.1.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 7.5,
        "description": "## Overview\nAffected versions of [`zendframework/zendframework`](https://packagist.org/packages/zendframework/zendframework) are vulnerable to Information Exposure.\n\n## Remediation\nUpgrade `zendframework/zendframework` to version 2.4.9 or higher.\n\n## References\n- [Zend Framework Security Advisory](https://framework.zend.com/security/advisory/ZF2015-10)\n",
        "disclosureTime": "2015-11-23T14:30:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "zendframework/zendframework@2.1.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70336",
        "identifiers": {
          "CVE": [
            "CVE-2015-7503"
          ],
          "CWE": [
            "CWE-200"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "zendframework/zendframework",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2015-11-23T14:30:00Z",
        "semver": {
          "vulnerable": [
            ">=2, <2.4.9"
          ]
        },
        "severity": "high",
        "title": "Information Exposure",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70336",
        "version": "2.1.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
        "credit": [
          "Dawid Golunski"
        ],
        "cvssScore": 7.3,
        "description": "## Overview\nAffected versions of [`zendframework/zendframework`](https://packagist.org/packages/zendframework/zendframework) are vulnerable to Arbitrary Code Execution.\n\n## Remediation\nUpgrade `zendframework/zendframework` to version 2.4.11 or higher.\n\n## References\n- [Zend Framework Security Advisory](https://framework.zend.com/security/advisory/ZF2016-04)\n",
        "disclosureTime": "2016-12-19T15:29:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "zendframework/zendframework@2.1.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70337",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-94"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "zendframework/zendframework",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2016-12-19T15:29:00Z",
        "semver": {
          "vulnerable": [
            "<2.4.11"
          ]
        },
        "severity": "high",
        "title": "Arbitrary Code Execution",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-70337",
        "version": "2.1.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N",
        "credit": [
          "Drupal Security Team"
        ],
        "cvssScore": 5.3,
        "description": "## Overview\n[zendframework/zendframework](https://packagist.org/packages/zendframework/zendframework) provides functionality for consuming RSS and Atom feeds.\n\nAffected versions of this package are vulnerable to Arbitrary URL Rewrite. The request URI marshaling process contains logic that inspects HTTP request headers that are specific to a given server-side URL rewrite mechanism. \n\nWhen these headers are present on systems not running the specific URL rewriting mechanism, the URLs are subject to rewriting, allowing a malicious client or proxy to emulate the headers to request arbitrary content.\n\n## Remediation\nUpgrade `zendframework/zendframework` to version 2.5.0 or higher.\n\n## References\n- [Zend Framework Security Advisory](https://framework.zend.com/security/advisory/ZF2018-01)\n",
        "disclosureTime": "2018-08-02T16:29:46.707000Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "zendframework/zendframework@2.1.0"
        ],
        "functions": [],
        "id": "SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-72268",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-601"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "php",
        "package": "zendframework/zendframework",
        "packageManager": "composer",
        "patches": [],
        "publicationTime": "2018-08-15T08:34:54.643000Z",
        "semver": {
          "vulnerable": [
            "<2.5.0"
          ]
        },
        "severity": "medium",
        "title": "Arbitrary URL Rewrite",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PHP-ZENDFRAMEWORKZENDFRAMEWORK-72268",
        "version": "2.1.0"
      }
    ]
  },
  "licensesPolicy": null,
  "ok": false,
  "org": {
    "id": "4a18d42f-0706-4ad0-b127-24078731fbed",
    "name": "atokeneduser"
  },
  "packageManager": "composer"
}
GET Test for issues in a public gem by name and version
{{baseUrl}}/test/rubygems/:gemName/:version
QUERY PARAMS

gemName
version
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/test/rubygems/:gemName/:version");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/test/rubygems/:gemName/:version")
require "http/client"

url = "{{baseUrl}}/test/rubygems/:gemName/:version"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/test/rubygems/:gemName/:version"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/test/rubygems/:gemName/:version");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/test/rubygems/:gemName/:version"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/test/rubygems/:gemName/:version HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/test/rubygems/:gemName/:version")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/test/rubygems/:gemName/:version"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/test/rubygems/:gemName/:version")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/test/rubygems/:gemName/:version")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/test/rubygems/:gemName/:version');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/test/rubygems/:gemName/:version'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/test/rubygems/:gemName/:version';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/test/rubygems/:gemName/:version',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/test/rubygems/:gemName/:version")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/test/rubygems/:gemName/:version',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/test/rubygems/:gemName/:version'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/test/rubygems/:gemName/:version');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/test/rubygems/:gemName/:version'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/test/rubygems/:gemName/:version';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/test/rubygems/:gemName/:version"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/test/rubygems/:gemName/:version" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/test/rubygems/:gemName/:version",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/test/rubygems/:gemName/:version');

echo $response->getBody();
setUrl('{{baseUrl}}/test/rubygems/:gemName/:version');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/test/rubygems/:gemName/:version');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/test/rubygems/:gemName/:version' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/test/rubygems/:gemName/:version' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/test/rubygems/:gemName/:version")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/test/rubygems/:gemName/:version"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/test/rubygems/:gemName/:version"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/test/rubygems/:gemName/:version")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/test/rubygems/:gemName/:version') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/test/rubygems/:gemName/:version";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/test/rubygems/:gemName/:version
http GET {{baseUrl}}/test/rubygems/:gemName/:version
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/test/rubygems/:gemName/:version
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/test/rubygems/:gemName/:version")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "dependencyCount": 5,
  "issues": {
    "licenses": [],
    "vulnerabilities": [
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
        "credit": [
          "Kaarlo Haikonen"
        ],
        "cvssScore": 6.1,
        "description": "## Overview\n[rails-html-sanitizer](https://github.com/rails/rails-html-sanitizer)\n\nAffected versions of this package are vulnerable to Cross-site Scripting (XSS). The gem allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments, and these attributes can lead to an XSS attack on target applications.\n\nThis issue is similar to [CVE-2018-8048](https://snyk.io/vuln/SNYK-RUBY-LOOFAH-22023) in Loofah.\n\n## Details\nA cross-site scripting attack occurs when the attacker tricks a legitimate web-based application or site to accept a request as originating from a trusted source.\r\n\r\nThis is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML)  in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.\r\n\r\nֿInjecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.\r\n\r\nEscaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, `<` can be coded as  `<`; and `>` can be coded as `>`; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses `<` and `>` as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.\r\n \r\nThe most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware. \r\n\r\n### Types of attacks\r\nThere are a few methods by which XSS can be manipulated:\r\n\r\n|Type|Origin|Description|\r\n|--|--|--|\r\n|**Stored**|Server|The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.|\r\n|**Reflected**|Server|The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.| \r\n|**DOM-based**|Client|The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.|\r\n|**Mutated**| |The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.|\r\n\r\n### Affected environments\r\nThe following environments are susceptible to an XSS attack:\r\n\r\n* Web servers\r\n* Application servers\r\n* Web application environments\r\n\r\n### How to prevent\r\nThis section describes the top best practices designed to specifically protect your code: \r\n\r\n* Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches. \r\n* Convert special characters such as `?`, `&`, `/`, `<`, `>` and spaces to their respective HTML or URL encoded equivalents. \r\n* Give users the option to disable client-side scripts.\r\n* Redirect invalid requests.\r\n* Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.\r\n* Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.\r\n* Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.\n\n\n## Remediation\nUpgrade `rails-html-sanitizer` to version 1.0.4 or higher.\n\n## References\n- [Ruby on Rails Security Google Forum](https://groups.google.com/d/msg/rubyonrails-security/tP7W3kLc5u4/uDy2Br7xBgAJ)\n- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2018-3741)\n",
        "disclosureTime": "2018-03-22T21:46:15.453000Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "rails-html-sanitizer@1.0.3"
        ],
        "functions": [],
        "id": "SNYK-RUBY-RAILSHTMLSANITIZER-22025",
        "identifiers": {
          "CVE": [
            "CVE-2018-3741"
          ],
          "CWE": [
            "CWE-79"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "ruby",
        "package": "rails-html-sanitizer",
        "packageManager": "rubygems",
        "patches": [],
        "publicationTime": "2018-03-27T07:42:10.777000Z",
        "semver": {
          "vulnerable": [
            "<1.0.4"
          ]
        },
        "severity": "medium",
        "title": "Cross-site Scripting (XSS)",
        "type": "vuln",
        "upgradePath": [
          "rails-html-sanitizer@1.0.4"
        ],
        "url": "https://snyk.io/vuln/SNYK-RUBY-RAILSHTMLSANITIZER-22025",
        "version": "1.0.3"
      }
    ]
  },
  "licensesPolicy": null,
  "ok": false,
  "org": {
    "id": "4a18d42f-0706-4ad0-b127-24078731fbed",
    "name": "atokeneduser"
  },
  "packageManager": "rubygems"
}
GET Test for issues in a public package by group id, artifact id and version (GET)
{{baseUrl}}/test/sbt/:groupId/:artifactId/:version
QUERY PARAMS

groupId
artifactId
version
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/test/sbt/:groupId/:artifactId/:version");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/test/sbt/:groupId/:artifactId/:version")
require "http/client"

url = "{{baseUrl}}/test/sbt/:groupId/:artifactId/:version"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/test/sbt/:groupId/:artifactId/:version"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/test/sbt/:groupId/:artifactId/:version");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/test/sbt/:groupId/:artifactId/:version"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/test/sbt/:groupId/:artifactId/:version HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/test/sbt/:groupId/:artifactId/:version")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/test/sbt/:groupId/:artifactId/:version"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/test/sbt/:groupId/:artifactId/:version")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/test/sbt/:groupId/:artifactId/:version")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/test/sbt/:groupId/:artifactId/:version');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/test/sbt/:groupId/:artifactId/:version'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/test/sbt/:groupId/:artifactId/:version';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/test/sbt/:groupId/:artifactId/:version',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/test/sbt/:groupId/:artifactId/:version")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/test/sbt/:groupId/:artifactId/:version',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/test/sbt/:groupId/:artifactId/:version'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/test/sbt/:groupId/:artifactId/:version');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/test/sbt/:groupId/:artifactId/:version'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/test/sbt/:groupId/:artifactId/:version';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/test/sbt/:groupId/:artifactId/:version"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/test/sbt/:groupId/:artifactId/:version" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/test/sbt/:groupId/:artifactId/:version",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/test/sbt/:groupId/:artifactId/:version');

echo $response->getBody();
setUrl('{{baseUrl}}/test/sbt/:groupId/:artifactId/:version');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/test/sbt/:groupId/:artifactId/:version');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/test/sbt/:groupId/:artifactId/:version' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/test/sbt/:groupId/:artifactId/:version' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/test/sbt/:groupId/:artifactId/:version")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/test/sbt/:groupId/:artifactId/:version"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/test/sbt/:groupId/:artifactId/:version"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/test/sbt/:groupId/:artifactId/:version")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/test/sbt/:groupId/:artifactId/:version') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/test/sbt/:groupId/:artifactId/:version";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/test/sbt/:groupId/:artifactId/:version
http GET {{baseUrl}}/test/sbt/:groupId/:artifactId/:version
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/test/sbt/:groupId/:artifactId/:version
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/test/sbt/:groupId/:artifactId/:version")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "dependencyCount": 1,
  "issues": {
    "licenses": [],
    "vulnerabilities": [
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
        "credit": [
          "Markus Wulftange"
        ],
        "cvssScore": 9.8,
        "description": "## Overview\n\n[org.apache.flex.blazeds:blazeds](https://github.com/apache/flex-blazeds) is an application development framework for easily building Flash-based applications for mobile devices, web browsers, and desktops.\n\n\nAffected versions of this package are vulnerable to Arbitrary Code Execution.\nThe AMF deserialization implementation of Flex BlazeDS is vulnerable to Deserialization of Untrusted Data. By sending a specially crafted AMF message, it is possible to make the server establish a connection to an endpoint specified in the message and request an RMI remote object from that endpoint. This can result in the execution of arbitrary code on the server via Java deserialization.\r\n\r\nStarting with BlazeDS version `4.7.3`, Deserialization of XML is disabled completely per default, while the `ClassDeserializationValidator` allows deserialization of whitelisted classes only. BlazeDS internally comes with the following whitelist:\r\n```\r\nflex.messaging.io.amf.ASObject\r\nflex.messaging.io.amf.SerializedObject\r\nflex.messaging.io.ArrayCollection\r\nflex.messaging.io.ArrayList\r\nflex.messaging.messages.AcknowledgeMessage\r\nflex.messaging.messages.AcknowledgeMessageExt\r\nflex.messaging.messages.AsyncMessage\r\nflex.messaging.messages.AsyncMessageExt\r\nflex.messaging.messages.CommandMessage\r\nflex.messaging.messages.CommandMessageExt\r\nflex.messaging.messages.ErrorMessage\r\nflex.messaging.messages.HTTPMessage\r\nflex.messaging.messages.RemotingMessage\r\nflex.messaging.messages.SOAPMessage\r\njava.lang.Boolean\r\njava.lang.Byte\r\njava.lang.Character\r\njava.lang.Double\r\njava.lang.Float\r\njava.lang.Integer\r\njava.lang.Long\r\njava.lang.Object\r\njava.lang.Short\r\njava.lang.String\r\njava.util.ArrayList\r\njava.util.Date\r\njava.util.HashMap\r\norg.w3c.dom.Document\r\n```\n\n## Remediation\n\nUpgrade `org.apache.flex.blazeds:blazeds` to version 4.7.3 or higher.\n\n\n## References\n\n- [CVE-2017-3066](https://nvd.nist.gov/vuln/detail/CVE-2017-5641)\n\n- [Github Commit](https://github.com/apache/flex-blazeds/commit/f861f0993c35e664906609cad275e45a71e2aaf1)\n\n- [Github Release Notes](https://github.com/apache/flex-blazeds/blob/master/RELEASE_NOTES)\n\n- [Securitytracker Issue](http://www.securitytracker.com/id/1038364)\n",
        "disclosureTime": "2017-04-25T21:00:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "org.apache.flex.blazeds:blazeds@4.7.2"
        ],
        "functions": [],
        "id": "SNYK-JAVA-ORGAPACHEFLEXBLAZEDS-31455",
        "identifiers": {
          "CVE": [
            "CVE-2017-5641"
          ],
          "CWE": [
            "CWE-502"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "org.apache.flex.blazeds:blazeds",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2017-08-09T14:17:08Z",
        "semver": {
          "vulnerable": [
            "[,4.7.3)"
          ]
        },
        "severity": "critical",
        "title": "Arbitrary Code Execution",
        "type": "vuln",
        "upgradePath": [
          "org.apache.flex.blazeds:blazeds@4.7.3"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEFLEXBLAZEDS-31455",
        "version": "4.7.2"
      }
    ]
  },
  "licensesPolicy": null,
  "ok": false,
  "org": {
    "id": "689ce7f9-7943-4a71-b704-2ba575f01089",
    "name": "atokeneduser"
  },
  "packageManager": "maven"
}
GET Test for issues in a public package by group id, artifact id and version
{{baseUrl}}/test/maven/:groupId/:artifactId/:version
QUERY PARAMS

groupId
artifactId
version
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/test/maven/:groupId/:artifactId/:version");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/test/maven/:groupId/:artifactId/:version")
require "http/client"

url = "{{baseUrl}}/test/maven/:groupId/:artifactId/:version"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/test/maven/:groupId/:artifactId/:version"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/test/maven/:groupId/:artifactId/:version");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/test/maven/:groupId/:artifactId/:version"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/test/maven/:groupId/:artifactId/:version HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/test/maven/:groupId/:artifactId/:version")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/test/maven/:groupId/:artifactId/:version"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/test/maven/:groupId/:artifactId/:version")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/test/maven/:groupId/:artifactId/:version")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/test/maven/:groupId/:artifactId/:version');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/test/maven/:groupId/:artifactId/:version'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/test/maven/:groupId/:artifactId/:version';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/test/maven/:groupId/:artifactId/:version',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/test/maven/:groupId/:artifactId/:version")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/test/maven/:groupId/:artifactId/:version',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/test/maven/:groupId/:artifactId/:version'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/test/maven/:groupId/:artifactId/:version');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/test/maven/:groupId/:artifactId/:version'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/test/maven/:groupId/:artifactId/:version';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/test/maven/:groupId/:artifactId/:version"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/test/maven/:groupId/:artifactId/:version" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/test/maven/:groupId/:artifactId/:version",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/test/maven/:groupId/:artifactId/:version');

echo $response->getBody();
setUrl('{{baseUrl}}/test/maven/:groupId/:artifactId/:version');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/test/maven/:groupId/:artifactId/:version');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/test/maven/:groupId/:artifactId/:version' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/test/maven/:groupId/:artifactId/:version' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/test/maven/:groupId/:artifactId/:version")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/test/maven/:groupId/:artifactId/:version"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/test/maven/:groupId/:artifactId/:version"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/test/maven/:groupId/:artifactId/:version")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/test/maven/:groupId/:artifactId/:version') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/test/maven/:groupId/:artifactId/:version";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/test/maven/:groupId/:artifactId/:version
http GET {{baseUrl}}/test/maven/:groupId/:artifactId/:version
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/test/maven/:groupId/:artifactId/:version
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/test/maven/:groupId/:artifactId/:version")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "dependencyCount": 1,
  "issues": {
    "licenses": [],
    "vulnerabilities": [
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
        "credit": [
          "Markus Wulftange"
        ],
        "cvssScore": 9.8,
        "description": "## Overview\n\n[org.apache.flex.blazeds:blazeds](https://github.com/apache/flex-blazeds) is an application development framework for easily building Flash-based applications for mobile devices, web browsers, and desktops.\n\n\nAffected versions of this package are vulnerable to Arbitrary Code Execution.\nThe AMF deserialization implementation of Flex BlazeDS is vulnerable to Deserialization of Untrusted Data. By sending a specially crafted AMF message, it is possible to make the server establish a connection to an endpoint specified in the message and request an RMI remote object from that endpoint. This can result in the execution of arbitrary code on the server via Java deserialization.\r\n\r\nStarting with BlazeDS version `4.7.3`, Deserialization of XML is disabled completely per default, while the `ClassDeserializationValidator` allows deserialization of whitelisted classes only. BlazeDS internally comes with the following whitelist:\r\n```\r\nflex.messaging.io.amf.ASObject\r\nflex.messaging.io.amf.SerializedObject\r\nflex.messaging.io.ArrayCollection\r\nflex.messaging.io.ArrayList\r\nflex.messaging.messages.AcknowledgeMessage\r\nflex.messaging.messages.AcknowledgeMessageExt\r\nflex.messaging.messages.AsyncMessage\r\nflex.messaging.messages.AsyncMessageExt\r\nflex.messaging.messages.CommandMessage\r\nflex.messaging.messages.CommandMessageExt\r\nflex.messaging.messages.ErrorMessage\r\nflex.messaging.messages.HTTPMessage\r\nflex.messaging.messages.RemotingMessage\r\nflex.messaging.messages.SOAPMessage\r\njava.lang.Boolean\r\njava.lang.Byte\r\njava.lang.Character\r\njava.lang.Double\r\njava.lang.Float\r\njava.lang.Integer\r\njava.lang.Long\r\njava.lang.Object\r\njava.lang.Short\r\njava.lang.String\r\njava.util.ArrayList\r\njava.util.Date\r\njava.util.HashMap\r\norg.w3c.dom.Document\r\n```\n\n## Remediation\n\nUpgrade `org.apache.flex.blazeds:blazeds` to version 4.7.3 or higher.\n\n\n## References\n\n- [CVE-2017-3066](https://nvd.nist.gov/vuln/detail/CVE-2017-5641)\n\n- [Github Commit](https://github.com/apache/flex-blazeds/commit/f861f0993c35e664906609cad275e45a71e2aaf1)\n\n- [Github Release Notes](https://github.com/apache/flex-blazeds/blob/master/RELEASE_NOTES)\n\n- [Securitytracker Issue](http://www.securitytracker.com/id/1038364)\n",
        "disclosureTime": "2017-04-25T21:00:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "org.apache.flex.blazeds:blazeds@4.7.2"
        ],
        "functions": [],
        "id": "SNYK-JAVA-ORGAPACHEFLEXBLAZEDS-31455",
        "identifiers": {
          "CVE": [
            "CVE-2017-5641"
          ],
          "CWE": [
            "CWE-502"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "org.apache.flex.blazeds:blazeds",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2017-08-09T14:17:08Z",
        "semver": {
          "vulnerable": [
            "[,4.7.3)"
          ]
        },
        "severity": "critical",
        "title": "Arbitrary Code Execution",
        "type": "vuln",
        "upgradePath": [
          "org.apache.flex.blazeds:blazeds@4.7.3"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEFLEXBLAZEDS-31455",
        "version": "4.7.2"
      }
    ]
  },
  "licensesPolicy": null,
  "ok": false,
  "org": {
    "id": "689ce7f9-7943-4a71-b704-2ba575f01089",
    "name": "atokeneduser"
  },
  "packageManager": "maven"
}
GET Test for issues in a public package by group, name and version
{{baseUrl}}/test/gradle/:group/:name/:version
QUERY PARAMS

group
name
version
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/test/gradle/:group/:name/:version");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/test/gradle/:group/:name/:version")
require "http/client"

url = "{{baseUrl}}/test/gradle/:group/:name/:version"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/test/gradle/:group/:name/:version"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/test/gradle/:group/:name/:version");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/test/gradle/:group/:name/:version"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/test/gradle/:group/:name/:version HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/test/gradle/:group/:name/:version")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/test/gradle/:group/:name/:version"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/test/gradle/:group/:name/:version")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/test/gradle/:group/:name/:version")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/test/gradle/:group/:name/:version');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/test/gradle/:group/:name/:version'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/test/gradle/:group/:name/:version';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/test/gradle/:group/:name/:version',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/test/gradle/:group/:name/:version")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/test/gradle/:group/:name/:version',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/test/gradle/:group/:name/:version'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/test/gradle/:group/:name/:version');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/test/gradle/:group/:name/:version'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/test/gradle/:group/:name/:version';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/test/gradle/:group/:name/:version"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/test/gradle/:group/:name/:version" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/test/gradle/:group/:name/:version",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/test/gradle/:group/:name/:version');

echo $response->getBody();
setUrl('{{baseUrl}}/test/gradle/:group/:name/:version');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/test/gradle/:group/:name/:version');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/test/gradle/:group/:name/:version' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/test/gradle/:group/:name/:version' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/test/gradle/:group/:name/:version")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/test/gradle/:group/:name/:version"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/test/gradle/:group/:name/:version"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/test/gradle/:group/:name/:version")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/test/gradle/:group/:name/:version') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/test/gradle/:group/:name/:version";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/test/gradle/:group/:name/:version
http GET {{baseUrl}}/test/gradle/:group/:name/:version
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/test/gradle/:group/:name/:version
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/test/gradle/:group/:name/:version")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "dependencyCount": 1,
  "issues": {
    "licenses": [],
    "vulnerabilities": [
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
        "credit": [
          "Markus Wulftange"
        ],
        "cvssScore": 9.8,
        "description": "## Overview\n\n[org.apache.flex.blazeds:blazeds](https://github.com/apache/flex-blazeds) is an application development framework for easily building Flash-based applications for mobile devices, web browsers, and desktops.\n\n\nAffected versions of this package are vulnerable to Arbitrary Code Execution.\nThe AMF deserialization implementation of Flex BlazeDS is vulnerable to Deserialization of Untrusted Data. By sending a specially crafted AMF message, it is possible to make the server establish a connection to an endpoint specified in the message and request an RMI remote object from that endpoint. This can result in the execution of arbitrary code on the server via Java deserialization.\r\n\r\nStarting with BlazeDS version `4.7.3`, Deserialization of XML is disabled completely per default, while the `ClassDeserializationValidator` allows deserialization of whitelisted classes only. BlazeDS internally comes with the following whitelist:\r\n```\r\nflex.messaging.io.amf.ASObject\r\nflex.messaging.io.amf.SerializedObject\r\nflex.messaging.io.ArrayCollection\r\nflex.messaging.io.ArrayList\r\nflex.messaging.messages.AcknowledgeMessage\r\nflex.messaging.messages.AcknowledgeMessageExt\r\nflex.messaging.messages.AsyncMessage\r\nflex.messaging.messages.AsyncMessageExt\r\nflex.messaging.messages.CommandMessage\r\nflex.messaging.messages.CommandMessageExt\r\nflex.messaging.messages.ErrorMessage\r\nflex.messaging.messages.HTTPMessage\r\nflex.messaging.messages.RemotingMessage\r\nflex.messaging.messages.SOAPMessage\r\njava.lang.Boolean\r\njava.lang.Byte\r\njava.lang.Character\r\njava.lang.Double\r\njava.lang.Float\r\njava.lang.Integer\r\njava.lang.Long\r\njava.lang.Object\r\njava.lang.Short\r\njava.lang.String\r\njava.util.ArrayList\r\njava.util.Date\r\njava.util.HashMap\r\norg.w3c.dom.Document\r\n```\n\n## Remediation\n\nUpgrade `org.apache.flex.blazeds:blazeds` to version 4.7.3 or higher.\n\n\n## References\n\n- [CVE-2017-3066](https://nvd.nist.gov/vuln/detail/CVE-2017-5641)\n\n- [Github Commit](https://github.com/apache/flex-blazeds/commit/f861f0993c35e664906609cad275e45a71e2aaf1)\n\n- [Github Release Notes](https://github.com/apache/flex-blazeds/blob/master/RELEASE_NOTES)\n\n- [Securitytracker Issue](http://www.securitytracker.com/id/1038364)\n",
        "disclosureTime": "2017-04-25T21:00:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "org.apache.flex.blazeds:blazeds@4.7.2"
        ],
        "functions": [],
        "id": "SNYK-JAVA-ORGAPACHEFLEXBLAZEDS-31455",
        "identifiers": {
          "CVE": [
            "CVE-2017-5641"
          ],
          "CWE": [
            "CWE-502"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "org.apache.flex.blazeds:blazeds",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2017-08-09T14:17:08Z",
        "semver": {
          "vulnerable": [
            "[,4.7.3)"
          ]
        },
        "severity": "critical",
        "title": "Arbitrary Code Execution",
        "type": "vuln",
        "upgradePath": [
          "org.apache.flex.blazeds:blazeds@4.7.3"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEFLEXBLAZEDS-31455",
        "version": "4.7.2"
      }
    ]
  },
  "licensesPolicy": null,
  "ok": false,
  "org": {
    "id": "689ce7f9-7943-4a71-b704-2ba575f01089",
    "name": "atokeneduser"
  },
  "packageManager": "maven"
}
GET Test for issues in a public package by name and version (GET)
{{baseUrl}}/test/pip/:packageName/:version
QUERY PARAMS

packageName
version
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/test/pip/:packageName/:version");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/test/pip/:packageName/:version")
require "http/client"

url = "{{baseUrl}}/test/pip/:packageName/:version"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/test/pip/:packageName/:version"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/test/pip/:packageName/:version");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/test/pip/:packageName/:version"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/test/pip/:packageName/:version HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/test/pip/:packageName/:version")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/test/pip/:packageName/:version"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/test/pip/:packageName/:version")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/test/pip/:packageName/:version")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/test/pip/:packageName/:version');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/test/pip/:packageName/:version'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/test/pip/:packageName/:version';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/test/pip/:packageName/:version',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/test/pip/:packageName/:version")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/test/pip/:packageName/:version',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/test/pip/:packageName/:version'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/test/pip/:packageName/:version');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/test/pip/:packageName/:version'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/test/pip/:packageName/:version';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/test/pip/:packageName/:version"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/test/pip/:packageName/:version" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/test/pip/:packageName/:version",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/test/pip/:packageName/:version');

echo $response->getBody();
setUrl('{{baseUrl}}/test/pip/:packageName/:version');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/test/pip/:packageName/:version');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/test/pip/:packageName/:version' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/test/pip/:packageName/:version' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/test/pip/:packageName/:version")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/test/pip/:packageName/:version"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/test/pip/:packageName/:version"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/test/pip/:packageName/:version")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/test/pip/:packageName/:version') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/test/pip/:packageName/:version";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/test/pip/:packageName/:version
http GET {{baseUrl}}/test/pip/:packageName/:version
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/test/pip/:packageName/:version
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/test/pip/:packageName/:version")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "dependencyCount": 2,
  "issues": {
    "licenses": [],
    "vulnerabilities": [
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N",
        "credit": [
          "Manuel Aude Morales"
        ],
        "cvssScore": 5.3,
        "description": "## Overview\n[`rsa`](https://pypi.python.org/pypi/rsa) is a Pure-Python RSA implementation.\n\nAffected versions of this package are vulnerable to Timing attacks.\n\n## References\n- [GitHub Issue](https://github.com/sybrenstuvel/python-rsa/issues/19)\n- [GitHub Commit](https://github.com/sybrenstuvel/python-rsa/commit/2310b34bdb530e0bad793d42f589c9f848ff181b)\n",
        "disclosureTime": "2013-11-15T02:34:45.265000Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "rsa@3.3"
        ],
        "functions": [],
        "id": "SNYK-PYTHON-RSA-40541",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-208"
          ]
        },
        "isPatchable": false,
        "isPinnable": true,
        "isUpgradable": false,
        "language": "python",
        "package": "rsa",
        "packageManager": "pip",
        "patches": [],
        "publicationTime": "2013-11-15T02:34:45.265000Z",
        "semver": {
          "vulnerable": [
            "[3.0,3.4.0)"
          ]
        },
        "severity": "medium",
        "title": "Timing Attack",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PYTHON-RSA-40541",
        "version": "3.3"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
        "credit": [
          "Sergio Lerner"
        ],
        "cvssScore": 7.5,
        "description": "## Overview\n[`rsa`](https://pypi.python.org/pypi/rsa) is a Pure-Python RSA implementation.\n\nAffected versions of this package are vulnerable to Authentication Bypass due to not implementing authentication encryption or use MACs to validate messages before decrypting public key encrypted messages.\n\n## References\n- [GitHub Issue](https://github.com/sybrenstuvel/python-rsa/issues/13)\n- [GitHub Commit](https://github.com/sybrenstuvel/python-rsa/commit/1681a0b2f84a4a252c71b87de870a2816de06fdf)\n",
        "disclosureTime": "2012-12-07T03:15:00.052000Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "rsa@3.3"
        ],
        "functions": [],
        "id": "SNYK-PYTHON-RSA-40542",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-287"
          ]
        },
        "isPatchable": false,
        "isPinnable": true,
        "isUpgradable": false,
        "language": "python",
        "package": "rsa",
        "packageManager": "pip",
        "patches": [],
        "publicationTime": "2012-12-07T03:15:00.052000Z",
        "semver": {
          "vulnerable": [
            "[3.0,3.4)"
          ]
        },
        "severity": "high",
        "title": "Authentication Bypass",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PYTHON-RSA-40542",
        "version": "3.3"
      }
    ]
  },
  "licensesPolicy": null,
  "ok": false,
  "org": {
    "id": "229b76f3-802c-4553-aa1d-01d4d86f7f61",
    "name": "gitphill"
  },
  "packageManager": "pip"
}
GET Test for issues in a public package by name and version
{{baseUrl}}/test/npm/:packageName/:version
QUERY PARAMS

packageName
version
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/test/npm/:packageName/:version");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/test/npm/:packageName/:version")
require "http/client"

url = "{{baseUrl}}/test/npm/:packageName/:version"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/test/npm/:packageName/:version"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/test/npm/:packageName/:version");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/test/npm/:packageName/:version"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/test/npm/:packageName/:version HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/test/npm/:packageName/:version")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/test/npm/:packageName/:version"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/test/npm/:packageName/:version")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/test/npm/:packageName/:version")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/test/npm/:packageName/:version');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/test/npm/:packageName/:version'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/test/npm/:packageName/:version';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/test/npm/:packageName/:version',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/test/npm/:packageName/:version")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/test/npm/:packageName/:version',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/test/npm/:packageName/:version'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/test/npm/:packageName/:version');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/test/npm/:packageName/:version'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/test/npm/:packageName/:version';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/test/npm/:packageName/:version"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/test/npm/:packageName/:version" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/test/npm/:packageName/:version",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/test/npm/:packageName/:version');

echo $response->getBody();
setUrl('{{baseUrl}}/test/npm/:packageName/:version');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/test/npm/:packageName/:version');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/test/npm/:packageName/:version' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/test/npm/:packageName/:version' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/test/npm/:packageName/:version")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/test/npm/:packageName/:version"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/test/npm/:packageName/:version"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/test/npm/:packageName/:version")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/test/npm/:packageName/:version') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/test/npm/:packageName/:version";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/test/npm/:packageName/:version
http GET {{baseUrl}}/test/npm/:packageName/:version
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/test/npm/:packageName/:version
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/test/npm/:packageName/:version")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "dependencyCount": 1,
  "issues": {
    "licenses": [],
    "vulnerabilities": [
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
        "credit": [
          "Adam Baldwin"
        ],
        "cvssScore": 5.3,
        "description": "## Overview\n\n[ms](https://www.npmjs.com/package/ms) is a tiny millisecond conversion utility.\n\n\nAffected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS)\nattack when converting a time period string (i.e. `\"2 days\"`, `\"1h\"`) into a milliseconds integer. A malicious user could pass extremely long strings to `ms()`, causing the server to take a long time to process, subsequently blocking the event loop for that extended period.\n\n## Details\nDenial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.\r\n\r\nThe Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.\r\n\r\nLet’s take the following regular expression as an example:\r\n```js\r\nregex = /A(B|C+)+D/\r\n```\r\n\r\nThis regular expression accomplishes the following:\r\n- `A` The string must start with the letter 'A'\r\n- `(B|C+)+` The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the `+` matches one or more times). The `+` at the end of this section states that we can look for one or more matches of this section.\r\n- `D` Finally, we ensure this section of the string ends with a 'D'\r\n\r\nThe expression would match inputs such as `ABBD`, `ABCCCCD`, `ABCBCCCD` and `ACCCCCD`\r\n\r\nIt most cases, it doesn't take very long for a regex engine to find a match:\r\n\r\n```bash\r\n$ time node -e '/A(B|C+)+D/.test(\"ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD\")'\r\n0.04s user 0.01s system 95% cpu 0.052 total\r\n\r\n$ time node -e '/A(B|C+)+D/.test(\"ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX\")'\r\n1.79s user 0.02s system 99% cpu 1.812 total\r\n```\r\n\r\nThe entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.\r\n\r\nMost Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as _catastrophic backtracking_.\r\n\r\nLet's look at how our expression runs into this problem, using a shorter string: \"ACCCX\". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:\r\n1. CCC\r\n2. CC+C\r\n3. C+CC\r\n4. C+C+C.\r\n\r\nThe engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use [RegEx 101 debugger](https://regex101.com/debugger) to see the engine has to take a total of 38 steps before it can determine the string doesn't match.\r\n\r\nFrom there, the number of steps the engine must use to validate a string just continues to grow.\r\n\r\n| String | Number of C's | Number of steps |\r\n| -------|-------------:| -----:|\r\n| ACCCX | 3 | 38\r\n| ACCCCX | 4 | 71\r\n| ACCCCCX | 5 | 136\r\n| ACCCCCCCCCCCCCCX | 14 | 65,553\r\n\r\n\r\nBy the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.\n\n## Remediation\n\nUpgrade `ms` to version 0.7.1 or higher.\n\n\n## References\n\n- [OSS Security advisory](https://www.openwall.com/lists/oss-security/2016/04/20/11)\n\n- [OWASP - ReDoS](https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS)\n\n- [Security Focus](https://www.securityfocus.com/bid/96389)\n",
        "disclosureTime": "2015-10-24T20:39:59Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "ms@0.7.0"
        ],
        "functions": [
          {
            "functionId": {
              "filePath": "ms.js",
              "functionName": "parse"
            },
            "version": [
              ">0.1.0 <=0.3.0"
            ]
          },
          {
            "functionId": {
              "filePath": "index.js",
              "functionName": "parse"
            },
            "version": [
              ">0.3.0 <0.7.1"
            ]
          }
        ],
        "id": "npm:ms:20151024",
        "identifiers": {
          "ALTERNATIVE": [
            "SNYK-JS-MS-10064"
          ],
          "CVE": [
            "CVE-2015-8315"
          ],
          "CWE": [
            "CWE-400"
          ],
          "NSP": [
            46
          ]
        },
        "isPatchable": true,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "js",
        "package": "ms",
        "packageManager": "npm",
        "patches": [
          {
            "comments": [],
            "id": "patch:npm:ms:20151024:5",
            "modificationTime": "2019-12-03T11:40:45.777474Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/ms/20151024/ms_20151024_5_0_48701f029417faf65e6f5e0b61a3cebe5436b07b_snyk5.patch"
            ],
            "version": "=0.1.0"
          },
          {
            "comments": [],
            "id": "patch:npm:ms:20151024:4",
            "modificationTime": "2019-12-03T11:40:45.776329Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/ms/20151024/ms_20151024_4_0_48701f029417faf65e6f5e0b61a3cebe5436b07b_snyk4.patch"
            ],
            "version": "=0.2.0"
          },
          {
            "comments": [],
            "id": "patch:npm:ms:20151024:3",
            "modificationTime": "2019-12-03T11:40:45.775292Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/ms/20151024/ms_20151024_3_0_48701f029417faf65e6f5e0b61a3cebe5436b07b_snyk3.patch"
            ],
            "version": "=0.3.0"
          },
          {
            "comments": [],
            "id": "patch:npm:ms:20151024:2",
            "modificationTime": "2019-12-03T11:40:45.774221Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/ms/20151024/ms_20151024_2_0_48701f029417faf65e6f5e0b61a3cebe5436b07b_snyk2.patch"
            ],
            "version": "<0.6.0 >0.3.0"
          },
          {
            "comments": [],
            "id": "patch:npm:ms:20151024:1",
            "modificationTime": "2019-12-03T11:40:45.773094Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/ms/20151024/ms_20151024_1_0_48701f029417faf65e6f5e0b61a3cebe5436b07b_snyk.patch"
            ],
            "version": "<0.7.0 >=0.6.0"
          },
          {
            "comments": [],
            "id": "patch:npm:ms:20151024:0",
            "modificationTime": "2019-12-03T11:40:45.772009Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/ms/20151024/ms_20151024_0_0_48701f029417faf65e6f5e0b61a3cebe5436b07b.patch"
            ],
            "version": "=0.7.0"
          }
        ],
        "publicationTime": "2015-11-06T02:09:36Z",
        "semver": {
          "vulnerable": [
            "<0.7.1"
          ]
        },
        "severity": "medium",
        "title": "Regular Expression Denial of Service (ReDoS)",
        "type": "vuln",
        "upgradePath": [
          "ms@0.7.1"
        ],
        "url": "https://snyk.io/vuln/npm:ms:20151024",
        "version": "0.7.0"
      }
    ]
  },
  "licensesPolicy": null,
  "ok": false,
  "org": {
    "id": "4a18d42f-0706-4ad0-b127-24078731fbed",
    "name": "atokeneduser"
  },
  "packageManager": "npm"
}
POST Test gemfile.lock file
{{baseUrl}}/test/rubygems
BODY json

{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/test/rubygems");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/test/rubygems" {:content-type :json
                                                          :form-params {:encoding ""
                                                                        :files {:target {:contents ""}}}})
require "http/client"

url = "{{baseUrl}}/test/rubygems"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/test/rubygems"),
    Content = new StringContent("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/test/rubygems");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/test/rubygems"

	payload := strings.NewReader("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/test/rubygems HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 81

{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/test/rubygems")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/test/rubygems"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/test/rubygems")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/test/rubygems")
  .header("content-type", "application/json")
  .body("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  encoding: '',
  files: {
    target: {
      contents: ''
    }
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/test/rubygems');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/rubygems',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/test/rubygems';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/test/rubygems',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "encoding": "",\n  "files": {\n    "target": {\n      "contents": ""\n    }\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/test/rubygems")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/test/rubygems',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({encoding: '', files: {target: {contents: ''}}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/rubygems',
  headers: {'content-type': 'application/json'},
  body: {encoding: '', files: {target: {contents: ''}}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/test/rubygems');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  encoding: '',
  files: {
    target: {
      contents: ''
    }
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/rubygems',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/test/rubygems';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"encoding": @"",
                              @"files": @{ @"target": @{ @"contents": @"" } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/test/rubygems"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/test/rubygems" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/test/rubygems",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'encoding' => '',
    'files' => [
        'target' => [
                'contents' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/test/rubygems', [
  'body' => '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/test/rubygems');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'encoding' => '',
  'files' => [
    'target' => [
        'contents' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'encoding' => '',
  'files' => [
    'target' => [
        'contents' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/test/rubygems');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/test/rubygems' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/test/rubygems' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/test/rubygems", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/test/rubygems"

payload = {
    "encoding": "",
    "files": { "target": { "contents": "" } }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/test/rubygems"

payload <- "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/test/rubygems")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/test/rubygems') do |req|
  req.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/test/rubygems";

    let payload = json!({
        "encoding": "",
        "files": json!({"target": json!({"contents": ""})})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/test/rubygems \
  --header 'content-type: application/json' \
  --data '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}'
echo '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}' |  \
  http POST {{baseUrl}}/test/rubygems \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "encoding": "",\n  "files": {\n    "target": {\n      "contents": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/test/rubygems
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "encoding": "",
  "files": ["target": ["contents": ""]]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/test/rubygems")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "dependencyCount": 6,
  "issues": {
    "licenses": [],
    "vulnerabilities": [
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 7.5,
        "description": "## Overview\n\nThe [`json`](https://rubygems.org/gems/json) gem is a JSON implementation as a Ruby extension in C.\nAffected versions of this Gem contain an overflow condition. This is triggered when user-supplied input is not properly validated while handling specially crafted data. This can allow a remote attacker to cause a stack-based buffer overflow, resulting in a denial of service, or potentially allowing the [execution of arbitrary code](https://snyk.io/vuln/SNYK-RUBY-JSON-20209).\n\n## Details\nDenial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.\r\n\r\nUnlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.\r\n\r\nOne popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.\r\n\r\nWhen it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.\r\n\r\nTwo common types of DoS vulnerabilities:\r\n\r\n* High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, [commons-fileupload:commons-fileupload](SNYK-JAVA-COMMONSFILEUPLOAD-30082).\r\n\r\n* Crash - An attacker sending crafted requests that could cause the system to crash. For Example,  [npm `ws` package](npm:ws:20171108)\n\n## References\n- http://rubysec.com/advisories/OSVDB-101157\n",
        "disclosureTime": "2007-05-20T21:00:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "json@1.0.0"
        ],
        "functions": [],
        "id": "SNYK-RUBY-JSON-20000",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-400"
          ],
          "OSVDB": [
            "OSVDB-101157"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "ruby",
        "package": "json",
        "packageManager": "rubygems",
        "patches": [],
        "publicationTime": "2007-05-20T21:00:00Z",
        "semver": {
          "vulnerable": [
            "< 1.1.0"
          ]
        },
        "severity": "high",
        "title": "Denial of Service (DoS)",
        "type": "vuln",
        "upgradePath": [
          "json@1.1.0"
        ],
        "url": "https://snyk.io/vuln/SNYK-RUBY-JSON-20000",
        "version": "1.0.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
        "credit": [
          "Thomas Hollstegge",
          "Ben Murphy"
        ],
        "cvssScore": 7.3,
        "description": "## Overview\nThe [`json`](https://rubygems.org/gems/json) gem is a JSON implementation as a Ruby extension in C.\nAffected versions of this Gem are vulnerable to Denial of Service (DoS) attacks and unsafe object creation vulnerabilities. When parsing certain JSON documents, the JSON gem tricked into creating Ruby symbols in a target system.\n\n## Details\n\nWhen parsing certain JSON documents, the JSON gem can be coerced in to creating Ruby symbols in a target system.  Since Ruby symbols are not garbage collected, this can result in a denial of service attack.\n\nThe same technique can be used to create objects in a target system that act like internal objects.  These \"act alike\" objects can be used to bypass certain security mechanisms and can be used as a spring board for SQL injection attacks in Ruby on Rails.\n\nImpacted code looks like this:\n```js\nJSON.parse(user_input)\n```\nWhere the `user_input` variable will have a JSON document like this:\n```json\n{\"json_class\":\"foo\"}\n```\nThe JSON gem will attempt to look up the constant \"foo\".  Looking up this constant will create a symbol.\n\nIn JSON version 1.7.x, objects with arbitrary attributes can be created using JSON documents like this:\n```json\n{\"json_class\":\"JSON::GenericObject\",\"foo\":\"bar\"}\n```\nThis document will result in an instance of `JSON::GenericObject`, with the attribute \"foo\" that has the value \"bar\".  Instantiating these objects will result in arbitrary symbol creation and in some cases can be used to bypass security measures.\n\nPLEASE NOTE: this behavior *does not change* when using `JSON.load`.  `JSON.load` should *never* be given input from unknown sources.  If you are processing JSON from an unknown source, *always* use `JSON.parse`.\n\n## References\n- https://www.ruby-lang.org/en/news/2013/02/22/json-dos-cve-2013-0269/\n- https://gist.github.com/rsierra/4943505\n",
        "disclosureTime": "2013-02-10T22:00:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "json@1.0.0"
        ],
        "functions": [],
        "id": "SNYK-RUBY-JSON-20060",
        "identifiers": {
          "CVE": [
            "CVE-2013-0269"
          ],
          "CWE": [
            "CWE-400"
          ],
          "OSVDB": [
            "OSVDB-90074"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "ruby",
        "package": "json",
        "packageManager": "rubygems",
        "patches": [],
        "publicationTime": "2013-02-10T22:00:00Z",
        "semver": {
          "vulnerable": [
            "< 1.7.7, >= 1.7",
            "< 1.6.8, >= 1.6",
            "< 1.5.5"
          ]
        },
        "severity": "high",
        "title": "Denial of Service (DoS)",
        "type": "vuln",
        "upgradePath": [
          "json@1.5.5"
        ],
        "url": "https://snyk.io/vuln/SNYK-RUBY-JSON-20060",
        "version": "1.0.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 7.5,
        "description": "## Overview\n\nThe [`json`](https://rubygems.org/gems/json) gem is a JSON implementation as a Ruby extension in C.\n\nAffected versions of this Gem contain an overflow condition. This is triggered when user-supplied input is not properly validated while handling specially crafted data. This can allow a remote attacker to cause a stack-based buffer overflow, resulting in a [denial of service](https://snyk.io/vuln/SNYK-RUBY-JSON-20000), or potentially allowing the execution of arbitrary code.\n\n## References\n\n- http://rubysec.com/advisories/OSVDB-101157\n",
        "disclosureTime": "2007-05-20T21:00:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "json@1.0.0"
        ],
        "functions": [],
        "id": "SNYK-RUBY-JSON-20209",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-94"
          ],
          "OSVDB": [
            "OSVDB-101157-1"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "ruby",
        "package": "json",
        "packageManager": "rubygems",
        "patches": [],
        "publicationTime": "2007-05-20T21:00:00Z",
        "semver": {
          "vulnerable": [
            "< 1.1.0"
          ]
        },
        "severity": "high",
        "title": "Arbitrary Code Execution",
        "type": "vuln",
        "upgradePath": [
          "json@1.1.0"
        ],
        "url": "https://snyk.io/vuln/SNYK-RUBY-JSON-20209",
        "version": "1.0.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N",
        "credit": [
          "Will Leinweber"
        ],
        "cvssScore": 5.3,
        "description": "## Overview\n\n[rack](https://rack.github.io/) is a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and distills the API for web servers, web frameworks, and software in between (the so-called middleware) into a single method call.\n\n\nAffected versions of this package are vulnerable to Information Exposure.\nAttackers may be able to find and hijack sessions by using timing attacks targeting the session id. Session ids are usually stored and indexed in a database that uses some kind of scheme for speeding up lookups of that session id. By carefully measuring the amount of time it takes to look up a session, an attacker may be able to find a valid session id and hijack the session.\n\n## Remediation\n\nUpgrade `rack` to version 1.6.12, 2.0.8 or higher.\n\n\n## References\n\n- [GitHub Fix Commit](https://github.com/rack/rack/commit/7fecaee81f59926b6e1913511c90650e76673b38)\n\n- [GitHub Security Advisory](https://github.com/rack/rack/security/advisories/GHSA-hrqr-hxpp-chr3)\n",
        "disclosureTime": "2019-12-18T20:24:49Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "redis-rack-cache@1.1",
          "rack-cache@1.1",
          "rack@2.0.1"
        ],
        "functions": [],
        "id": "SNYK-RUBY-RACK-538324",
        "identifiers": {
          "CVE": [
            "CVE-2019-16782"
          ],
          "CWE": [
            "CWE-200"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "ruby",
        "package": "rack",
        "packageManager": "rubygems",
        "patches": [],
        "publicationTime": "2019-12-19T20:24:49Z",
        "semver": {
          "vulnerable": [
            "<1.6.12",
            ">=2.0.0.alpha, <2.0.8"
          ]
        },
        "severity": "medium",
        "title": "Information Exposure",
        "type": "vuln",
        "upgradePath": [
          "redis-rack-cache@1.1",
          "rack-cache@1.1",
          "rack@2.0.8"
        ],
        "url": "https://snyk.io/vuln/SNYK-RUBY-RACK-538324",
        "version": "2.0.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
        "credit": [
          "Aaron Patterson"
        ],
        "cvssScore": 6.1,
        "description": "## Overview\n\n[rack](https://rack.github.io/) is a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and distills the API for web servers, web frameworks, and software in between (the so-called middleware) into a single method call.\n\n\nAffected versions of this package are vulnerable to Cross-site Scripting (XSS)\nvia the `scheme` method on `Rack::Request`.\n\n## Remediation\n\nUpgrade `rack` to version 1.6.11, 2.0.6 or higher.\n\n\n## References\n\n- [GitHub Commit](https://github.com/rack/rack/commit/313dd6a05a5924ed6c82072299c53fed09e39ae7)\n\n- [Google Security Forum](https://groups.google.com/forum/#!msg/rubyonrails-security/GKsAFT924Ag/DYtk-Xl6AAAJ)\n\n- [RedHat Bugzilla Bug](https://bugzilla.redhat.com/show_bug.cgi?id=1646818)\n",
        "disclosureTime": "2018-08-22T15:56:49Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "redis-rack-cache@1.1",
          "rack-cache@1.1",
          "rack@2.0.1"
        ],
        "functions": [],
        "id": "SNYK-RUBY-RACK-72567",
        "identifiers": {
          "CVE": [
            "CVE-2018-16470"
          ],
          "CWE": [
            "CWE-79"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "ruby",
        "package": "rack",
        "packageManager": "rubygems",
        "patches": [],
        "publicationTime": "2018-11-06T16:08:37Z",
        "semver": {
          "vulnerable": [
            "<1.6.11",
            ">=2.0.0, <2.0.6"
          ]
        },
        "severity": "medium",
        "title": "Cross-site Scripting (XSS)",
        "type": "vuln",
        "upgradePath": [
          "redis-rack-cache@1.1",
          "rack-cache@1.1",
          "rack@2.0.6"
        ],
        "url": "https://snyk.io/vuln/SNYK-RUBY-RACK-72567",
        "version": "2.0.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 7.3,
        "description": "## Overview\n[rack-cache](https://rubygems.org/gems/rack-cache) enables HTTP caching for Rack-based applications.\nAffected versions of this gem contain a flaw related to the rubygem caching sensitive HTTP headers. This will result in a weakness that may make it easier for an attacker to gain access to a user's session via a specially crafted header.\n\n## References\n- http://rubysec.com/advisories/CVE-2012-2671\n",
        "disclosureTime": "2012-06-05T21:00:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "redis-rack-cache@1.1",
          "rack-cache@1.1"
        ],
        "functions": [],
        "id": "SNYK-RUBY-RACKCACHE-20031",
        "identifiers": {
          "CVE": [
            "CVE-2012-2671"
          ],
          "CWE": [
            "CWE-444"
          ],
          "OSVDB": [
            "OSVDB-83077"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "ruby",
        "package": "rack-cache",
        "packageManager": "rubygems",
        "patches": [],
        "publicationTime": "2012-06-05T21:00:00Z",
        "semver": {
          "vulnerable": [
            "< 1.2"
          ]
        },
        "severity": "high",
        "title": "HTTP Header Caching Weakness",
        "type": "vuln",
        "upgradePath": [
          "redis-rack-cache@1.2",
          "rack-cache@1.2"
        ],
        "url": "https://snyk.io/vuln/SNYK-RUBY-RACKCACHE-20031",
        "version": "1.1"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
        "credit": [
          "Dylan Katz"
        ],
        "cvssScore": 9.8,
        "description": "## Overview\n[`redis-store`](https://rubygems.org/gems/redis-store) is a namespaced Rack::Session, Rack::Cache, I18n and cache Redis stores for Ruby web frameworks.\n\nAffected versions of the package are vulnerable to Deserialization of Untrusted Data.\n\n# Details\nSerialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like _Remote Method Invocation (RMI)_, _Java Management Extension (JMX)_, _Java Messaging System (JMS)_, _Action Message Format (AMF)_, _Java Server Faces (JSF) ViewState_, etc.\n\n_Deserialization of untrusted data_ ([CWE-502](https://cwe.mitre.org/data/definitions/502.html)), is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, letting the attacker to control the state or the flow of the execution.\n\nAn attacker just needs to identify a piece of software that has both a vulnerable class on its path, and performs deserialization on untrusted data. Then all they need to do is send the payload into the deserializer, getting the command executed.\n\n## Remediation\nUpgrade `redis-store` to version 1.4.0 or higher.\n\n## References\n- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2017-1000248)\n- [GitHub PR](https://github.com/redis-store/redis-store/pull/290)\n- [GitHub Issue](https://github.com/redis-store/redis-store/issues/289)\n- [GitHub Commit](https://github.com/redis-store/redis-store/commit/e0c1398d54a9661c8c70267c3a925ba6b192142e)\n",
        "disclosureTime": "2017-08-10T21:00:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "redis-rack-cache@1.1",
          "redis-store@1.1.0"
        ],
        "functions": [],
        "id": "SNYK-RUBY-REDISSTORE-20452",
        "identifiers": {
          "CVE": [
            "CVE-2017-1000248"
          ],
          "CWE": [
            "CWE-502"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "ruby",
        "package": "redis-store",
        "packageManager": "rubygems",
        "patches": [],
        "publicationTime": "2017-12-07T09:52:33.659000Z",
        "semver": {
          "vulnerable": [
            "<1.4.0"
          ]
        },
        "severity": "critical",
        "title": "Deserialization of Untrusted Data",
        "type": "vuln",
        "upgradePath": [
          "redis-rack-cache@2.0.2",
          "redis-store@1.4.0"
        ],
        "url": "https://snyk.io/vuln/SNYK-RUBY-REDISSTORE-20452",
        "version": "1.1.0"
      }
    ]
  },
  "licensesPolicy": null,
  "ok": false,
  "org": {
    "id": "4a18d42f-0706-4ad0-b127-24078731fbed",
    "name": "atokeneduser"
  },
  "packageManager": "rubygems"
}
POST Test gradle file
{{baseUrl}}/test/gradle
BODY json

{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/test/gradle");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/test/gradle" {:content-type :json
                                                        :form-params {:encoding ""
                                                                      :files {:target {:contents ""}}}})
require "http/client"

url = "{{baseUrl}}/test/gradle"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/test/gradle"),
    Content = new StringContent("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/test/gradle");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/test/gradle"

	payload := strings.NewReader("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/test/gradle HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 81

{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/test/gradle")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/test/gradle"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/test/gradle")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/test/gradle")
  .header("content-type", "application/json")
  .body("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  encoding: '',
  files: {
    target: {
      contents: ''
    }
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/test/gradle');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/gradle',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/test/gradle';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/test/gradle',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "encoding": "",\n  "files": {\n    "target": {\n      "contents": ""\n    }\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/test/gradle")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/test/gradle',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({encoding: '', files: {target: {contents: ''}}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/gradle',
  headers: {'content-type': 'application/json'},
  body: {encoding: '', files: {target: {contents: ''}}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/test/gradle');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  encoding: '',
  files: {
    target: {
      contents: ''
    }
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/gradle',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/test/gradle';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"encoding": @"",
                              @"files": @{ @"target": @{ @"contents": @"" } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/test/gradle"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/test/gradle" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/test/gradle",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'encoding' => '',
    'files' => [
        'target' => [
                'contents' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/test/gradle', [
  'body' => '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/test/gradle');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'encoding' => '',
  'files' => [
    'target' => [
        'contents' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'encoding' => '',
  'files' => [
    'target' => [
        'contents' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/test/gradle');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/test/gradle' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/test/gradle' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/test/gradle", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/test/gradle"

payload = {
    "encoding": "",
    "files": { "target": { "contents": "" } }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/test/gradle"

payload <- "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/test/gradle")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/test/gradle') do |req|
  req.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/test/gradle";

    let payload = json!({
        "encoding": "",
        "files": json!({"target": json!({"contents": ""})})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/test/gradle \
  --header 'content-type: application/json' \
  --data '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}'
echo '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}' |  \
  http POST {{baseUrl}}/test/gradle \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "encoding": "",\n  "files": {\n    "target": {\n      "contents": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/test/gradle
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "encoding": "",
  "files": ["target": ["contents": ""]]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/test/gradle")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "dependencyCount": 6,
  "issues": {
    "licenses": [],
    "vulnerabilities": [
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N",
        "credit": [
          "David Jorm",
          "Arun Neelicattu"
        ],
        "cvssScore": 5.4,
        "description": "## Overview\n\n[axis:axis](https://search.maven.org/search?q=g:axis) is an implementation of the SOAP (\"Simple Object Access Protocol\") submission to W3C.\n\n\nAffected versions of this package are vulnerable to Man-in-the-Middle (MitM).\nIt does not verify the requesting server's hostname against existing domain names in the SSL Certificate. \r\n\r\n## Details\r\nThe `getCN` function in Apache Axis 1.4 and earlier does not properly verify that the server hostname matches a domain name in the subject's `Common Name (CN)` or `subjectAltName` field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via a certificate with a subject that specifies a common name in a field that is not the CN field.  \r\n\r\n**NOTE:** this issue exists because of an incomplete fix for [CVE-2012-5784](https://snyk.io/vuln/SNYK-JAVA-AXIS-30189).\n\n## Remediation\n\nThere is no fixed version for `axis:axis`.\n\n\n## References\n\n- [Axis Issue](https://issues.apache.org/jira/browse/AXIS-2905)\n\n- [NVD](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-3596)\n\n- [Redhat Bugzilla](https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-3596)\n",
        "disclosureTime": "2014-08-18T16:51:53Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "axis:axis@1.4"
        ],
        "functions": [],
        "id": "SNYK-JAVA-AXIS-30071",
        "identifiers": {
          "CVE": [
            "CVE-2014-3596"
          ],
          "CWE": [
            "CWE-297"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "java",
        "package": "axis:axis",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2014-08-18T16:51:53Z",
        "semver": {
          "vulnerable": [
            "[0,]"
          ]
        },
        "severity": "medium",
        "title": "Man-in-the-Middle (MitM)",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-JAVA-AXIS-30071",
        "version": "1.4"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N",
        "credit": [
          "Alberto Fernández"
        ],
        "cvssScore": 5.4,
        "description": "## Overview\n\n[axis:axis](https://search.maven.org/search?q=g:axis) is an implementation of the SOAP (\"Simple Object Access Protocol\") submission to W3C.\n\n\nAffected versions of this package are vulnerable to Man-in-the-Middle (MitM).\nIt does not verify the requesting server's hostname against existing domain names in the SSL Certificate.\r\n\r\n## Details\r\nApache Axis 1.4 and earlier does not properly verify that the server hostname matches a domain name in the subject's `Common Name (CN)` or `subjectAltName` field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.\n\n## Remediation\n\nThere is no fixed version for `axis:axis`.\n\n\n## References\n\n- [Jira Issue](https://issues.apache.org/jira/browse/AXIS-2883)\n\n- [NVD](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-5784)\n\n- [Texas University](http://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf)\n",
        "disclosureTime": "2012-11-04T22:55:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "axis:axis@1.4"
        ],
        "functions": [],
        "id": "SNYK-JAVA-AXIS-30189",
        "identifiers": {
          "CVE": [
            "CVE-2012-5784"
          ],
          "CWE": [
            "CWE-20"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "java",
        "package": "axis:axis",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2017-03-13T08:00:21Z",
        "semver": {
          "vulnerable": [
            "[0,]"
          ]
        },
        "severity": "medium",
        "title": "Man-in-the-Middle (MitM)",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-JAVA-AXIS-30189",
        "version": "1.4"
      }
    ]
  },
  "licensesPolicy": null,
  "ok": false,
  "org": {
    "id": "4a18d42f-0706-4ad0-b127-24078731fbed",
    "name": "atokeneduser"
  },
  "packageManager": "gradle"
}
POST Test maven file
{{baseUrl}}/test/maven
BODY json

{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/test/maven");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/test/maven" {:content-type :json
                                                       :form-params {:encoding ""
                                                                     :files {:additional []
                                                                             :target {:contents ""}}}})
require "http/client"

url = "{{baseUrl}}/test/maven"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/test/maven"),
    Content = new StringContent("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/test/maven");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/test/maven"

	payload := strings.NewReader("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/test/maven HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 103

{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/test/maven")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/test/maven"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/test/maven")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/test/maven")
  .header("content-type", "application/json")
  .body("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  encoding: '',
  files: {
    additional: [],
    target: {
      contents: ''
    }
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/test/maven');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/maven',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {additional: [], target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/test/maven';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"additional":[],"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/test/maven',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "encoding": "",\n  "files": {\n    "additional": [],\n    "target": {\n      "contents": ""\n    }\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/test/maven")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/test/maven',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({encoding: '', files: {additional: [], target: {contents: ''}}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/maven',
  headers: {'content-type': 'application/json'},
  body: {encoding: '', files: {additional: [], target: {contents: ''}}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/test/maven');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  encoding: '',
  files: {
    additional: [],
    target: {
      contents: ''
    }
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/maven',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {additional: [], target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/test/maven';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"additional":[],"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"encoding": @"",
                              @"files": @{ @"additional": @[  ], @"target": @{ @"contents": @"" } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/test/maven"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/test/maven" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/test/maven",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'encoding' => '',
    'files' => [
        'additional' => [
                
        ],
        'target' => [
                'contents' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/test/maven', [
  'body' => '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/test/maven');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'encoding' => '',
  'files' => [
    'additional' => [
        
    ],
    'target' => [
        'contents' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'encoding' => '',
  'files' => [
    'additional' => [
        
    ],
    'target' => [
        'contents' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/test/maven');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/test/maven' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/test/maven' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/test/maven", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/test/maven"

payload = {
    "encoding": "",
    "files": {
        "additional": [],
        "target": { "contents": "" }
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/test/maven"

payload <- "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/test/maven")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/test/maven') do |req|
  req.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/test/maven";

    let payload = json!({
        "encoding": "",
        "files": json!({
            "additional": (),
            "target": json!({"contents": ""})
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/test/maven \
  --header 'content-type: application/json' \
  --data '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}'
echo '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}' |  \
  http POST {{baseUrl}}/test/maven \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "encoding": "",\n  "files": {\n    "additional": [],\n    "target": {\n      "contents": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/test/maven
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "encoding": "",
  "files": [
    "additional": [],
    "target": ["contents": ""]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/test/maven")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "dependencyCount": 8,
  "issues": {
    "licenses": [],
    "vulnerabilities": [
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N",
        "credit": [
          "David Jorm",
          "Arun Neelicattu"
        ],
        "cvssScore": 5.4,
        "description": "## Overview\n\n[axis:axis](https://search.maven.org/search?q=g:axis) is an implementation of the SOAP (\"Simple Object Access Protocol\") submission to W3C.\n\n\nAffected versions of this package are vulnerable to Man-in-the-Middle (MitM).\nIt does not verify the requesting server's hostname against existing domain names in the SSL Certificate. \r\n\r\n## Details\r\nThe `getCN` function in Apache Axis 1.4 and earlier does not properly verify that the server hostname matches a domain name in the subject's `Common Name (CN)` or `subjectAltName` field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via a certificate with a subject that specifies a common name in a field that is not the CN field.  \r\n\r\n**NOTE:** this issue exists because of an incomplete fix for [CVE-2012-5784](https://snyk.io/vuln/SNYK-JAVA-AXIS-30189).\n\n## Remediation\n\nThere is no fixed version for `axis:axis`.\n\n\n## References\n\n- [Axis Issue](https://issues.apache.org/jira/browse/AXIS-2905)\n\n- [NVD](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-3596)\n\n- [Redhat Bugzilla](https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-3596)\n",
        "disclosureTime": "2014-08-18T16:51:53Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "axis:axis@1.4"
        ],
        "functions": [],
        "id": "SNYK-JAVA-AXIS-30071",
        "identifiers": {
          "CVE": [
            "CVE-2014-3596"
          ],
          "CWE": [
            "CWE-297"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "java",
        "package": "axis:axis",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2014-08-18T16:51:53Z",
        "semver": {
          "vulnerable": [
            "[0,]"
          ]
        },
        "severity": "medium",
        "title": "Man-in-the-Middle (MitM)",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-JAVA-AXIS-30071",
        "version": "1.4"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N",
        "credit": [
          "Alberto Fernández"
        ],
        "cvssScore": 5.4,
        "description": "## Overview\n\n[axis:axis](https://search.maven.org/search?q=g:axis) is an implementation of the SOAP (\"Simple Object Access Protocol\") submission to W3C.\n\n\nAffected versions of this package are vulnerable to Man-in-the-Middle (MitM).\nIt does not verify the requesting server's hostname against existing domain names in the SSL Certificate.\r\n\r\n## Details\r\nApache Axis 1.4 and earlier does not properly verify that the server hostname matches a domain name in the subject's `Common Name (CN)` or `subjectAltName` field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.\n\n## Remediation\n\nThere is no fixed version for `axis:axis`.\n\n\n## References\n\n- [Jira Issue](https://issues.apache.org/jira/browse/AXIS-2883)\n\n- [NVD](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-5784)\n\n- [Texas University](http://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf)\n",
        "disclosureTime": "2012-11-04T22:55:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "axis:axis@1.4"
        ],
        "functions": [],
        "id": "SNYK-JAVA-AXIS-30189",
        "identifiers": {
          "CVE": [
            "CVE-2012-5784"
          ],
          "CWE": [
            "CWE-20"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "java",
        "package": "axis:axis",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2017-03-13T08:00:21Z",
        "semver": {
          "vulnerable": [
            "[0,]"
          ]
        },
        "severity": "medium",
        "title": "Man-in-the-Middle (MitM)",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-JAVA-AXIS-30189",
        "version": "1.4"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P/RL:O",
        "credit": [
          "Harrison Neal"
        ],
        "cvssScore": 4.3,
        "description": "## Overview\n\n[org.apache.zookeeper:zookeeper](http://zookeeper.apache.org/) is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.\n\n\nAffected versions of this package are vulnerable to Access Control Bypass.\nZooKeeper’s `getACL()` method doesn’t check any permission when retrieving the ACLs of the requested node and returns all information contained in the ACL `Id` field as plain text string. \r\nIf Digest Authentication is in use, the unsalted hash value will be disclosed by the `getACL()` method for unauthenticated or unprivileged users.\n\n## Remediation\n\nUpgrade `org.apache.zookeeper:zookeeper` to version 3.4.14, 3.5.5 or higher.\n\n\n## References\n\n- [GitHub Commit](https://github.com/apache/zookeeper/commit/af741cb319d4760cfab1cd3b560635adacd8deca)\n\n- [Jira Issue](https://issues.apache.org/jira/browse/ZOOKEEPER-1392)\n\n- [ZooKeeper Security](https://zookeeper.apache.org/security.html#CVE-2019-0201)\n",
        "disclosureTime": "2019-05-23T15:00:13Z",
        "exploitMaturity": "proof-of-concept",
        "from": [
          "org.apache.zookeeper:zookeeper@3.5"
        ],
        "functions": [],
        "id": "SNYK-JAVA-ORGAPACHEZOOKEEPER-174781",
        "identifiers": {
          "CVE": [
            "CVE-2019-0201"
          ],
          "CWE": [
            "CWE-288"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "org.apache.zookeeper:zookeeper",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2019-05-23T15:00:13Z",
        "semver": {
          "vulnerable": [
            "[,3.4.14)",
            "[3.5.0-alpha, 3.5.5)"
          ]
        },
        "severity": "medium",
        "title": "Access Control Bypass",
        "type": "vuln",
        "upgradePath": [
          "org.apache.zookeeper:zookeeper@3.5.5"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEZOOKEEPER-174781",
        "version": "3.5"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 4,
        "description": "## Overview\n\n[org.apache.zookeeper:zookeeper](http://zookeeper.apache.org/) is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.\n\n\nAffected versions of this package are vulnerable to Insufficiently Protected Credentials.\nThe logs cleartext admin passwords, which allows local users to obtain sensitive information by reading the log.\n\n## Remediation\n\nUpgrade `org.apache.zookeeper:zookeeper` to version 3.4.7, 3.5.1-alpha or higher.\n\n\n## References\n\n- [Jira Issue](https://issues.apache.org/jira/browse/ZOOKEEPER-1917)\n\n- [Redhat Bugzilla](https://bugzilla.redhat.com/show_bug.cgi?id=1067265)\n",
        "disclosureTime": "2014-04-17T14:55:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "org.apache.zookeeper:zookeeper@3.5"
        ],
        "functions": [],
        "id": "SNYK-JAVA-ORGAPACHEZOOKEEPER-31035",
        "identifiers": {
          "CVE": [
            "CVE-2014-0085"
          ],
          "CWE": [
            "CWE-522"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "org.apache.zookeeper:zookeeper",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2016-10-05T08:19:32Z",
        "semver": {
          "vulnerable": [
            "[3.3.0,3.4.7)",
            "[3.5.0-alpha,3.5.1-alpha)"
          ]
        },
        "severity": "medium",
        "title": "Insufficiently Protected Credentials",
        "type": "vuln",
        "upgradePath": [
          "org.apache.zookeeper:zookeeper@3.5.5"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEZOOKEEPER-31035",
        "version": "3.5"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 7.5,
        "description": "## Overview\n\n[org.apache.zookeeper:zookeeper](http://zookeeper.apache.org/) is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.\n\n\nAffected versions of this package are vulnerable to Denial of Service (DoS).\nFour letter zookeeper commands (such as `wchp`/`wchc` ) are not properly handled, which leads to the server unable to serve legitimate client requests.\n\n## Details\nDenial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.\r\n\r\nUnlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.\r\n\r\nOne popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.\r\n\r\nWhen it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.\r\n\r\nTwo common types of DoS vulnerabilities:\r\n\r\n* High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, [commons-fileupload:commons-fileupload](SNYK-JAVA-COMMONSFILEUPLOAD-30082).\r\n\r\n* Crash - An attacker sending crafted requests that could cause the system to crash. For Example,  [npm `ws` package](npm:ws:20171108)\n\n## Remediation\n\nUpgrade `org.apache.zookeeper:zookeeper` to version 3.4.10, 3.5.3-beta or higher.\n\n\n## References\n\n- [GitHub Commit](https://github.com/apache/zookeeper/pull/179/commits/b4c421d5f42d8af376b1d422e73cc210133d367f)\n\n- [Jira Issue](https://issues.apache.org/jira/browse/ZOOKEEPER-2693)\n\n- [NVD](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-5637)\n",
        "disclosureTime": "2017-02-15T06:56:48Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "org.apache.zookeeper:zookeeper@3.5"
        ],
        "functions": [
          {
            "functionId": {
              "className": "org.apache.zookeeper.server.NIOServerCnxn",
              "functionName": "checkFourLetterWord"
            },
            "version": [
              "[,3.3.7)"
            ]
          },
          {
            "functionId": {
              "className": "org.apache.zookeeper.server.NettyServerCnxn",
              "functionName": "checkFourLetterWord"
            },
            "version": [
              "[3.3.7, 3.4.10)",
              "[3.5,3.5.3)"
            ]
          }
        ],
        "id": "SNYK-JAVA-ORGAPACHEZOOKEEPER-31428",
        "identifiers": {
          "CVE": [
            "CVE-2017-5637"
          ],
          "CWE": [
            "CWE-400"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "org.apache.zookeeper:zookeeper",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2017-05-21T07:52:38Z",
        "semver": {
          "vulnerable": [
            "[3.4.6, 3.4.10)",
            "[3.5.0-alpha, 3.5.3-beta)"
          ]
        },
        "severity": "high",
        "title": "Denial of Service (DoS)",
        "type": "vuln",
        "upgradePath": [
          "org.apache.zookeeper:zookeeper@3.5.5"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEZOOKEEPER-31428",
        "version": "3.5"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
        "credit": [
          "Foldi Tamas",
          "Eugene Koontz"
        ],
        "cvssScore": 7.5,
        "description": "## Overview\n\n[org.apache.zookeeper:zookeeper](http://zookeeper.apache.org/) is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.\n\n\nAffected versions of this package are vulnerable to Authentication Bypass.\nNo authentication/authorization is enforced when a server attempts to join a quorum, as a result an arbitrary end point could join the cluster and begin propagating counterfeit changes to the leader.\n\n## Remediation\n\nUpgrade `org.apache.zookeeper:zookeeper` to version 3.4.10, 3.5.4-beta or higher.\n\n\n## References\n\n- [Apache Mail Archives](https://lists.apache.org/thread.html/c75147028c1c79bdebd4f8fa5db2b77da85de2b05ecc0d54d708b393@%3Cdev.zookeeper.apache.org%3E)\n",
        "disclosureTime": "2018-05-21T18:49:04Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "org.apache.zookeeper:zookeeper@3.5"
        ],
        "functions": [],
        "id": "SNYK-JAVA-ORGAPACHEZOOKEEPER-32301",
        "identifiers": {
          "CVE": [
            "CVE-2018-8012"
          ],
          "CWE": [
            "CWE-592"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "org.apache.zookeeper:zookeeper",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2018-05-22T13:32:24Z",
        "semver": {
          "vulnerable": [
            "[,3.4.10)",
            "[3.5.0-alpha, 3.5.4-beta)"
          ]
        },
        "severity": "high",
        "title": "Authentication Bypass",
        "type": "vuln",
        "upgradePath": [
          "org.apache.zookeeper:zookeeper@3.5.5"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEZOOKEEPER-32301",
        "version": "3.5"
      }
    ]
  },
  "licensesPolicy": null,
  "ok": false,
  "org": {
    "id": "b94596b8-9d3e-45ae-ac1d-2bf7fa83d848",
    "name": "mySnykOrganization"
  },
  "packageManager": "maven"
}
POST Test package.json & package-lock.json File
{{baseUrl}}/test/npm
BODY json

{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/test/npm");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/test/npm" {:content-type :json
                                                     :form-params {:encoding ""
                                                                   :files {:additional []
                                                                           :target {:contents ""}}}})
require "http/client"

url = "{{baseUrl}}/test/npm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/test/npm"),
    Content = new StringContent("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/test/npm");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/test/npm"

	payload := strings.NewReader("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/test/npm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 103

{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/test/npm")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/test/npm"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/test/npm")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/test/npm")
  .header("content-type", "application/json")
  .body("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  encoding: '',
  files: {
    additional: [],
    target: {
      contents: ''
    }
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/test/npm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/npm',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {additional: [], target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/test/npm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"additional":[],"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/test/npm',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "encoding": "",\n  "files": {\n    "additional": [],\n    "target": {\n      "contents": ""\n    }\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/test/npm")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/test/npm',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({encoding: '', files: {additional: [], target: {contents: ''}}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/npm',
  headers: {'content-type': 'application/json'},
  body: {encoding: '', files: {additional: [], target: {contents: ''}}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/test/npm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  encoding: '',
  files: {
    additional: [],
    target: {
      contents: ''
    }
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/npm',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {additional: [], target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/test/npm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"additional":[],"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"encoding": @"",
                              @"files": @{ @"additional": @[  ], @"target": @{ @"contents": @"" } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/test/npm"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/test/npm" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/test/npm",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'encoding' => '',
    'files' => [
        'additional' => [
                
        ],
        'target' => [
                'contents' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/test/npm', [
  'body' => '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/test/npm');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'encoding' => '',
  'files' => [
    'additional' => [
        
    ],
    'target' => [
        'contents' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'encoding' => '',
  'files' => [
    'additional' => [
        
    ],
    'target' => [
        'contents' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/test/npm');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/test/npm' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/test/npm' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/test/npm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/test/npm"

payload = {
    "encoding": "",
    "files": {
        "additional": [],
        "target": { "contents": "" }
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/test/npm"

payload <- "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/test/npm")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/test/npm') do |req|
  req.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/test/npm";

    let payload = json!({
        "encoding": "",
        "files": json!({
            "additional": (),
            "target": json!({"contents": ""})
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/test/npm \
  --header 'content-type: application/json' \
  --data '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}'
echo '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}' |  \
  http POST {{baseUrl}}/test/npm \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "encoding": "",\n  "files": {\n    "additional": [],\n    "target": {\n      "contents": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/test/npm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "encoding": "",
  "files": [
    "additional": [],
    "target": ["contents": ""]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/test/npm")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "dependencyCount": 2,
  "issues": {
    "licenses": [],
    "vulnerabilities": [
      {
        "CVSSv3": "CVSS:3.0/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N",
        "credit": [
          "Fedot Praslov"
        ],
        "cvssScore": 4.2,
        "description": "## Overview\n[`node-uuid`](https://github.com/kelektiv/node-uuid) is a Simple, fast generation of RFC4122 UUIDS.\n\nAffected versions of this package are vulnerable to Insecure Randomness. It uses the cryptographically insecure `Math.random` which can produce predictable values and should not be used in security-sensitive context.\n\n## Remediation\nUpgrade `node-uuid` to version 1.4.4 or greater.\n\n## References\n- [GitHub Issue](https://github.com/broofa/node-uuid/issues/108)\n- [GitHub Issue 2](https://github.com/broofa/node-uuid/issues/122)\n",
        "disclosureTime": "2016-03-28T21:29:30Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "node-uuid@1.4.0"
        ],
        "functions": [],
        "id": "npm:node-uuid:20160328",
        "identifiers": {
          "ALTERNATIVE": [
            "SNYK-JS-NODEUUID-10089"
          ],
          "CVE": [],
          "CWE": [
            "CWE-330"
          ],
          "NSP": [
            93
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "js",
        "package": "node-uuid",
        "packageManager": "npm",
        "patches": [
          {
            "comments": [],
            "id": "patch:npm:node-uuid:20160328:0",
            "modificationTime": "2019-12-03T11:40:45.815314Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/node-uuid/20160328/node-uuid_20160328_0_0_616ad3800f35cf58089215f420db9654801a5a02.patch"
            ],
            "version": "<=1.4.3 >=1.4.2"
          }
        ],
        "publicationTime": "2016-03-28T22:00:02.566000Z",
        "semver": {
          "vulnerable": [
            "<1.4.4"
          ]
        },
        "severity": "medium",
        "title": "Insecure Randomness",
        "type": "vuln",
        "upgradePath": [
          "node-uuid@1.4.6"
        ],
        "url": "https://snyk.io/vuln/npm:node-uuid:20160328",
        "version": "1.4.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
        "credit": [
          "Dustin Shiver"
        ],
        "cvssScore": 7.5,
        "description": "## Overview\n\n[qs](https://www.npmjs.com/package/qs) is a querystring parser that supports nesting and arrays, with a depth limit.\n\n\nAffected versions of this package are vulnerable to Denial of Service (Memory Exhaustion).\nDuring parsing, the `qs` module may create a sparse area (an array where no elements are filled), and grow that array to the necessary size based on the indices used on it. An attacker can specify a high index value in a query string, thus making the server allocate a respectively big array. Truly large values can cause the server to run out of memory and cause it to crash - thus enabling a Denial-of-Service attack.\n\n## Remediation\n\nUpgrade `qs` to version 1.0.0 or higher.\n\n\n## Details\nDenial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.\r\n\r\nUnlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.\r\n\r\nOne popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.\r\n\r\nWhen it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.\r\n\r\nTwo common types of DoS vulnerabilities:\r\n\r\n* High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, [commons-fileupload:commons-fileupload](SNYK-JAVA-COMMONSFILEUPLOAD-30082).\r\n\r\n* Crash - An attacker sending crafted requests that could cause the system to crash. For Example,  [npm `ws` package](npm:ws:20171108)\n\n## References\n\n- [GitHub Commit](https://github.com/tj/node-querystring/pull/114/commits/43a604b7847e56bba49d0ce3e222fe89569354d8)\n\n- [GitHub Issue](https://github.com/visionmedia/node-querystring/issues/104)\n\n- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2014-7191)\n",
        "disclosureTime": "2014-08-06T06:10:22Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "qs@0.0.6"
        ],
        "functions": [
          {
            "functionId": {
              "filePath": "index.js",
              "functionName": "compact"
            },
            "version": [
              "<1.0.0"
            ]
          }
        ],
        "id": "npm:qs:20140806",
        "identifiers": {
          "ALTERNATIVE": [
            "SNYK-JS-QS-10019"
          ],
          "CVE": [
            "CVE-2014-7191"
          ],
          "CWE": [
            "CWE-400"
          ],
          "NSP": [
            29
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "js",
        "package": "qs",
        "packageManager": "npm",
        "patches": [
          {
            "comments": [],
            "id": "patch:npm:qs:20140806:0",
            "modificationTime": "2019-12-03T11:40:45.741062Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20140806/qs_20140806_0_0_43a604b7847e56bba49d0ce3e222fe89569354d8_snyk.patch"
            ],
            "version": "<1.0.0 >=0.6.5"
          },
          {
            "comments": [],
            "id": "patch:npm:qs:20140806:1",
            "modificationTime": "2019-12-03T11:40:45.728930Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20140806/qs_20140806_0_1_snyk_npm.patch"
            ],
            "version": "=0.5.6"
          }
        ],
        "publicationTime": "2014-08-06T06:10:22Z",
        "semver": {
          "vulnerable": [
            "<1.0.0"
          ]
        },
        "severity": "high",
        "title": "Denial of Service (Memory Exhaustion)",
        "type": "vuln",
        "upgradePath": [
          "qs@1.0.0"
        ],
        "url": "https://snyk.io/vuln/npm:qs:20140806",
        "version": "0.0.6"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
        "credit": [
          "Tom Steele"
        ],
        "cvssScore": 6.5,
        "description": "## Overview\n\n[qs](https://www.npmjs.com/package/qs) is a querystring parser that supports nesting and arrays, with a depth limit.\n\n\nAffected versions of this package are vulnerable to Denial of Service (Event Loop Blocking).\nWhen parsing a string representing a deeply nested object, qs will block the event loop for long periods of time. Such a delay may hold up the server's resources, keeping it from processing other requests in the meantime, thus enabling a Denial-of-Service attack.\n\n## Details\nDenial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.\r\n\r\nUnlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.\r\n\r\nOne popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.\r\n\r\nWhen it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.\r\n\r\nTwo common types of DoS vulnerabilities:\r\n\r\n* High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, [commons-fileupload:commons-fileupload](SNYK-JAVA-COMMONSFILEUPLOAD-30082).\r\n\r\n* Crash - An attacker sending crafted requests that could cause the system to crash. For Example,  [npm `ws` package](npm:ws:20171108)\n\n## Remediation\n\nUpgrade `qs` to version 1.0.0 or higher.\n\n\n## References\n\n- [Node Security Advisory](https://nodesecurity.io/advisories/28)\n",
        "disclosureTime": "2014-08-06T06:10:23Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "qs@0.0.6"
        ],
        "functions": [],
        "id": "npm:qs:20140806-1",
        "identifiers": {
          "ALTERNATIVE": [
            "SNYK-JS-QS-10020"
          ],
          "CVE": [
            "CVE-2014-10064"
          ],
          "CWE": [
            "CWE-400"
          ],
          "NSP": [
            28
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "js",
        "package": "qs",
        "packageManager": "npm",
        "patches": [
          {
            "comments": [],
            "id": "patch:npm:qs:20140806-1:1",
            "modificationTime": "2019-12-03T11:40:45.744535Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20140806-1/qs_20140806-1_0_1_snyk.patch"
            ],
            "version": "=0.5.6"
          },
          {
            "comments": [],
            "id": "patch:npm:qs:20140806-1:0",
            "modificationTime": "2019-12-03T11:40:45.742148Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20140806-1/qs_20140806-1_0_0_snyk.patch"
            ],
            "version": "<1.0.0 >=0.6.5"
          }
        ],
        "publicationTime": "2014-08-06T06:10:23Z",
        "semver": {
          "vulnerable": [
            "<1.0.0"
          ]
        },
        "severity": "medium",
        "title": "Denial of Service (Event Loop Blocking)",
        "type": "vuln",
        "upgradePath": [
          "qs@1.0.0"
        ],
        "url": "https://snyk.io/vuln/npm:qs:20140806-1",
        "version": "0.0.6"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
        "credit": [
          "Snyk Security Research Team"
        ],
        "cvssScore": 7.5,
        "description": "## Overview\n\n[qs](https://www.npmjs.com/package/qs) is a querystring parser that supports nesting and arrays, with a depth limit.\n\n\nAffected versions of this package are vulnerable to Prototype Override Protection Bypass.\nBy default `qs` protects against attacks that attempt to overwrite an object's existing prototype properties, such as `toString()`, `hasOwnProperty()`,etc.\r\n\r\nFrom [`qs` documentation](https://github.com/ljharb/qs):\r\n> By default parameters that would overwrite properties on the object prototype are ignored, if you wish to keep the data from those fields either use plainObjects as mentioned above, or set allowPrototypes to true which will allow user input to overwrite those properties. WARNING It is generally a bad idea to enable this option as it can cause problems when attempting to use the properties that have been overwritten. Always be careful with this option.\r\n\r\nOverwriting these properties can impact application logic, potentially allowing attackers to work around security controls, modify data, make the application unstable and more.\r\n\r\nIn versions of the package affected by this vulnerability, it is possible to circumvent this protection and overwrite prototype properties and functions by prefixing the name of the parameter with `[` or `]`. e.g. `qs.parse(\"]=toString\")` will return `{toString = true}`, as a result, calling `toString()` on the object will throw an exception.\r\n\r\n**Example:**\r\n```js\r\nqs.parse('toString=foo', { allowPrototypes: false })\r\n// {}\r\n\r\nqs.parse(\"]=toString\", { allowPrototypes: false })\r\n// {toString = true} <== prototype overwritten\r\n```\r\n\r\nFor more information, you can check out our [blog](https://snyk.io/blog/high-severity-vulnerability-qs/).\r\n\r\n## Disclosure Timeline\r\n- February 13th, 2017 - Reported the issue to package owner.\r\n- February 13th, 2017 - Issue acknowledged by package owner.\r\n- February 16th, 2017 - Partial fix released in versions `6.0.3`, `6.1.1`, `6.2.2`, `6.3.1`.\r\n- March 6th, 2017     - Final fix released in versions `6.4.0`,`6.3.2`, `6.2.3`, `6.1.2` and `6.0.4`\n\n## Remediation\n\nUpgrade `qs` to version 6.0.4, 6.1.2, 6.2.3, 6.3.2 or higher.\n\n\n## References\n\n- [GitHub Commit](https://github.com/ljharb/qs/commit/beade029171b8cef9cee0d03ebe577e2dd84976d)\n\n- [Report of an insufficient fix](https://github.com/ljharb/qs/issues/200)\n",
        "disclosureTime": "2017-02-13T00:00:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "qs@0.0.6"
        ],
        "functions": [
          {
            "functionId": {
              "filePath": "lib/parse.js",
              "functionName": "internals.parseObject"
            },
            "version": [
              "<6.0.4"
            ]
          },
          {
            "functionId": {
              "filePath": "lib/parse.js",
              "functionName": "parseObject"
            },
            "version": [
              ">=6.2.0 <6.2.3",
              "6.3.0"
            ]
          },
          {
            "functionId": {
              "filePath": "lib/parse.js",
              "functionName": "parseObjectRecursive"
            },
            "version": [
              ">=6.3.1 <6.3.2"
            ]
          }
        ],
        "id": "npm:qs:20170213",
        "identifiers": {
          "ALTERNATIVE": [
            "SNYK-JS-QS-10407"
          ],
          "CVE": [
            "CVE-2017-1000048"
          ],
          "CWE": [
            "CWE-20"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "js",
        "package": "qs",
        "packageManager": "npm",
        "patches": [
          {
            "comments": [],
            "id": "patch:npm:qs:20170213:7",
            "modificationTime": "2019-12-03T11:40:45.862615Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20170213/603_604.patch"
            ],
            "version": "=6.0.3"
          },
          {
            "comments": [],
            "id": "patch:npm:qs:20170213:6",
            "modificationTime": "2019-12-03T11:40:45.861504Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20170213/602_604.patch"
            ],
            "version": "=6.0.2"
          },
          {
            "comments": [],
            "id": "patch:npm:qs:20170213:5",
            "modificationTime": "2019-12-03T11:40:45.860523Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20170213/611_612.patch"
            ],
            "version": "=6.1.1"
          },
          {
            "comments": [],
            "id": "patch:npm:qs:20170213:4",
            "modificationTime": "2019-12-03T11:40:45.859411Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20170213/610_612.patch"
            ],
            "version": "=6.1.0"
          },
          {
            "comments": [],
            "id": "patch:npm:qs:20170213:3",
            "modificationTime": "2019-12-03T11:40:45.858334Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20170213/622_623.patch"
            ],
            "version": "=6.2.2"
          },
          {
            "comments": [],
            "id": "patch:npm:qs:20170213:2",
            "modificationTime": "2019-12-03T11:40:45.857318Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20170213/621_623.patch"
            ],
            "version": "=6.2.1"
          },
          {
            "comments": [],
            "id": "patch:npm:qs:20170213:1",
            "modificationTime": "2019-12-03T11:40:45.856271Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20170213/631_632.patch"
            ],
            "version": "=6.3.1"
          },
          {
            "comments": [],
            "id": "patch:npm:qs:20170213:0",
            "modificationTime": "2019-12-03T11:40:45.855245Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20170213/630_632.patch"
            ],
            "version": "=6.3.0"
          }
        ],
        "publicationTime": "2017-03-01T10:00:54Z",
        "semver": {
          "vulnerable": [
            "<6.0.4",
            ">=6.1.0 <6.1.2",
            ">=6.2.0 <6.2.3",
            ">=6.3.0 <6.3.2"
          ]
        },
        "severity": "high",
        "title": "Prototype Override Protection Bypass",
        "type": "vuln",
        "upgradePath": [
          "qs@6.0.4"
        ],
        "url": "https://snyk.io/vuln/npm:qs:20170213",
        "version": "0.0.6"
      }
    ]
  },
  "licensesPolicy": null,
  "ok": false,
  "org": {
    "id": "4a18d42f-0706-4ad0-b127-24078731fbed",
    "name": "atokeneduser"
  },
  "packageManager": "npm"
}
POST Test package.json & yarn.lock File
{{baseUrl}}/test/yarn
BODY json

{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/test/yarn");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/test/yarn" {:content-type :json
                                                      :form-params {:encoding ""
                                                                    :files {:additional []
                                                                            :target {:contents ""}}}})
require "http/client"

url = "{{baseUrl}}/test/yarn"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/test/yarn"),
    Content = new StringContent("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/test/yarn");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/test/yarn"

	payload := strings.NewReader("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/test/yarn HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 103

{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/test/yarn")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/test/yarn"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/test/yarn")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/test/yarn")
  .header("content-type", "application/json")
  .body("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  encoding: '',
  files: {
    additional: [],
    target: {
      contents: ''
    }
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/test/yarn');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/yarn',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {additional: [], target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/test/yarn';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"additional":[],"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/test/yarn',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "encoding": "",\n  "files": {\n    "additional": [],\n    "target": {\n      "contents": ""\n    }\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/test/yarn")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/test/yarn',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({encoding: '', files: {additional: [], target: {contents: ''}}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/yarn',
  headers: {'content-type': 'application/json'},
  body: {encoding: '', files: {additional: [], target: {contents: ''}}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/test/yarn');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  encoding: '',
  files: {
    additional: [],
    target: {
      contents: ''
    }
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/yarn',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {additional: [], target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/test/yarn';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"additional":[],"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"encoding": @"",
                              @"files": @{ @"additional": @[  ], @"target": @{ @"contents": @"" } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/test/yarn"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/test/yarn" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/test/yarn",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'encoding' => '',
    'files' => [
        'additional' => [
                
        ],
        'target' => [
                'contents' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/test/yarn', [
  'body' => '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/test/yarn');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'encoding' => '',
  'files' => [
    'additional' => [
        
    ],
    'target' => [
        'contents' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'encoding' => '',
  'files' => [
    'additional' => [
        
    ],
    'target' => [
        'contents' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/test/yarn');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/test/yarn' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/test/yarn' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/test/yarn", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/test/yarn"

payload = {
    "encoding": "",
    "files": {
        "additional": [],
        "target": { "contents": "" }
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/test/yarn"

payload <- "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/test/yarn")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/test/yarn') do |req|
  req.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"additional\": [],\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/test/yarn";

    let payload = json!({
        "encoding": "",
        "files": json!({
            "additional": (),
            "target": json!({"contents": ""})
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/test/yarn \
  --header 'content-type: application/json' \
  --data '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}'
echo '{
  "encoding": "",
  "files": {
    "additional": [],
    "target": {
      "contents": ""
    }
  }
}' |  \
  http POST {{baseUrl}}/test/yarn \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "encoding": "",\n  "files": {\n    "additional": [],\n    "target": {\n      "contents": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/test/yarn
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "encoding": "",
  "files": [
    "additional": [],
    "target": ["contents": ""]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/test/yarn")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "dependencyCount": 2,
  "issues": {
    "licenses": [],
    "vulnerabilities": [
      {
        "CVSSv3": "CVSS:3.0/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N",
        "credit": [
          "Fedot Praslov"
        ],
        "cvssScore": 4.2,
        "description": "## Overview\n[`node-uuid`](https://github.com/kelektiv/node-uuid) is a Simple, fast generation of RFC4122 UUIDS.\n\nAffected versions of this package are vulnerable to Insecure Randomness. It uses the cryptographically insecure `Math.random` which can produce predictable values and should not be used in security-sensitive context.\n\n## Remediation\nUpgrade `node-uuid` to version 1.4.4 or greater.\n\n## References\n- [GitHub Issue](https://github.com/broofa/node-uuid/issues/108)\n- [GitHub Issue 2](https://github.com/broofa/node-uuid/issues/122)\n",
        "disclosureTime": "2016-03-28T21:29:30Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "node-uuid@1.4.0"
        ],
        "functions": [],
        "id": "npm:node-uuid:20160328",
        "identifiers": {
          "ALTERNATIVE": [
            "SNYK-JS-NODEUUID-10089"
          ],
          "CVE": [],
          "CWE": [
            "CWE-330"
          ],
          "NSP": [
            93
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "js",
        "package": "node-uuid",
        "packageManager": "npm",
        "patches": [
          {
            "comments": [],
            "id": "patch:npm:node-uuid:20160328:0",
            "modificationTime": "2019-12-03T11:40:45.815314Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/node-uuid/20160328/node-uuid_20160328_0_0_616ad3800f35cf58089215f420db9654801a5a02.patch"
            ],
            "version": "<=1.4.3 >=1.4.2"
          }
        ],
        "publicationTime": "2016-03-28T22:00:02.566000Z",
        "semver": {
          "vulnerable": [
            "<1.4.4"
          ]
        },
        "severity": "medium",
        "title": "Insecure Randomness",
        "type": "vuln",
        "upgradePath": [
          "node-uuid@1.4.6"
        ],
        "url": "https://snyk.io/vuln/npm:node-uuid:20160328",
        "version": "1.4.0"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
        "credit": [
          "Dustin Shiver"
        ],
        "cvssScore": 7.5,
        "description": "## Overview\n\n[qs](https://www.npmjs.com/package/qs) is a querystring parser that supports nesting and arrays, with a depth limit.\n\n\nAffected versions of this package are vulnerable to Denial of Service (Memory Exhaustion).\nDuring parsing, the `qs` module may create a sparse area (an array where no elements are filled), and grow that array to the necessary size based on the indices used on it. An attacker can specify a high index value in a query string, thus making the server allocate a respectively big array. Truly large values can cause the server to run out of memory and cause it to crash - thus enabling a Denial-of-Service attack.\n\n## Remediation\n\nUpgrade `qs` to version 1.0.0 or higher.\n\n\n## Details\nDenial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.\r\n\r\nUnlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.\r\n\r\nOne popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.\r\n\r\nWhen it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.\r\n\r\nTwo common types of DoS vulnerabilities:\r\n\r\n* High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, [commons-fileupload:commons-fileupload](SNYK-JAVA-COMMONSFILEUPLOAD-30082).\r\n\r\n* Crash - An attacker sending crafted requests that could cause the system to crash. For Example,  [npm `ws` package](npm:ws:20171108)\n\n## References\n\n- [GitHub Commit](https://github.com/tj/node-querystring/pull/114/commits/43a604b7847e56bba49d0ce3e222fe89569354d8)\n\n- [GitHub Issue](https://github.com/visionmedia/node-querystring/issues/104)\n\n- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2014-7191)\n",
        "disclosureTime": "2014-08-06T06:10:22Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "qs@0.0.6"
        ],
        "functions": [
          {
            "functionId": {
              "filePath": "index.js",
              "functionName": "compact"
            },
            "version": [
              "<1.0.0"
            ]
          }
        ],
        "id": "npm:qs:20140806",
        "identifiers": {
          "ALTERNATIVE": [
            "SNYK-JS-QS-10019"
          ],
          "CVE": [
            "CVE-2014-7191"
          ],
          "CWE": [
            "CWE-400"
          ],
          "NSP": [
            29
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "js",
        "package": "qs",
        "packageManager": "npm",
        "patches": [
          {
            "comments": [],
            "id": "patch:npm:qs:20140806:0",
            "modificationTime": "2019-12-03T11:40:45.741062Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20140806/qs_20140806_0_0_43a604b7847e56bba49d0ce3e222fe89569354d8_snyk.patch"
            ],
            "version": "<1.0.0 >=0.6.5"
          },
          {
            "comments": [],
            "id": "patch:npm:qs:20140806:1",
            "modificationTime": "2019-12-03T11:40:45.728930Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20140806/qs_20140806_0_1_snyk_npm.patch"
            ],
            "version": "=0.5.6"
          }
        ],
        "publicationTime": "2014-08-06T06:10:22Z",
        "semver": {
          "vulnerable": [
            "<1.0.0"
          ]
        },
        "severity": "high",
        "title": "Denial of Service (Memory Exhaustion)",
        "type": "vuln",
        "upgradePath": [
          "qs@1.0.0"
        ],
        "url": "https://snyk.io/vuln/npm:qs:20140806",
        "version": "0.0.6"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
        "credit": [
          "Tom Steele"
        ],
        "cvssScore": 6.5,
        "description": "## Overview\n\n[qs](https://www.npmjs.com/package/qs) is a querystring parser that supports nesting and arrays, with a depth limit.\n\n\nAffected versions of this package are vulnerable to Denial of Service (Event Loop Blocking).\nWhen parsing a string representing a deeply nested object, qs will block the event loop for long periods of time. Such a delay may hold up the server's resources, keeping it from processing other requests in the meantime, thus enabling a Denial-of-Service attack.\n\n## Details\nDenial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.\r\n\r\nUnlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.\r\n\r\nOne popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.\r\n\r\nWhen it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.\r\n\r\nTwo common types of DoS vulnerabilities:\r\n\r\n* High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, [commons-fileupload:commons-fileupload](SNYK-JAVA-COMMONSFILEUPLOAD-30082).\r\n\r\n* Crash - An attacker sending crafted requests that could cause the system to crash. For Example,  [npm `ws` package](npm:ws:20171108)\n\n## Remediation\n\nUpgrade `qs` to version 1.0.0 or higher.\n\n\n## References\n\n- [Node Security Advisory](https://nodesecurity.io/advisories/28)\n",
        "disclosureTime": "2014-08-06T06:10:23Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "qs@0.0.6"
        ],
        "functions": [],
        "id": "npm:qs:20140806-1",
        "identifiers": {
          "ALTERNATIVE": [
            "SNYK-JS-QS-10020"
          ],
          "CVE": [
            "CVE-2014-10064"
          ],
          "CWE": [
            "CWE-400"
          ],
          "NSP": [
            28
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "js",
        "package": "qs",
        "packageManager": "npm",
        "patches": [
          {
            "comments": [],
            "id": "patch:npm:qs:20140806-1:1",
            "modificationTime": "2019-12-03T11:40:45.744535Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20140806-1/qs_20140806-1_0_1_snyk.patch"
            ],
            "version": "=0.5.6"
          },
          {
            "comments": [],
            "id": "patch:npm:qs:20140806-1:0",
            "modificationTime": "2019-12-03T11:40:45.742148Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20140806-1/qs_20140806-1_0_0_snyk.patch"
            ],
            "version": "<1.0.0 >=0.6.5"
          }
        ],
        "publicationTime": "2014-08-06T06:10:23Z",
        "semver": {
          "vulnerable": [
            "<1.0.0"
          ]
        },
        "severity": "medium",
        "title": "Denial of Service (Event Loop Blocking)",
        "type": "vuln",
        "upgradePath": [
          "qs@1.0.0"
        ],
        "url": "https://snyk.io/vuln/npm:qs:20140806-1",
        "version": "0.0.6"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
        "credit": [
          "Snyk Security Research Team"
        ],
        "cvssScore": 7.5,
        "description": "## Overview\n\n[qs](https://www.npmjs.com/package/qs) is a querystring parser that supports nesting and arrays, with a depth limit.\n\n\nAffected versions of this package are vulnerable to Prototype Override Protection Bypass.\nBy default `qs` protects against attacks that attempt to overwrite an object's existing prototype properties, such as `toString()`, `hasOwnProperty()`,etc.\r\n\r\nFrom [`qs` documentation](https://github.com/ljharb/qs):\r\n> By default parameters that would overwrite properties on the object prototype are ignored, if you wish to keep the data from those fields either use plainObjects as mentioned above, or set allowPrototypes to true which will allow user input to overwrite those properties. WARNING It is generally a bad idea to enable this option as it can cause problems when attempting to use the properties that have been overwritten. Always be careful with this option.\r\n\r\nOverwriting these properties can impact application logic, potentially allowing attackers to work around security controls, modify data, make the application unstable and more.\r\n\r\nIn versions of the package affected by this vulnerability, it is possible to circumvent this protection and overwrite prototype properties and functions by prefixing the name of the parameter with `[` or `]`. e.g. `qs.parse(\"]=toString\")` will return `{toString = true}`, as a result, calling `toString()` on the object will throw an exception.\r\n\r\n**Example:**\r\n```js\r\nqs.parse('toString=foo', { allowPrototypes: false })\r\n// {}\r\n\r\nqs.parse(\"]=toString\", { allowPrototypes: false })\r\n// {toString = true} <== prototype overwritten\r\n```\r\n\r\nFor more information, you can check out our [blog](https://snyk.io/blog/high-severity-vulnerability-qs/).\r\n\r\n## Disclosure Timeline\r\n- February 13th, 2017 - Reported the issue to package owner.\r\n- February 13th, 2017 - Issue acknowledged by package owner.\r\n- February 16th, 2017 - Partial fix released in versions `6.0.3`, `6.1.1`, `6.2.2`, `6.3.1`.\r\n- March 6th, 2017     - Final fix released in versions `6.4.0`,`6.3.2`, `6.2.3`, `6.1.2` and `6.0.4`\n\n## Remediation\n\nUpgrade `qs` to version 6.0.4, 6.1.2, 6.2.3, 6.3.2 or higher.\n\n\n## References\n\n- [GitHub Commit](https://github.com/ljharb/qs/commit/beade029171b8cef9cee0d03ebe577e2dd84976d)\n\n- [Report of an insufficient fix](https://github.com/ljharb/qs/issues/200)\n",
        "disclosureTime": "2017-02-13T00:00:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "qs@0.0.6"
        ],
        "functions": [
          {
            "functionId": {
              "filePath": "lib/parse.js",
              "functionName": "internals.parseObject"
            },
            "version": [
              "<6.0.4"
            ]
          },
          {
            "functionId": {
              "filePath": "lib/parse.js",
              "functionName": "parseObject"
            },
            "version": [
              ">=6.2.0 <6.2.3",
              "6.3.0"
            ]
          },
          {
            "functionId": {
              "filePath": "lib/parse.js",
              "functionName": "parseObjectRecursive"
            },
            "version": [
              ">=6.3.1 <6.3.2"
            ]
          }
        ],
        "id": "npm:qs:20170213",
        "identifiers": {
          "ALTERNATIVE": [
            "SNYK-JS-QS-10407"
          ],
          "CVE": [
            "CVE-2017-1000048"
          ],
          "CWE": [
            "CWE-20"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "js",
        "package": "qs",
        "packageManager": "npm",
        "patches": [
          {
            "comments": [],
            "id": "patch:npm:qs:20170213:7",
            "modificationTime": "2019-12-03T11:40:45.862615Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20170213/603_604.patch"
            ],
            "version": "=6.0.3"
          },
          {
            "comments": [],
            "id": "patch:npm:qs:20170213:6",
            "modificationTime": "2019-12-03T11:40:45.861504Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20170213/602_604.patch"
            ],
            "version": "=6.0.2"
          },
          {
            "comments": [],
            "id": "patch:npm:qs:20170213:5",
            "modificationTime": "2019-12-03T11:40:45.860523Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20170213/611_612.patch"
            ],
            "version": "=6.1.1"
          },
          {
            "comments": [],
            "id": "patch:npm:qs:20170213:4",
            "modificationTime": "2019-12-03T11:40:45.859411Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20170213/610_612.patch"
            ],
            "version": "=6.1.0"
          },
          {
            "comments": [],
            "id": "patch:npm:qs:20170213:3",
            "modificationTime": "2019-12-03T11:40:45.858334Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20170213/622_623.patch"
            ],
            "version": "=6.2.2"
          },
          {
            "comments": [],
            "id": "patch:npm:qs:20170213:2",
            "modificationTime": "2019-12-03T11:40:45.857318Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20170213/621_623.patch"
            ],
            "version": "=6.2.1"
          },
          {
            "comments": [],
            "id": "patch:npm:qs:20170213:1",
            "modificationTime": "2019-12-03T11:40:45.856271Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20170213/631_632.patch"
            ],
            "version": "=6.3.1"
          },
          {
            "comments": [],
            "id": "patch:npm:qs:20170213:0",
            "modificationTime": "2019-12-03T11:40:45.855245Z",
            "urls": [
              "https://snyk-patches.s3.amazonaws.com/npm/qs/20170213/630_632.patch"
            ],
            "version": "=6.3.0"
          }
        ],
        "publicationTime": "2017-03-01T10:00:54Z",
        "semver": {
          "vulnerable": [
            "<6.0.4",
            ">=6.1.0 <6.1.2",
            ">=6.2.0 <6.2.3",
            ">=6.3.0 <6.3.2"
          ]
        },
        "severity": "high",
        "title": "Prototype Override Protection Bypass",
        "type": "vuln",
        "upgradePath": [
          "qs@6.0.4"
        ],
        "url": "https://snyk.io/vuln/npm:qs:20170213",
        "version": "0.0.6"
      }
    ]
  },
  "licensesPolicy": null,
  "ok": false,
  "org": {
    "id": "689ce7f9-7943-4a71-b704-2ba575f01089",
    "name": "atokeneduser"
  },
  "packageManager": "yarn"
}
POST Test requirements.txt file
{{baseUrl}}/test/pip
BODY json

{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/test/pip");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/test/pip" {:content-type :json
                                                     :form-params {:encoding ""
                                                                   :files {:target {:contents ""}}}})
require "http/client"

url = "{{baseUrl}}/test/pip"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/test/pip"),
    Content = new StringContent("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/test/pip");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/test/pip"

	payload := strings.NewReader("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/test/pip HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 81

{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/test/pip")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/test/pip"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/test/pip")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/test/pip")
  .header("content-type", "application/json")
  .body("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  encoding: '',
  files: {
    target: {
      contents: ''
    }
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/test/pip');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/pip',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/test/pip';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/test/pip',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "encoding": "",\n  "files": {\n    "target": {\n      "contents": ""\n    }\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/test/pip")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/test/pip',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({encoding: '', files: {target: {contents: ''}}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/pip',
  headers: {'content-type': 'application/json'},
  body: {encoding: '', files: {target: {contents: ''}}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/test/pip');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  encoding: '',
  files: {
    target: {
      contents: ''
    }
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/pip',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/test/pip';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"encoding": @"",
                              @"files": @{ @"target": @{ @"contents": @"" } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/test/pip"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/test/pip" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/test/pip",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'encoding' => '',
    'files' => [
        'target' => [
                'contents' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/test/pip', [
  'body' => '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/test/pip');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'encoding' => '',
  'files' => [
    'target' => [
        'contents' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'encoding' => '',
  'files' => [
    'target' => [
        'contents' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/test/pip');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/test/pip' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/test/pip' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/test/pip", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/test/pip"

payload = {
    "encoding": "",
    "files": { "target": { "contents": "" } }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/test/pip"

payload <- "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/test/pip")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/test/pip') do |req|
  req.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/test/pip";

    let payload = json!({
        "encoding": "",
        "files": json!({"target": json!({"contents": ""})})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/test/pip \
  --header 'content-type: application/json' \
  --data '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}'
echo '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}' |  \
  http POST {{baseUrl}}/test/pip \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "encoding": "",\n  "files": {\n    "target": {\n      "contents": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/test/pip
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "encoding": "",
  "files": ["target": ["contents": ""]]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/test/pip")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "dependencyCount": 4,
  "issues": {
    "licenses": [],
    "vulnerabilities": [
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N",
        "credit": [
          "André Cruz"
        ],
        "cvssScore": 4.3,
        "description": "## Overview\r\n[`oauth2`](https://pypi.python.org/pypi/oauth2) is a library for OAuth version 1.9\r\nThe Server.verify_request function in SimpleGeo python-oauth2 does not check the nonce, which allows remote attackers to perform replay attacks via a signed URL.\r\n\r\n## Remediation\r\nUpgrade to version `1.9rc1` or greater.\r\n\r\n## References\r\n- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2013-4346)\r\n- [Bugzilla redhat](https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2013-4346)\r\n- [GitHub Issue](https://github.com/simplegeo/python-oauth2/issues/129)\r\n",
        "disclosureTime": "2013-02-05T12:31:58Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "oauth2@1.5.211"
        ],
        "functions": [],
        "id": "SNYK-PYTHON-OAUTH2-40013",
        "identifiers": {
          "CVE": [
            "CVE-2013-4346"
          ],
          "CWE": [
            "CWE-310"
          ]
        },
        "isPatchable": false,
        "isPinnable": true,
        "isUpgradable": false,
        "language": "python",
        "package": "oauth2",
        "packageManager": "pip",
        "patches": [],
        "publicationTime": "2013-02-05T12:31:58Z",
        "semver": {
          "vulnerable": [
            "[,1.9rc1)"
          ]
        },
        "severity": "medium",
        "title": "Replay Attack",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PYTHON-OAUTH2-40013",
        "version": "1.5.211"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 5.4,
        "description": "## Overview\r\n[`oauth2`](https://pypi.python.org/pypi/oauth2) is a library for OAuth version 1.9\r\n\r\nAffected versions of this package are vulnerable to Insecure Randomness.\r\nThe (1) make_nonce, (2) generate_nonce, and (3) generate_verifier functions in SimpleGeo python-oauth2 uses weak random numbers to generate nonces, which makes it easier for remote attackers to guess the nonce via a brute force attack.\r\n\r\n## Remediation\r\nUpgrade to version `1.9rc1` or greater.\r\n\r\n## References\r\n- [Redhat Bugzilla](https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2013-4347)\r\n- [GitHub Issue](https://github.com/simplegeo/python-oauth2/issues/9)\r\n- [Openwall](http://www.openwall.com/lists/oss-security/2013/09/12/7)\r\n- [GitHub PR](https://github.com/simplegeo/python-oauth2/pull/146)\r\n",
        "disclosureTime": "2014-05-20T14:55:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "oauth2@1.5.211"
        ],
        "functions": [],
        "id": "SNYK-PYTHON-OAUTH2-40014",
        "identifiers": {
          "CVE": [
            "CVE-2013-4347"
          ],
          "CWE": [
            "CWE-310"
          ]
        },
        "isPatchable": false,
        "isPinnable": true,
        "isUpgradable": false,
        "language": "python",
        "package": "oauth2",
        "packageManager": "pip",
        "patches": [],
        "publicationTime": "2017-04-13T12:31:58Z",
        "semver": {
          "vulnerable": [
            "[,1.9rc1)"
          ]
        },
        "severity": "medium",
        "title": "Insecure Randomness",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PYTHON-OAUTH2-40014",
        "version": "1.5.211"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H/RL:O/RC:C",
        "credit": [
          "Maor Shwartz"
        ],
        "cvssScore": 8.8,
        "description": "## Overview\r\n[`supervisor`](https://pypi.python.org/pypi/supervisor/) is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems.\r\n\r\nAffected versions of the package are vulnerable to Arbitrary Command Execution. A vulnerability has been found where an authenticated client can send a malicious XML-RPC request to `supervisord` that will run arbitrary shell commands on the server. The commands will be run as the same user as `supervisord`. Depending on how `supervisord` has been configured, this may be root.\r\n\r\n## Details\r\n* `supervisord` is the server component and is responsible for starting child processes, responding to commands from clients, and other commands.\r\n* `supervisorctl` is the command line component, providing a shell-like interface to the features provided by `supervisord`.\r\n\r\n`supervisord` can be configured to run an HTTP server on a TCP socket and/or a Unix domain socket. This HTTP server is how `supervisorctl` communicates with `supervisord`. If an HTTP server has been enabled, it will always serve both HTML pages and an XML-RPC interface. A vulnerability has been found where an authenticated client can send a malicious XML-RPC request to `supervisord` that will run arbitrary shell commands on the server. The commands will be run as the same user as `supervisord`. Depending on how `supervisord` has been configured, this may be root.\r\nThis vulnerability can only be exploited by an authenticated client or if `supervisord` has been configured to run an HTTP server without authentication. If authentication has not been enabled, `supervisord` will log a message at the critical level every time it starts.\r\n\r\n## PoC by Maor Shwartz\r\n\r\nCreate a config file `supervisord.conf`:\r\n\r\n```conf\r\n[supervisord]\r\nloglevel = trace\r\n\r\n[inet_http_server]\r\nport = 127.0.0.1:9001\r\n\r\n[rpcinterface:supervisor]\r\nsupervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface\r\n```\r\n\r\nStart supervisord in the foreground with that config file:\r\n\r\n```\r\n$ supervisord -n -c supervisord.conf\r\n```\r\n\r\nIn a new terminal:\r\n\r\n```py\r\n$ python2\r\n>>> from xmlrpclib import ServerProxy\r\n>>> server = ServerProxy('http://127.0.0.1:9001/RPC2')\r\n>>> server.supervisor.supervisord.options.execve('/bin/sh', [], {})\r\n  ```\r\n\r\nIf the `supervisord` version is vulnerable, the `execve` will be executed and the `supervisord` process will be replaced with /bin/sh (or any other command given). If the `supervisord` version is not vulnerable, it will return an `UNKNOWN_METHOD` fault.\r\n\r\n\r\n## Remediation\r\nUpgrade `supervisor` to version 3.3.3 or higher.\r\n\r\n## References\r\n- [Github Issue](https://github.com/Supervisor/supervisor/issues/964)\r\n- [Github Commit 3.0.1](https://github.com/Supervisor/supervisor/commit/83060f3383ebd26add094398174f1de34cf7b7f0)\r\n- [Github Commit 3.1.4](https://github.com/Supervisor/supervisor/commit/dbe0f55871a122eac75760aef511efc3a8830b88)\r\n- [Github Commit 3.2.4](https://github.com/Supervisor/supervisor/commit/aac3c21893cab7361f5c35c8e20341b298f6462e)\r\n- [Github Commit 3.3.3](https://github.com/Supervisor/supervisor/commit/058f46141e346b18dee0497ba11203cb81ecb19e)",
        "disclosureTime": "2017-07-18T21:00:00Z",
        "exploitMaturity": "mature",
        "from": [
          "supervisor@3.1.0"
        ],
        "functions": [],
        "id": "SNYK-PYTHON-SUPERVISOR-40610",
        "identifiers": {
          "CVE": [
            "CVE-2017-11610"
          ],
          "CWE": [
            "CWE-94"
          ]
        },
        "isPatchable": false,
        "isPinnable": true,
        "isUpgradable": false,
        "language": "python",
        "package": "supervisor",
        "packageManager": "pip",
        "patches": [],
        "publicationTime": "2017-08-08T06:59:14Z",
        "semver": {
          "vulnerable": [
            "[3.0a1,3.0.1)",
            "[3.1.0,3.1.4)",
            "[3.2.0,3.2.4)",
            "[3.3.0,3.3.3)"
          ]
        },
        "severity": "high",
        "title": "Arbitrary Command Execution",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-PYTHON-SUPERVISOR-40610",
        "version": "3.1.0"
      }
    ]
  },
  "licensesPolicy": null,
  "ok": false,
  "org": {
    "id": "4a18d42f-0706-4ad0-b127-24078731fbed",
    "name": "atokeneduser"
  },
  "packageManager": "pip"
}
POST Test sbt file
{{baseUrl}}/test/sbt
BODY json

{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/test/sbt");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/test/sbt" {:content-type :json
                                                     :form-params {:encoding ""
                                                                   :files {:target {:contents ""}}}})
require "http/client"

url = "{{baseUrl}}/test/sbt"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/test/sbt"),
    Content = new StringContent("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/test/sbt");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/test/sbt"

	payload := strings.NewReader("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/test/sbt HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 81

{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/test/sbt")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/test/sbt"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/test/sbt")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/test/sbt")
  .header("content-type", "application/json")
  .body("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  encoding: '',
  files: {
    target: {
      contents: ''
    }
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/test/sbt');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/sbt',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/test/sbt';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/test/sbt',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "encoding": "",\n  "files": {\n    "target": {\n      "contents": ""\n    }\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/test/sbt")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/test/sbt',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({encoding: '', files: {target: {contents: ''}}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/sbt',
  headers: {'content-type': 'application/json'},
  body: {encoding: '', files: {target: {contents: ''}}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/test/sbt');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  encoding: '',
  files: {
    target: {
      contents: ''
    }
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/sbt',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/test/sbt';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"encoding": @"",
                              @"files": @{ @"target": @{ @"contents": @"" } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/test/sbt"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/test/sbt" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/test/sbt",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'encoding' => '',
    'files' => [
        'target' => [
                'contents' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/test/sbt', [
  'body' => '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/test/sbt');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'encoding' => '',
  'files' => [
    'target' => [
        'contents' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'encoding' => '',
  'files' => [
    'target' => [
        'contents' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/test/sbt');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/test/sbt' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/test/sbt' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/test/sbt", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/test/sbt"

payload = {
    "encoding": "",
    "files": { "target": { "contents": "" } }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/test/sbt"

payload <- "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/test/sbt")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/test/sbt') do |req|
  req.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/test/sbt";

    let payload = json!({
        "encoding": "",
        "files": json!({"target": json!({"contents": ""})})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/test/sbt \
  --header 'content-type: application/json' \
  --data '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}'
echo '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}' |  \
  http POST {{baseUrl}}/test/sbt \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "encoding": "",\n  "files": {\n    "target": {\n      "contents": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/test/sbt
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "encoding": "",
  "files": ["target": ["contents": ""]]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/test/sbt")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "dependencyCount": 44,
  "issues": {
    "licenses": [
      {
        "from": [
          "net.databinder.dispatch:dispatch-core_2.11@0.11.2"
        ],
        "id": "snyk:lic:maven:net.databinder.dispatch:dispatch-core_2.11:LGPL-3.0",
        "language": "java",
        "package": "net.databinder.dispatch:dispatch-core_2.11",
        "packageManager": "maven",
        "semver": {
          "vulnerable": [
            "[0,)"
          ]
        },
        "severity": "medium",
        "title": "LGPL-3.0 license",
        "type": "license",
        "url": "https://snyk.io/vuln/snyk:lic:maven:net.databinder.dispatch:dispatch-core_2.11:LGPL-3.0",
        "version": "0.11.2"
      },
      {
        "from": [
          "net.ruippeixotog:scala-scraper_2.11@1.0.0",
          "net.sourceforge.htmlunit:htmlunit@2.20",
          "net.sourceforge.cssparser:cssparser@0.9.18"
        ],
        "id": "snyk:lic:maven:net.sourceforge.cssparser:cssparser:LGPL-2.0",
        "language": "java",
        "package": "net.sourceforge.cssparser:cssparser",
        "packageManager": "maven",
        "semver": {
          "vulnerable": [
            "[0.9.6, 0.9.19)"
          ]
        },
        "severity": "medium",
        "title": "LGPL-2.0 license",
        "type": "license",
        "url": "https://snyk.io/vuln/snyk:lic:maven:net.sourceforge.cssparser:cssparser:LGPL-2.0",
        "version": "0.9.18"
      },
      {
        "from": [
          "net.ruippeixotog:scala-scraper_2.11@1.0.0",
          "net.sourceforge.htmlunit:htmlunit@2.20",
          "net.sourceforge.htmlunit:htmlunit-core-js@2.17"
        ],
        "id": "snyk:lic:maven:net.sourceforge.htmlunit:htmlunit-core-js:MPL-2.0",
        "language": "java",
        "package": "net.sourceforge.htmlunit:htmlunit-core-js",
        "packageManager": "maven",
        "semver": {
          "vulnerable": [
            "[2.11,)"
          ]
        },
        "severity": "medium",
        "title": "MPL-2.0 license",
        "type": "license",
        "url": "https://snyk.io/vuln/snyk:lic:maven:net.sourceforge.htmlunit:htmlunit-core-js:MPL-2.0",
        "version": "2.17"
      }
    ],
    "vulnerabilities": [
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 4.3,
        "description": "## Overview\n[`com.ning:async-http-client`](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22async-http-client%22)\nAsync Http Client (aka AHC or async-http-client) before 1.9.0 skips X.509 certificate verification unless both a keyStore location and a trustStore location are explicitly set, which allows man-in-the-middle attackers to spoof HTTPS servers by presenting an arbitrary certificate during use of a typical AHC configuration, as demonstrated by a configuration that does not send client certificates.\n\n## References\n- [NVD](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-7397)\n- [OSS Security](http://openwall.com/lists/oss-security/2014/08/26/1)\n- [GitHub Issue](https://github.com/AsyncHttpClient/async-http-client/issues/352)\n- [GitHub Commit](https://github.com/AsyncHttpClient/async-http-client/commit/dfacb8e05d0822c7b2024c452554bd8e1d6221d8)\n",
        "disclosureTime": "2015-06-24T16:59:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "net.databinder.dispatch:dispatch-core_2.11@0.11.2",
          "com.ning:async-http-client@1.8.10"
        ],
        "functions": [],
        "id": "SNYK-JAVA-COMNING-30317",
        "identifiers": {
          "CVE": [
            "CVE-2013-7397"
          ],
          "CWE": [
            "CWE-345"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "com.ning:async-http-client",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2017-03-28T08:29:28.375000Z",
        "semver": {
          "vulnerable": [
            "[,1.9.0)"
          ]
        },
        "severity": "medium",
        "title": "Insufficient Verification of Data Authenticity",
        "type": "vuln",
        "upgradePath": [
          "net.databinder.dispatch:dispatch-core_2.11@0.11.3",
          "com.ning:async-http-client@1.9.11"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-COMNING-30317",
        "version": "1.8.10"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 4.3,
        "description": "## Overview\n[`com.ning:async-http-client`](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22async-http-client%22)\nmain/java/com/ning/http/client/AsyncHttpClientConfig.java in Async Http Client (aka AHC or async-http-client) before 1.9.0 does not require a hostname match during verification of X.509 certificates, which allows man-in-the-middle attackers to spoof HTTPS servers via an arbitrary valid certificate.\n\n## References\n- [NVD](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-7398)\n- [GitHub Commit](https://github.com/AsyncHttpClient/async-http-client/issues/197)\n- [GitHub Commit](https://github.com/AsyncHttpClient/async-http-client/commit/dfacb8e05d0822c7b2024c452554bd8e1d6221d8)\n- [OSS Security](http://openwall.com/lists/oss-security/2014/08/26/1)\n",
        "disclosureTime": "2015-06-24T16:59:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "net.databinder.dispatch:dispatch-core_2.11@0.11.2",
          "com.ning:async-http-client@1.8.10"
        ],
        "functions": [],
        "id": "SNYK-JAVA-COMNING-30318",
        "identifiers": {
          "CVE": [
            "CVE-2013-7398"
          ],
          "CWE": [
            "CWE-345"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "com.ning:async-http-client",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2017-03-28T08:29:28.445000Z",
        "semver": {
          "vulnerable": [
            "[,1.9.0)"
          ]
        },
        "severity": "medium",
        "title": "Insufficient Verification of Data Authenticity",
        "type": "vuln",
        "upgradePath": [
          "net.databinder.dispatch:dispatch-core_2.11@0.11.3",
          "com.ning:async-http-client@1.9.11"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-COMNING-30318",
        "version": "1.8.10"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
        "credit": [
          "Roman Shafigullin",
          "Luca Carettoni",
          "Mukul Khullar"
        ],
        "cvssScore": 7.5,
        "description": "## Overview\n\n[io.netty:netty](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22netty%22) is a NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients.\n\n\nAffected versions of this package are vulnerable to Information Disclosure.\nIt does not validate cookie name and value characters, allowing attackers to potentially bypass the `httpOnly` flag on sensitive cookies.\n\n## Remediation\n\nUpgrade `io.netty:netty` to version 3.9.8.Final, 3.10.3.Final or higher.\n\n\n## References\n\n- [GitHub Commit 3.10.3](https://github.com/netty/netty/commit/2caa38a2795fe1f1ae6ceda4d69e826ed7c55e55)\n\n- [GitHub Commit 3.9.8](https://github.com/netty/netty/commit/31815598a2af37f0b71ea94eada70d6659c23752)\n\n- [GitHub Commit 4.0.8](https://github.com/netty/netty/pull/3748/commits/4ac519f534493bb0ca7a77e1c779138a54faa7b9)\n\n- [GitHub PR 3.9.8 and 3.10.3](https://github.com/netty/netty/pull/3754)\n\n- [GitHub PR 4.0.28](https://github.com/netty/netty/pull/3748)\n\n- [Linkedin Security Blog](https://engineering.linkedin.com/security/look-netty_s-recent-security-update-cve--2015--2156)\n\n- [Release Notes 3.9.8 and 3.10.3](http://netty.io/news/2015/05/08/3-9-8-Final-and-3.html)\n\n- [Release Notes 4.0.28](http://netty.io/news/2015/05/07/4-0-28-Final.html)\n",
        "disclosureTime": "2015-04-08T21:44:31Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "net.databinder.dispatch:dispatch-core_2.11@0.11.2",
          "com.ning:async-http-client@1.8.10",
          "io.netty:netty@3.9.2.Final"
        ],
        "functions": [
          {
            "functionId": {
              "className": "org.jboss.netty.handler.codec.http.CookieEncoder",
              "functionName": "encode"
            },
            "version": [
              "[3.10.0,3.10.2)",
              "[3.3.0,3.9.7)"
            ]
          },
          {
            "functionId": {
              "className": "org.jboss.netty.handler.codec.http.cookie.ServerCookieEncoder",
              "functionName": "encode"
            },
            "version": [
              "[3.9.7,3.9.8.Final)",
              "[3.10.2,3.10.3.Final)"
            ]
          }
        ],
        "id": "SNYK-JAVA-IONETTY-30430",
        "identifiers": {
          "CVE": [
            "CVE-2015-2156"
          ],
          "CWE": [
            "CWE-200"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "io.netty:netty",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2015-04-08T21:44:31Z",
        "semver": {
          "vulnerable": [
            "[3.3.0.Final,3.9.8.Final)",
            "[3.10.0.Final,3.10.3.Final)"
          ]
        },
        "severity": "high",
        "title": "Information Disclosure",
        "type": "vuln",
        "upgradePath": [
          "net.databinder.dispatch:dispatch-core_2.11@0.11.4",
          "com.ning:async-http-client@1.9.40",
          "io.netty:netty@3.10.6.Final"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-IONETTY-30430",
        "version": "3.9.2.Final"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N/E:U/RL:O/RC:R",
        "credit": [
          "axeBig"
        ],
        "cvssScore": 6.5,
        "description": "## Overview\n\n[io.netty:netty](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22netty%22) is a NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients.\n\n\nAffected versions of this package are vulnerable to HTTP Request Smuggling.\nNetty mishandles whitespace before the colon in HTTP headers such as a `Transfer-Encoding : chunked` line. This can lead to HTTP request smuggling where an attacker can bypass security controls, gain unauthorized access to sensitive data, and directly compromise other application users.\n\n## Remediation\n\nThere is no fixed version for `io.netty:netty`.\n\n\n## References\n\n- [GitHub Fix Commit](https://github.com/netty/netty/commit/017a9658c97ff1a1355c31a6a1f8bd1ea6f21c8d)\n\n- [GitHub Issue](https://github.com/netty/netty/issues/9571)\n\n- [GitHub PR](https://github.com/netty/netty/pull/9585)\n",
        "disclosureTime": "2019-09-26T17:08:57Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "net.databinder.dispatch:dispatch-core_2.11@0.11.2",
          "com.ning:async-http-client@1.8.10",
          "io.netty:netty@3.9.2.Final"
        ],
        "functions": [],
        "id": "SNYK-JAVA-IONETTY-473694",
        "identifiers": {
          "CVE": [
            "CVE-2019-16869"
          ],
          "CWE": [
            "CWE-113"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "java",
        "package": "io.netty:netty",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2019-09-26T17:08:57Z",
        "semver": {
          "vulnerable": [
            "[0,]"
          ]
        },
        "severity": "medium",
        "title": "HTTP Request Smuggling",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-JAVA-IONETTY-473694",
        "version": "3.9.2.Final"
      },
      {
        "CVSSv3": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:U/RL:O/RC:R",
        "credit": [
          "ICHIHARA Ryohei"
        ],
        "cvssScore": 5.6,
        "description": "## Overview\n\n[net.sourceforge.htmlunit:htmlunit](http://htmlunit.sourceforge.net) is a GUI-Less browser for Java programs\n\n\nAffected versions of this package are vulnerable to Remote Code Execution (RCE).\nIt initializes Rhino engine improperly, hence a malicious JavaScript code can execute arbitrary Java code on the application.\n\n## Remediation\n\nUpgrade `net.sourceforge.htmlunit:htmlunit` to version 2.37.0 or higher.\n\n\n## References\n\n- [GitHub Commit](https://github.com/HtmlUnit/htmlunit/commit/bc1f58d483cc8854a9c4c1739abd5e04a2eb0367)\n\n- [JvNDB](https://jvn.jp/en/jp/JVN34535327/)\n",
        "disclosureTime": "2020-02-10T09:35:13Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "net.ruippeixotog:scala-scraper_2.11@1.0.0",
          "net.sourceforge.htmlunit:htmlunit@2.20"
        ],
        "functions": [],
        "id": "SNYK-JAVA-NETSOURCEFORGEHTMLUNIT-548471",
        "identifiers": {
          "CVE": [
            "CVE-2020-5529"
          ],
          "CWE": [
            "CWE-284",
            "CWE-94"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "java",
        "package": "net.sourceforge.htmlunit:htmlunit",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2020-02-11T09:35:13Z",
        "semver": {
          "vulnerable": [
            "[,2.37.0)"
          ]
        },
        "severity": "medium",
        "title": "Remote Code Execution (RCE)",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-JAVA-NETSOURCEFORGEHTMLUNIT-548471",
        "version": "2.20"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N",
        "credit": [
          "James Kettle"
        ],
        "cvssScore": 5.3,
        "description": "## Overview\n\n[org.apache.httpcomponents:httpclient](http://hc.apache.org/) is a HttpClient component of the Apache HttpComponents project.\n\n\nAffected versions of this package are vulnerable to Directory Traversal.\nString input by user is not validated for the presence of leading character `/` and is passed to the constructor as `path` information, resulting in a Directory Traversal vulnerability.\n\n## Details\nA Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with \"dot-dot-slash (../)\" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.\r\n\r\nDirectory Traversal vulnerabilities can be generally divided into two types:\r\n\r\n- **Information Disclosure**: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.\r\n\r\n`st` is a module for serving static files on web pages, and contains a [vulnerability of this type](https://snyk.io/vuln/npm:st:20140206). In our example, we will serve files from the `public` route.\r\n\r\nIf an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.\r\n\r\n```\r\ncurl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa\r\n```\r\n**Note** `%2e` is the URL encoded version of `.` (dot).\r\n\r\n- **Writing arbitrary files**: Allows the attacker to create or replace existing files. This type of vulnerability is also known as `Zip-Slip`. \r\n\r\nOne way to achieve this is by using a malicious `zip` archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.\r\n\r\nThe following is an example of a `zip` archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in `/root/.ssh/` overwriting the `authorized_keys` file:\r\n\r\n```\r\n2018-04-15 22:04:29 .....           19           19  good.txt\r\n2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys\r\n```\n\n\n## Remediation\n\nUpgrade `org.apache.httpcomponents:httpclient` to version 4.5.3 or higher.\n\n\n## References\n\n- [Github Commit](https://github.com/apache/httpcomponents-client/commit/0554271750599756d4946c0d7ba43d04b1a7b220)\n\n- [Jira Issue](https://issues.apache.org/jira/browse/HTTPCLIENT-1803)\n\n- [Researcher blog post](http://blog.portswigger.net/2017/07/cracking-lens-targeting-https-hidden.html)\n",
        "disclosureTime": "2017-01-17T00:00:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "net.ruippeixotog:scala-scraper_2.11@1.0.0",
          "net.sourceforge.htmlunit:htmlunit@2.20",
          "org.apache.httpcomponents:httpclient@4.5.2"
        ],
        "functions": [
          {
            "functionId": {
              "className": "org.apache.http.client.utils.URIUtils",
              "functionName": "normalizePath"
            },
            "version": [
              "[4.1,4.1.3]"
            ]
          },
          {
            "functionId": {
              "className": "org.apache.http.client.utils.URIBuilder",
              "functionName": "normalizePath"
            },
            "version": [
              "[4.2.1 ,4.5.2)"
            ]
          }
        ],
        "id": "SNYK-JAVA-ORGAPACHEHTTPCOMPONENTS-31517",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-23"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "org.apache.httpcomponents:httpclient",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2017-09-20T00:00:00Z",
        "semver": {
          "vulnerable": [
            "[,4.5.3)"
          ]
        },
        "severity": "medium",
        "title": "Directory Traversal",
        "type": "vuln",
        "upgradePath": [
          "net.ruippeixotog:scala-scraper_2.11@1.2.1",
          "net.sourceforge.htmlunit:htmlunit@2.26"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEHTTPCOMPONENTS-31517",
        "version": "4.5.2"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N",
        "credit": [
          "James Kettle"
        ],
        "cvssScore": 5.3,
        "description": "## Overview\n\n[org.apache.httpcomponents:httpclient](http://hc.apache.org/) is a HttpClient component of the Apache HttpComponents project.\n\n\nAffected versions of this package are vulnerable to Directory Traversal.\nString input by user is not validated for the presence of leading character `/` and is passed to the constructor as `path` information, resulting in a Directory Traversal vulnerability.\n\n## Details\nA Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with \"dot-dot-slash (../)\" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.\r\n\r\nDirectory Traversal vulnerabilities can be generally divided into two types:\r\n\r\n- **Information Disclosure**: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.\r\n\r\n`st` is a module for serving static files on web pages, and contains a [vulnerability of this type](https://snyk.io/vuln/npm:st:20140206). In our example, we will serve files from the `public` route.\r\n\r\nIf an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.\r\n\r\n```\r\ncurl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa\r\n```\r\n**Note** `%2e` is the URL encoded version of `.` (dot).\r\n\r\n- **Writing arbitrary files**: Allows the attacker to create or replace existing files. This type of vulnerability is also known as `Zip-Slip`. \r\n\r\nOne way to achieve this is by using a malicious `zip` archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.\r\n\r\nThe following is an example of a `zip` archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in `/root/.ssh/` overwriting the `authorized_keys` file:\r\n\r\n```\r\n2018-04-15 22:04:29 .....           19           19  good.txt\r\n2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys\r\n```\n\n\n## Remediation\n\nUpgrade `org.apache.httpcomponents:httpclient` to version 4.5.3 or higher.\n\n\n## References\n\n- [Github Commit](https://github.com/apache/httpcomponents-client/commit/0554271750599756d4946c0d7ba43d04b1a7b220)\n\n- [Jira Issue](https://issues.apache.org/jira/browse/HTTPCLIENT-1803)\n\n- [Researcher blog post](http://blog.portswigger.net/2017/07/cracking-lens-targeting-https-hidden.html)\n",
        "disclosureTime": "2017-01-17T00:00:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "net.ruippeixotog:scala-scraper_2.11@1.0.0",
          "net.sourceforge.htmlunit:htmlunit@2.20",
          "org.apache.httpcomponents:httpmime@4.5.2",
          "org.apache.httpcomponents:httpclient@4.5.2"
        ],
        "functions": [
          {
            "functionId": {
              "className": "org.apache.http.client.utils.URIUtils",
              "functionName": "normalizePath"
            },
            "version": [
              "[4.1,4.1.3]"
            ]
          },
          {
            "functionId": {
              "className": "org.apache.http.client.utils.URIBuilder",
              "functionName": "normalizePath"
            },
            "version": [
              "[4.2.1 ,4.5.2)"
            ]
          }
        ],
        "id": "SNYK-JAVA-ORGAPACHEHTTPCOMPONENTS-31517",
        "identifiers": {
          "CVE": [],
          "CWE": [
            "CWE-23"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "org.apache.httpcomponents:httpclient",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2017-09-20T00:00:00Z",
        "semver": {
          "vulnerable": [
            "[,4.5.3)"
          ]
        },
        "severity": "medium",
        "title": "Directory Traversal",
        "type": "vuln",
        "upgradePath": [
          "net.ruippeixotog:scala-scraper_2.11@1.2.1",
          "net.sourceforge.htmlunit:htmlunit@2.26",
          "org.apache.httpcomponents:httpmime@4.5.3",
          "org.apache.httpcomponents:httpclient@4.5.3"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEHTTPCOMPONENTS-31517",
        "version": "4.5.2"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N/E:F",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 4.7,
        "description": "## Overview\n\n[org.eclipse.jetty:jetty-util](https://www.eclipse.org/jetty) is a Web Container & Clients - supports HTTP/2, HTTP/1.1, HTTP/1.0, websocket, servlets, and more.\n\n\nAffected versions of this package are vulnerable to Cross-site Scripting (XSS)\nwhen a remote client uses a specially formatted URL against the `DefaultServlet` or `ResourceHandler` that is configured for showing a listing of directory contents.\n\n## Details\nA cross-site scripting attack occurs when the attacker tricks a legitimate web-based application or site to accept a request as originating from a trusted source.\r\n\r\nThis is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML)  in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.\r\n\r\nֿInjecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.\r\n\r\nEscaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, `<` can be coded as  `<`; and `>` can be coded as `>`; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses `<` and `>` as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.\r\n \r\nThe most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware. \r\n\r\n### Types of attacks\r\nThere are a few methods by which XSS can be manipulated:\r\n\r\n|Type|Origin|Description|\r\n|--|--|--|\r\n|**Stored**|Server|The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.|\r\n|**Reflected**|Server|The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.| \r\n|**DOM-based**|Client|The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.|\r\n|**Mutated**| |The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.|\r\n\r\n### Affected environments\r\nThe following environments are susceptible to an XSS attack:\r\n\r\n* Web servers\r\n* Application servers\r\n* Web application environments\r\n\r\n### How to prevent\r\nThis section describes the top best practices designed to specifically protect your code: \r\n\r\n* Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches. \r\n* Convert special characters such as `?`, `&`, `/`, `<`, `>` and spaces to their respective HTML or URL encoded equivalents. \r\n* Give users the option to disable client-side scripts.\r\n* Redirect invalid requests.\r\n* Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.\r\n* Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.\r\n* Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.\n\n## Remediation\n\nUpgrade `org.eclipse.jetty:jetty-util` to version 9.2.27.v20190403, 9.3.26.v20190403, 9.4.16.v20190411 or higher.\n\n\n## References\n\n- [Eclipse Report](https://bugs.eclipse.org/bugs/show_bug.cgi?id=546121)\n\n- [GitHub Commit](https://github.com/eclipse/jetty.project/commit/ca77bd384a2970cabbbdab25cf6251c6fb76cd21)\n",
        "disclosureTime": "2019-04-22T21:08:57Z",
        "exploitMaturity": "mature",
        "from": [
          "net.ruippeixotog:scala-scraper_2.11@1.0.0",
          "net.sourceforge.htmlunit:htmlunit@2.20",
          "org.eclipse.jetty.websocket:websocket-client@9.2.15.v20160210",
          "org.eclipse.jetty:jetty-util@9.2.15.v20160210"
        ],
        "functions": [],
        "id": "SNYK-JAVA-ORGECLIPSEJETTY-174479",
        "identifiers": {
          "CVE": [
            "CVE-2019-10241"
          ],
          "CWE": [
            "CWE-79"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "org.eclipse.jetty:jetty-util",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2019-04-22T21:08:57Z",
        "semver": {
          "vulnerable": [
            "[9.2.0.M0,9.2.27.v20190403)",
            "[9.3.0.M0, 9.3.26.v20190403)",
            "[9.4.15.v20190215, 9.4.16.v20190411)"
          ]
        },
        "severity": "medium",
        "title": "Cross-site Scripting (XSS)",
        "type": "vuln",
        "upgradePath": [
          "net.ruippeixotog:scala-scraper_2.11@1.2.1",
          "net.sourceforge.htmlunit:htmlunit@2.26",
          "org.eclipse.jetty.websocket:websocket-client@9.4.3.v20170317",
          "org.eclipse.jetty:jetty-util@9.4.3.v20170317"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-ORGECLIPSEJETTY-174479",
        "version": "9.2.15.v20160210"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N/E:F",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 4.7,
        "description": "## Overview\n\n[org.eclipse.jetty:jetty-util](https://www.eclipse.org/jetty) is a Web Container & Clients - supports HTTP/2, HTTP/1.1, HTTP/1.0, websocket, servlets, and more.\n\n\nAffected versions of this package are vulnerable to Cross-site Scripting (XSS)\nwhen a remote client uses a specially formatted URL against the `DefaultServlet` or `ResourceHandler` that is configured for showing a listing of directory contents.\n\n## Details\nA cross-site scripting attack occurs when the attacker tricks a legitimate web-based application or site to accept a request as originating from a trusted source.\r\n\r\nThis is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML)  in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.\r\n\r\nֿInjecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.\r\n\r\nEscaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, `<` can be coded as  `<`; and `>` can be coded as `>`; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses `<` and `>` as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.\r\n \r\nThe most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware. \r\n\r\n### Types of attacks\r\nThere are a few methods by which XSS can be manipulated:\r\n\r\n|Type|Origin|Description|\r\n|--|--|--|\r\n|**Stored**|Server|The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.|\r\n|**Reflected**|Server|The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.| \r\n|**DOM-based**|Client|The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.|\r\n|**Mutated**| |The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.|\r\n\r\n### Affected environments\r\nThe following environments are susceptible to an XSS attack:\r\n\r\n* Web servers\r\n* Application servers\r\n* Web application environments\r\n\r\n### How to prevent\r\nThis section describes the top best practices designed to specifically protect your code: \r\n\r\n* Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches. \r\n* Convert special characters such as `?`, `&`, `/`, `<`, `>` and spaces to their respective HTML or URL encoded equivalents. \r\n* Give users the option to disable client-side scripts.\r\n* Redirect invalid requests.\r\n* Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.\r\n* Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.\r\n* Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.\n\n## Remediation\n\nUpgrade `org.eclipse.jetty:jetty-util` to version 9.2.27.v20190403, 9.3.26.v20190403, 9.4.16.v20190411 or higher.\n\n\n## References\n\n- [Eclipse Report](https://bugs.eclipse.org/bugs/show_bug.cgi?id=546121)\n\n- [GitHub Commit](https://github.com/eclipse/jetty.project/commit/ca77bd384a2970cabbbdab25cf6251c6fb76cd21)\n",
        "disclosureTime": "2019-04-22T21:08:57Z",
        "exploitMaturity": "mature",
        "from": [
          "net.ruippeixotog:scala-scraper_2.11@1.0.0",
          "net.sourceforge.htmlunit:htmlunit@2.20",
          "org.eclipse.jetty.websocket:websocket-client@9.2.15.v20160210",
          "org.eclipse.jetty:jetty-io@9.2.15.v20160210",
          "org.eclipse.jetty:jetty-util@9.2.15.v20160210"
        ],
        "functions": [],
        "id": "SNYK-JAVA-ORGECLIPSEJETTY-174479",
        "identifiers": {
          "CVE": [
            "CVE-2019-10241"
          ],
          "CWE": [
            "CWE-79"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "org.eclipse.jetty:jetty-util",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2019-04-22T21:08:57Z",
        "semver": {
          "vulnerable": [
            "[9.2.0.M0,9.2.27.v20190403)",
            "[9.3.0.M0, 9.3.26.v20190403)",
            "[9.4.15.v20190215, 9.4.16.v20190411)"
          ]
        },
        "severity": "medium",
        "title": "Cross-site Scripting (XSS)",
        "type": "vuln",
        "upgradePath": [
          "net.ruippeixotog:scala-scraper_2.11@1.2.1",
          "net.sourceforge.htmlunit:htmlunit@2.26",
          "org.eclipse.jetty.websocket:websocket-client@9.4.3.v20170317",
          "org.eclipse.jetty:jetty-io@9.4.3.v20170317",
          "org.eclipse.jetty:jetty-util@9.4.3.v20170317"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-ORGECLIPSEJETTY-174479",
        "version": "9.2.15.v20160210"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N/E:F",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 4.7,
        "description": "## Overview\n\n[org.eclipse.jetty:jetty-util](https://www.eclipse.org/jetty) is a Web Container & Clients - supports HTTP/2, HTTP/1.1, HTTP/1.0, websocket, servlets, and more.\n\n\nAffected versions of this package are vulnerable to Cross-site Scripting (XSS)\nwhen a remote client uses a specially formatted URL against the `DefaultServlet` or `ResourceHandler` that is configured for showing a listing of directory contents.\n\n## Details\nA cross-site scripting attack occurs when the attacker tricks a legitimate web-based application or site to accept a request as originating from a trusted source.\r\n\r\nThis is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML)  in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.\r\n\r\nֿInjecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.\r\n\r\nEscaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, `<` can be coded as  `<`; and `>` can be coded as `>`; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses `<` and `>` as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.\r\n \r\nThe most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware. \r\n\r\n### Types of attacks\r\nThere are a few methods by which XSS can be manipulated:\r\n\r\n|Type|Origin|Description|\r\n|--|--|--|\r\n|**Stored**|Server|The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.|\r\n|**Reflected**|Server|The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.| \r\n|**DOM-based**|Client|The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.|\r\n|**Mutated**| |The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.|\r\n\r\n### Affected environments\r\nThe following environments are susceptible to an XSS attack:\r\n\r\n* Web servers\r\n* Application servers\r\n* Web application environments\r\n\r\n### How to prevent\r\nThis section describes the top best practices designed to specifically protect your code: \r\n\r\n* Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches. \r\n* Convert special characters such as `?`, `&`, `/`, `<`, `>` and spaces to their respective HTML or URL encoded equivalents. \r\n* Give users the option to disable client-side scripts.\r\n* Redirect invalid requests.\r\n* Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.\r\n* Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.\r\n* Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.\n\n## Remediation\n\nUpgrade `org.eclipse.jetty:jetty-util` to version 9.2.27.v20190403, 9.3.26.v20190403, 9.4.16.v20190411 or higher.\n\n\n## References\n\n- [Eclipse Report](https://bugs.eclipse.org/bugs/show_bug.cgi?id=546121)\n\n- [GitHub Commit](https://github.com/eclipse/jetty.project/commit/ca77bd384a2970cabbbdab25cf6251c6fb76cd21)\n",
        "disclosureTime": "2019-04-22T21:08:57Z",
        "exploitMaturity": "mature",
        "from": [
          "net.ruippeixotog:scala-scraper_2.11@1.0.0",
          "net.sourceforge.htmlunit:htmlunit@2.20",
          "org.eclipse.jetty.websocket:websocket-client@9.2.15.v20160210",
          "org.eclipse.jetty.websocket:websocket-common@9.2.15.v20160210",
          "org.eclipse.jetty:jetty-util@9.2.15.v20160210"
        ],
        "functions": [],
        "id": "SNYK-JAVA-ORGECLIPSEJETTY-174479",
        "identifiers": {
          "CVE": [
            "CVE-2019-10241"
          ],
          "CWE": [
            "CWE-79"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "org.eclipse.jetty:jetty-util",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2019-04-22T21:08:57Z",
        "semver": {
          "vulnerable": [
            "[9.2.0.M0,9.2.27.v20190403)",
            "[9.3.0.M0, 9.3.26.v20190403)",
            "[9.4.15.v20190215, 9.4.16.v20190411)"
          ]
        },
        "severity": "medium",
        "title": "Cross-site Scripting (XSS)",
        "type": "vuln",
        "upgradePath": [
          "net.ruippeixotog:scala-scraper_2.11@1.2.1",
          "net.sourceforge.htmlunit:htmlunit@2.26",
          "org.eclipse.jetty.websocket:websocket-client@9.4.3.v20170317",
          "org.eclipse.jetty.websocket:websocket-common@9.4.3.v20170317",
          "org.eclipse.jetty:jetty-util@9.4.3.v20170317"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-ORGECLIPSEJETTY-174479",
        "version": "9.2.15.v20160210"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N/E:F",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 4.7,
        "description": "## Overview\n\n[org.eclipse.jetty:jetty-util](https://www.eclipse.org/jetty) is a Web Container & Clients - supports HTTP/2, HTTP/1.1, HTTP/1.0, websocket, servlets, and more.\n\n\nAffected versions of this package are vulnerable to Cross-site Scripting (XSS)\nwhen a remote client uses a specially formatted URL against the `DefaultServlet` or `ResourceHandler` that is configured for showing a listing of directory contents.\n\n## Details\nA cross-site scripting attack occurs when the attacker tricks a legitimate web-based application or site to accept a request as originating from a trusted source.\r\n\r\nThis is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML)  in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.\r\n\r\nֿInjecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.\r\n\r\nEscaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, `<` can be coded as  `<`; and `>` can be coded as `>`; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses `<` and `>` as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.\r\n \r\nThe most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware. \r\n\r\n### Types of attacks\r\nThere are a few methods by which XSS can be manipulated:\r\n\r\n|Type|Origin|Description|\r\n|--|--|--|\r\n|**Stored**|Server|The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.|\r\n|**Reflected**|Server|The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.| \r\n|**DOM-based**|Client|The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.|\r\n|**Mutated**| |The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.|\r\n\r\n### Affected environments\r\nThe following environments are susceptible to an XSS attack:\r\n\r\n* Web servers\r\n* Application servers\r\n* Web application environments\r\n\r\n### How to prevent\r\nThis section describes the top best practices designed to specifically protect your code: \r\n\r\n* Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches. \r\n* Convert special characters such as `?`, `&`, `/`, `<`, `>` and spaces to their respective HTML or URL encoded equivalents. \r\n* Give users the option to disable client-side scripts.\r\n* Redirect invalid requests.\r\n* Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.\r\n* Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.\r\n* Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.\n\n## Remediation\n\nUpgrade `org.eclipse.jetty:jetty-util` to version 9.2.27.v20190403, 9.3.26.v20190403, 9.4.16.v20190411 or higher.\n\n\n## References\n\n- [Eclipse Report](https://bugs.eclipse.org/bugs/show_bug.cgi?id=546121)\n\n- [GitHub Commit](https://github.com/eclipse/jetty.project/commit/ca77bd384a2970cabbbdab25cf6251c6fb76cd21)\n",
        "disclosureTime": "2019-04-22T21:08:57Z",
        "exploitMaturity": "mature",
        "from": [
          "net.ruippeixotog:scala-scraper_2.11@1.0.0",
          "net.sourceforge.htmlunit:htmlunit@2.20",
          "org.eclipse.jetty.websocket:websocket-client@9.2.15.v20160210",
          "org.eclipse.jetty.websocket:websocket-common@9.2.15.v20160210",
          "org.eclipse.jetty:jetty-io@9.2.15.v20160210",
          "org.eclipse.jetty:jetty-util@9.2.15.v20160210"
        ],
        "functions": [],
        "id": "SNYK-JAVA-ORGECLIPSEJETTY-174479",
        "identifiers": {
          "CVE": [
            "CVE-2019-10241"
          ],
          "CWE": [
            "CWE-79"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "org.eclipse.jetty:jetty-util",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2019-04-22T21:08:57Z",
        "semver": {
          "vulnerable": [
            "[9.2.0.M0,9.2.27.v20190403)",
            "[9.3.0.M0, 9.3.26.v20190403)",
            "[9.4.15.v20190215, 9.4.16.v20190411)"
          ]
        },
        "severity": "medium",
        "title": "Cross-site Scripting (XSS)",
        "type": "vuln",
        "upgradePath": [
          "net.ruippeixotog:scala-scraper_2.11@1.2.1",
          "net.sourceforge.htmlunit:htmlunit@2.26",
          "org.eclipse.jetty.websocket:websocket-client@9.4.3.v20170317",
          "org.eclipse.jetty.websocket:websocket-common@9.4.3.v20170317",
          "org.eclipse.jetty:jetty-io@9.4.3.v20170317",
          "org.eclipse.jetty:jetty-util@9.4.3.v20170317"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-ORGECLIPSEJETTY-174479",
        "version": "9.2.15.v20160210"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 7.5,
        "description": "## Overview\r\n[org.eclipse.jetty:jetty-util](https://github.com/eclipse/jetty.project)  is a lightweight highly scalable java based web server and servlet engine.\r\n\r\nAffected versions of this package are vulnerable to Timing Attacks. A flaw in the `util/security/Password.java` class makes it easier for remote attackers to obtain access by observing elapsed times before rejection of incorrect passwords.\r\n\r\n## Remediation\r\nUpgrade `org.eclipse.jetty:jetty-util` to versions 9.2.22, 9.3.20, 9.4.6 or higher.\r\n\r\n## References\r\n- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2017-9735)\r\n- [GitHub Issue](https://github.com/eclipse/jetty.project/issues/1556)",
        "disclosureTime": "2017-06-16T21:29:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "net.ruippeixotog:scala-scraper_2.11@1.0.0",
          "net.sourceforge.htmlunit:htmlunit@2.20",
          "org.eclipse.jetty.websocket:websocket-client@9.2.15.v20160210",
          "org.eclipse.jetty:jetty-util@9.2.15.v20160210"
        ],
        "functions": [
          {
            "functionId": {
              "className": "org.eclipse.jetty.util.security.Credential",
              "functionName": "check"
            },
            "version": [
              "(8.0.4.v20111024 ,9.2.22.v20170606)",
              "[9.3.0, 9.3.20.v20170531)",
              "[9.4.0, 9.4.6.v20170531)"
            ]
          },
          {
            "functionId": {
              "className": "org.eclipse.jetty.util.security.Password",
              "functionName": "check"
            },
            "version": [
              "(8.0.4.v20111024 ,9.2.22.v20170606)",
              "[9.3.0, 9.3.20.v20170531)",
              "[9.4.0, 9.4.6.v20170531)"
            ]
          }
        ],
        "id": "SNYK-JAVA-ORGECLIPSEJETTY-32151",
        "identifiers": {
          "CVE": [
            "CVE-2017-9735"
          ],
          "CWE": [
            "CWE-200"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "org.eclipse.jetty:jetty-util",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2018-04-03T08:07:27Z",
        "semver": {
          "vulnerable": [
            "[,9.2.22.v20170606)",
            "[9.3.0.M0, 9.3.20.v20170531)",
            "[9.4.0.M0, 9.4.6.v20170531)"
          ]
        },
        "severity": "high",
        "title": "Timing Attack",
        "type": "vuln",
        "upgradePath": [
          "net.ruippeixotog:scala-scraper_2.11@2.1.0",
          "net.sourceforge.htmlunit:htmlunit@2.29",
          "org.eclipse.jetty.websocket:websocket-client@9.4.8.v20171121",
          "org.eclipse.jetty:jetty-util@9.4.8.v20171121"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-ORGECLIPSEJETTY-32151",
        "version": "9.2.15.v20160210"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 7.5,
        "description": "## Overview\r\n[org.eclipse.jetty:jetty-util](https://github.com/eclipse/jetty.project)  is a lightweight highly scalable java based web server and servlet engine.\r\n\r\nAffected versions of this package are vulnerable to Timing Attacks. A flaw in the `util/security/Password.java` class makes it easier for remote attackers to obtain access by observing elapsed times before rejection of incorrect passwords.\r\n\r\n## Remediation\r\nUpgrade `org.eclipse.jetty:jetty-util` to versions 9.2.22, 9.3.20, 9.4.6 or higher.\r\n\r\n## References\r\n- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2017-9735)\r\n- [GitHub Issue](https://github.com/eclipse/jetty.project/issues/1556)",
        "disclosureTime": "2017-06-16T21:29:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "net.ruippeixotog:scala-scraper_2.11@1.0.0",
          "net.sourceforge.htmlunit:htmlunit@2.20",
          "org.eclipse.jetty.websocket:websocket-client@9.2.15.v20160210",
          "org.eclipse.jetty:jetty-io@9.2.15.v20160210",
          "org.eclipse.jetty:jetty-util@9.2.15.v20160210"
        ],
        "functions": [
          {
            "functionId": {
              "className": "org.eclipse.jetty.util.security.Credential",
              "functionName": "check"
            },
            "version": [
              "(8.0.4.v20111024 ,9.2.22.v20170606)",
              "[9.3.0, 9.3.20.v20170531)",
              "[9.4.0, 9.4.6.v20170531)"
            ]
          },
          {
            "functionId": {
              "className": "org.eclipse.jetty.util.security.Password",
              "functionName": "check"
            },
            "version": [
              "(8.0.4.v20111024 ,9.2.22.v20170606)",
              "[9.3.0, 9.3.20.v20170531)",
              "[9.4.0, 9.4.6.v20170531)"
            ]
          }
        ],
        "id": "SNYK-JAVA-ORGECLIPSEJETTY-32151",
        "identifiers": {
          "CVE": [
            "CVE-2017-9735"
          ],
          "CWE": [
            "CWE-200"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "org.eclipse.jetty:jetty-util",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2018-04-03T08:07:27Z",
        "semver": {
          "vulnerable": [
            "[,9.2.22.v20170606)",
            "[9.3.0.M0, 9.3.20.v20170531)",
            "[9.4.0.M0, 9.4.6.v20170531)"
          ]
        },
        "severity": "high",
        "title": "Timing Attack",
        "type": "vuln",
        "upgradePath": [
          "net.ruippeixotog:scala-scraper_2.11@2.1.0",
          "net.sourceforge.htmlunit:htmlunit@2.29",
          "org.eclipse.jetty.websocket:websocket-client@9.4.8.v20171121",
          "org.eclipse.jetty:jetty-io@9.4.8.v20171121",
          "org.eclipse.jetty:jetty-util@9.4.8.v20171121"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-ORGECLIPSEJETTY-32151",
        "version": "9.2.15.v20160210"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 7.5,
        "description": "## Overview\r\n[org.eclipse.jetty:jetty-util](https://github.com/eclipse/jetty.project)  is a lightweight highly scalable java based web server and servlet engine.\r\n\r\nAffected versions of this package are vulnerable to Timing Attacks. A flaw in the `util/security/Password.java` class makes it easier for remote attackers to obtain access by observing elapsed times before rejection of incorrect passwords.\r\n\r\n## Remediation\r\nUpgrade `org.eclipse.jetty:jetty-util` to versions 9.2.22, 9.3.20, 9.4.6 or higher.\r\n\r\n## References\r\n- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2017-9735)\r\n- [GitHub Issue](https://github.com/eclipse/jetty.project/issues/1556)",
        "disclosureTime": "2017-06-16T21:29:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "net.ruippeixotog:scala-scraper_2.11@1.0.0",
          "net.sourceforge.htmlunit:htmlunit@2.20",
          "org.eclipse.jetty.websocket:websocket-client@9.2.15.v20160210",
          "org.eclipse.jetty.websocket:websocket-common@9.2.15.v20160210",
          "org.eclipse.jetty:jetty-util@9.2.15.v20160210"
        ],
        "functions": [
          {
            "functionId": {
              "className": "org.eclipse.jetty.util.security.Credential",
              "functionName": "check"
            },
            "version": [
              "(8.0.4.v20111024 ,9.2.22.v20170606)",
              "[9.3.0, 9.3.20.v20170531)",
              "[9.4.0, 9.4.6.v20170531)"
            ]
          },
          {
            "functionId": {
              "className": "org.eclipse.jetty.util.security.Password",
              "functionName": "check"
            },
            "version": [
              "(8.0.4.v20111024 ,9.2.22.v20170606)",
              "[9.3.0, 9.3.20.v20170531)",
              "[9.4.0, 9.4.6.v20170531)"
            ]
          }
        ],
        "id": "SNYK-JAVA-ORGECLIPSEJETTY-32151",
        "identifiers": {
          "CVE": [
            "CVE-2017-9735"
          ],
          "CWE": [
            "CWE-200"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "org.eclipse.jetty:jetty-util",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2018-04-03T08:07:27Z",
        "semver": {
          "vulnerable": [
            "[,9.2.22.v20170606)",
            "[9.3.0.M0, 9.3.20.v20170531)",
            "[9.4.0.M0, 9.4.6.v20170531)"
          ]
        },
        "severity": "high",
        "title": "Timing Attack",
        "type": "vuln",
        "upgradePath": [
          "net.ruippeixotog:scala-scraper_2.11@2.1.0",
          "net.sourceforge.htmlunit:htmlunit@2.29",
          "org.eclipse.jetty.websocket:websocket-client@9.4.8.v20171121",
          "org.eclipse.jetty.websocket:websocket-common@9.4.8.v20171121",
          "org.eclipse.jetty:jetty-util@9.4.8.v20171121"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-ORGECLIPSEJETTY-32151",
        "version": "9.2.15.v20160210"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 7.5,
        "description": "## Overview\r\n[org.eclipse.jetty:jetty-util](https://github.com/eclipse/jetty.project)  is a lightweight highly scalable java based web server and servlet engine.\r\n\r\nAffected versions of this package are vulnerable to Timing Attacks. A flaw in the `util/security/Password.java` class makes it easier for remote attackers to obtain access by observing elapsed times before rejection of incorrect passwords.\r\n\r\n## Remediation\r\nUpgrade `org.eclipse.jetty:jetty-util` to versions 9.2.22, 9.3.20, 9.4.6 or higher.\r\n\r\n## References\r\n- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2017-9735)\r\n- [GitHub Issue](https://github.com/eclipse/jetty.project/issues/1556)",
        "disclosureTime": "2017-06-16T21:29:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "net.ruippeixotog:scala-scraper_2.11@1.0.0",
          "net.sourceforge.htmlunit:htmlunit@2.20",
          "org.eclipse.jetty.websocket:websocket-client@9.2.15.v20160210",
          "org.eclipse.jetty.websocket:websocket-common@9.2.15.v20160210",
          "org.eclipse.jetty:jetty-io@9.2.15.v20160210",
          "org.eclipse.jetty:jetty-util@9.2.15.v20160210"
        ],
        "functions": [
          {
            "functionId": {
              "className": "org.eclipse.jetty.util.security.Credential",
              "functionName": "check"
            },
            "version": [
              "(8.0.4.v20111024 ,9.2.22.v20170606)",
              "[9.3.0, 9.3.20.v20170531)",
              "[9.4.0, 9.4.6.v20170531)"
            ]
          },
          {
            "functionId": {
              "className": "org.eclipse.jetty.util.security.Password",
              "functionName": "check"
            },
            "version": [
              "(8.0.4.v20111024 ,9.2.22.v20170606)",
              "[9.3.0, 9.3.20.v20170531)",
              "[9.4.0, 9.4.6.v20170531)"
            ]
          }
        ],
        "id": "SNYK-JAVA-ORGECLIPSEJETTY-32151",
        "identifiers": {
          "CVE": [
            "CVE-2017-9735"
          ],
          "CWE": [
            "CWE-200"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "org.eclipse.jetty:jetty-util",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2018-04-03T08:07:27Z",
        "semver": {
          "vulnerable": [
            "[,9.2.22.v20170606)",
            "[9.3.0.M0, 9.3.20.v20170531)",
            "[9.4.0.M0, 9.4.6.v20170531)"
          ]
        },
        "severity": "high",
        "title": "Timing Attack",
        "type": "vuln",
        "upgradePath": [
          "net.ruippeixotog:scala-scraper_2.11@2.1.0",
          "net.sourceforge.htmlunit:htmlunit@2.29",
          "org.eclipse.jetty.websocket:websocket-client@9.4.8.v20171121",
          "org.eclipse.jetty.websocket:websocket-common@9.4.8.v20171121",
          "org.eclipse.jetty:jetty-io@9.4.8.v20171121",
          "org.eclipse.jetty:jetty-util@9.4.8.v20171121"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-ORGECLIPSEJETTY-32151",
        "version": "9.2.15.v20160210"
      },
      {
        "CVSSv3": "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
        "credit": [
          "Unknown"
        ],
        "cvssScore": 7.8,
        "description": "## Overview\nAffected versions of [`org.scala-lang:scala-compiler`](https://scala-lang.org) are vulnerable to Arbitrary Code Execution.\n\nThe compilation daemon in Scala before 2.10.7, 2.11.x before 2.11.12, and 2.12.x before 2.12.4 uses weak permissions for private files in /tmp/scala-devel/${USER:shared}/scalac-compile-server-port, which allows local users to write to arbitrary class files and consequently gain privileges.\n\n## Remediation\nUpgrade `org.scala-lang:scala-compiler` to version 2.12.4 or higher.\n\n## References\n- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2017-15288)\n- [GitHub PR #1](https://github.com/scala/scala/pull/6108)\n- [GitHub PR #2](https://github.com/scala/scala/pull/6120)\n- [GitHub PR #3](https://github.com/scala/scala/pull/6128)\n- [GitHub Commit #1](https://github.com/scala/scala/commit/f3419fc358a8ea6e366538126279da88d4d1fb1f)\n- [GitHub Commit #2](https://github.com/scala/scala/commit/67fcf5ce4496000574676d81ed72e4a6cb9e7757)\n- [GitHub Commit #3](https://github.com/scala/scala/commit/0f624c5e5bdb39967e208c7c16067c3e6c903f1f)\n",
        "disclosureTime": "2017-10-02T21:00:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "net.ruippeixotog:scala-scraper_2.11@1.0.0",
          "org.scala-lang:scala-compiler@2.11.8"
        ],
        "functions": [],
        "id": "SNYK-JAVA-ORGSCALALANG-31592",
        "identifiers": {
          "CVE": [
            "CVE-2017-15288"
          ],
          "CWE": [
            "CWE-94"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": true,
        "language": "java",
        "package": "org.scala-lang:scala-compiler",
        "packageManager": "maven",
        "patches": [],
        "publicationTime": "2017-11-28T14:47:22.036000Z",
        "semver": {
          "vulnerable": [
            "[,2.10.7),[2.11,2.11.12),[2.12,2.12.4)"
          ]
        },
        "severity": "high",
        "title": "Arbitrary Code Execution",
        "type": "vuln",
        "upgradePath": [
          "net.ruippeixotog:scala-scraper_2.11@1.1.0"
        ],
        "url": "https://snyk.io/vuln/SNYK-JAVA-ORGSCALALANG-31592",
        "version": "2.11.8"
      }
    ]
  },
  "licensesPolicy": null,
  "ok": false,
  "org": {
    "id": "4a18d42f-0706-4ad0-b127-24078731fbed",
    "name": "atokeneduser"
  },
  "packageManager": "sbt"
}
POST Test vendor.json File
{{baseUrl}}/test/govendor
BODY json

{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/test/govendor");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/test/govendor" {:content-type :json
                                                          :form-params {:encoding ""
                                                                        :files {:target {:contents ""}}}})
require "http/client"

url = "{{baseUrl}}/test/govendor"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/test/govendor"),
    Content = new StringContent("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/test/govendor");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/test/govendor"

	payload := strings.NewReader("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/test/govendor HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 81

{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/test/govendor")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/test/govendor"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/test/govendor")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/test/govendor")
  .header("content-type", "application/json")
  .body("{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  encoding: '',
  files: {
    target: {
      contents: ''
    }
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/test/govendor');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/govendor',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/test/govendor';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/test/govendor',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "encoding": "",\n  "files": {\n    "target": {\n      "contents": ""\n    }\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/test/govendor")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/test/govendor',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({encoding: '', files: {target: {contents: ''}}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/govendor',
  headers: {'content-type': 'application/json'},
  body: {encoding: '', files: {target: {contents: ''}}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/test/govendor');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  encoding: '',
  files: {
    target: {
      contents: ''
    }
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/test/govendor',
  headers: {'content-type': 'application/json'},
  data: {encoding: '', files: {target: {contents: ''}}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/test/govendor';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"encoding":"","files":{"target":{"contents":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"encoding": @"",
                              @"files": @{ @"target": @{ @"contents": @"" } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/test/govendor"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/test/govendor" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/test/govendor",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'encoding' => '',
    'files' => [
        'target' => [
                'contents' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/test/govendor', [
  'body' => '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/test/govendor');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'encoding' => '',
  'files' => [
    'target' => [
        'contents' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'encoding' => '',
  'files' => [
    'target' => [
        'contents' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/test/govendor');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/test/govendor' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/test/govendor' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/test/govendor", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/test/govendor"

payload = {
    "encoding": "",
    "files": { "target": { "contents": "" } }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/test/govendor"

payload <- "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/test/govendor")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/test/govendor') do |req|
  req.body = "{\n  \"encoding\": \"\",\n  \"files\": {\n    \"target\": {\n      \"contents\": \"\"\n    }\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/test/govendor";

    let payload = json!({
        "encoding": "",
        "files": json!({"target": json!({"contents": ""})})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/test/govendor \
  --header 'content-type: application/json' \
  --data '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}'
echo '{
  "encoding": "",
  "files": {
    "target": {
      "contents": ""
    }
  }
}' |  \
  http POST {{baseUrl}}/test/govendor \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "encoding": "",\n  "files": {\n    "target": {\n      "contents": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/test/govendor
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "encoding": "",
  "files": ["target": ["contents": ""]]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/test/govendor")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "dependencyCount": 28,
  "issues": {
    "licenses": [],
    "vulnerabilities": [
      {
        "CVSSv3": "CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
        "credit": [
          "Tõnis Tiigi"
        ],
        "cvssScore": 8.4,
        "description": "## Overview\nAffected version of [`github.com/docker/libcontainer`](https://github.com/docker/libcontainer) are vulnerable to Symlink Attacks.\nLibcontainer and Docker Engine before 1.6.1 opens the file-descriptor passed to the pid-1 process before performing the chroot, which allows local users to gain privileges via a symlink attack in an image.\n\n## References\n- [NVD](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-3627)\n- [GitHub Commit](https://github.com/docker/libcontainer/commit/46132cebcf391b56842f5cf9b247d508c59bc625)\n- [Packetstorm Security](http://packetstormsecurity.com/files/131835/Docker-Privilege-Escalation-Information-Disclosure.html)\n- [Seclists](http://seclists.org/fulldisclosure/2015/May/28)\n- [Docker Security Advisory](https://groups.google.com/forum/#%21searchin/docker-user/1.6.1/docker-user/47GZrihtr-4/nwgeOOFLexIJ)\n",
        "disclosureTime": "2015-05-18T15:59:00Z",
        "exploitMaturity": "no-known-exploit",
        "from": [
          "github.com/docker/libcontainer@v1.4.0"
        ],
        "functions": [],
        "id": "SNYK-GOLANG-GITHUBCOMDOCKERLIBCONTAINER-50012",
        "identifiers": {
          "CVE": [
            "CVE-2015-3627"
          ],
          "CWE": [
            "CWE-59"
          ]
        },
        "isPatchable": false,
        "isPinnable": false,
        "isUpgradable": false,
        "language": "golang",
        "package": "github.com/docker/libcontainer",
        "packageManager": "golang",
        "patches": [],
        "publicationTime": "2015-08-06T00:00:00Z",
        "semver": {
          "hashesRange": [
            ">=5c246d038fc47b8d57a474e1b212ffe646764ee9 <46132cebcf391b56842f5cf9b247d508c59bc625"
          ],
          "vulnerable": [
            "<1.6.1"
          ],
          "vulnerableHashes": [
            "cab4b9bce1bece1b6c575e1826f3e5b221faebf3",
            "4a72e540feb67091156b907c4700e580a99f5a9d",
            "eb74393a3d2daeafbef4f5f27c0821cbdd67559c",
            "4332ffcfc6765245e8e9151a2907b0e4b76f218f",
            "7eceabd47f41328d6e894418ae167ce8377bda22",
            "ecace12e5a3e309d82c5b3b1548a3251b3bc4e2a",
            "afb167a417ed8379c008b070fb5c0b1bc84bbcba",
            "2b4512809110033e5ec532167efd6fabf2dd596d",
            "c2403c32dbf8a67870ab2ba7524c117fc0652256",
            "4077c254a6ac99930d720a9b95709dbd2614bc61",
            "1b755bf962ec1d29e9e5e66e2cc15704fac088e7",
            "1c9de5b4d21b94499a1e91c9b94ba06831ac5393",
            "e3184f97e040c3121502dc382d41ac58a98b685a",
            "0dee9793d5efd9842a2e8890fa0f8981d20b196e",
            "3e9299d6da5749b263fc3dc93d50b5c854fa199c",
            "152107f44ae9e38b38609fdbc75ac6f9f56c4fed",
            "623fe598e4d5e75e70440f45298eecec414788b3",
            "e30793aed7a30772054abfb1b3f3f703f119b55b",
            "0596e6384a586223c56c5ea7d14467ebf5d17247",
            "42fed751fbab3f340461d06edb896cd10cd49812",
            "e451df796aaa605413a0b84ddd1bf39ec4a751a0",
            "b0eece8d7d945e1e7fc98c2ae3b7dd0a860a7c2a",
            "5c246d038fc47b8d57a474e1b212ffe646764ee9",
            "bfa67ab988f434fd6836c1868eb5d7d1d7864e8a",
            "9bebc660423ca974192599a6a5ea8e016a6fe1fc",
            "e22b58954324b3593737438032412f15ed9602e9",
            "af371eae767ceb51b8804f212bf97584d876feb3",
            "f61899ece3fc1da206a0eb28fada0595ab381887",
            "0d0402712b5a13d1b54a345a63ec67982e2e0089",
            "d1ae7cd67310f482af22de3abeb26d28e65274bf",
            "9f2c67332f48c0050846ac86e01cb5dadbd1d8fe",
            "62bdfc482d8edaa618b544fb2beafdf0c44dce5e",
            "699429e60f23ab0fa3bdd97b6326316be08791ad",
            "35c01f9eb3c228201a3fc5d2301d1fc7a00bde13",
            "a72f710d89eaabf23dad7c084082bccb26e6336f",
            "eb84dd1b73df035e6e64c8513daaa476c72dedfc",
            "5b73860e65598203b26d57aabc96ae0f52c9f9ab",
            "d64cfe5c05448935c75c92f65d604c751bbf5153",
            "62626677876330d60fe3512f59f1fd8f82799ca5",
            "43842efeccbd8077dba8f85fc9e772e0647b82cb",
            "d6cd7ce43faa53d212052dbbcf209029ec2ec951",
            "ebefcddc3c4b99ae312ac575c288856e177ed6ef",
            "83add60f217d32561ff0ff62ebf1d6db6a2a11a3",
            "14af6755f04233fbe55cb354a9351fe05afd43a0",
            "8530167f7f5b5eb329f5377b6b74a904482a10ed",
            "000d36e109f5d04bad5342bb779e02b2b9b252f7",
            "1db687f4f480c06e6cadfdb0971985df4313ddc7",
            "689e8ec9493a4294856dc1568f5ef667e106707c",
            "0eb8a1aac3d903b3c7925208c34f09c02910e7aa",
            "edb31ce0a6fd7956bffc0829000c60bdd56b9f32",
            "53fce307557cbffdbc54647ef63956b2cb0cee86",
            "c22d5c90cf907f4f34d2bc13cad9c82a7fce9077",
            "ef1c1c4289559e818d3ec77ce9c1b6a77d2ac764",
            "2da44f8c7b703f87e9c07164c9cc1cdd31031783",
            "ee102305fb35a23668136b102ed4d0dd5b3d9ce5",
            "3ca0e1ff95c54577c65b5fbb734c267c23782974",
            "f115a5f6c8c2a3cc6340408e6644236a88dcaad0",
            "29ba9b3179d014cc87129af5c51b1263443f387b",
            "c1ca18404fa63209e0a65abf443669155991b4df",
            "5bb81469895d669ddcb4b49e83809a980d57d6b1",
            "6feb7bda04b3130e81cf9606ddb7a156d4a63f7a",
            "7c8550af53b4d428d8f3a7c19c0c4a8ebca8ff21",
            "7766c1e07bd49fdc290f0557268950d35b867823",
            "4903df2ed52a01f08626739ad35937752de82a09",
            "58feafa848d9657dda34e5ccc3a196e359566bda",
            "9e787db1b108941edab18209a7468e6c555002ce",
            "e7953c3609b62a25b0bfedcd9d3885ca1b99d2fb",
            "8c3b6b18689796bc9625258258e8664746b24e85",
            "dd3cb8822352fd4acc0b8b426bd86e47e98f6853",
            "cc524f1b729cb5d7592d0a0b07cb3ff1fe6eda98",
            "c22ac4876f0a218584ae862900f3058470be38a3",
            "c1fb904d1047359e8c4dadafaa0ab065efe9e03e",
            "1f176f3c0dae283d66df5360de8a93ec14b4fbd0",
            "50f0faa795dc62773857a0cc3cfb6d5681ba3562",
            "3fbf1856025f54b6eab6e73b7ff8aa4d1020e1c1",
            "f4a4391e4ef7e886e56816ae59cbe99d8cff91d9",
            "2d9ef3af72e89ad9df164bd0f435371aa4fa0dea",
            "187792e35bb47c89fdfe34409162c814627daacc",
            "b322073f27b0e9e60b2ab07eff7f4e96a24cb3f9",
            "f78bf211f023d28392c6aa0d1934bb1001b3a180",
            "20af7e70e2511b4da0e035bf2fa2d6295f198970",
            "f8eb40433c4a8617a20ad36119973af6f9dd2cd0",
            "d7dea0e925315bab640115053204c16718839b1e",
            "295c70865d10d7c57ba13cbef45c1d276ebfa83e",
            "5a87153824b838be92503b57e76e96519b84b522",
            "fec4c5ab0a75d7e6a46955bda0818bed7f8fecf3",
            "6a76ecb1ce53d9e623826b238033b86f072395a9",
            "2c037b7fd98e1c03e0c67ceccfd8e3300457e07e",
            "4ce8d973204ebace2970c662f6f841ab11a3cc13",
            "870119e763b5976d7331fbd8656ed65207ba95ad",
            "58fc93160e03387a4f41dcf4aed2e376c4a92db4",
            "a3b0209cc61301941810e54bc3678ccff9af71c1",
            "ec005e73b9169d17651618b91836a5d86eb7b24c",
            "2fac2dad91e390acb8937ede6154c265b7011cf9",
            "0195469398f4fc1d42c0c20172b51e03ccf9ff1a",
            "8d0b06257ba659ee91fa3862ed358cecbee37f73",
            "6516e6ce8c7c71e44f95332ef740ea4082cfee39",
            "55d61e22c5e0e4dc00c99847ba20a8ffa1e3a3d4",
            "ca73d7aede7eaa05f4a0acb4bd5cb17a9408cd27",
            "43fabe36d18fa36326d9e5efd2cca8b9376a7fdf",
            "c06f92353f4f74cdb1c66ee0bbae1cdbb46934ce",
            "d6fae7bb26807a386f5dd9a1ec2dc5ac51c24498",
            "bde8bf2ebc5630399c7d0965f58b502100180400",
            "444cc2989aca50986b45a56bfd8a32bd7ea23c1c",
            "f5dfd9a702ad163be35023fe08c9573a614d6121",
            "6c2f20eeeca488b98a613e013712d7c9a3d1e619",
            "cc42996625afaf38d281f2457b08551a3df0d7bc",
            "903680701ad5cf25484d0ac3e78152807dfa90b3",
            "69228248334a576549a9af9df389b3cbfe0c211c",
            "6460fd79667466d2d9ec03f77f319a241c58d40b",
            "7d9244eab20fc96230636a066f88ad5165c34bc7",
            "9387ebb6ba5fca526aedb54c7df684102639caa3",
            "b21b19e0607582cceb8d715b85d27ec113a0b799",
            "c4821b6f3e0a41af6bf3ed1cfa168c13381b9554",
            "397b675315d00a34a09f058dd7e462af6f715da3",
            "c504f85aabbff0d7380ca9da3f6051c56905c7c0",
            "0f8f0601ae5668510ab7bde03041dafd39b18ec6",
            "c3ab8d0cb4b439b7691edf7b63fcecd169834250",
            "22df5551ed7367eb9cbb0cc22aea46351d2495ad",
            "d284fdfaa36d37cbba5749562d6f9303ebab7d2f",
            "a9a503082e492575be352c9c82040c1f4ed468d1",
            "5fedffd8fd387b24b25186622c9566325ab3db1b",
            "dc827aa0ee51829d292524fdf3a7a163feadabe2",
            "f925aa3503eeba9d372c74d1fe2b17c8ecd97960",
            "bc1d229dbe94a0100f4530b47e9c918f27b8cecd",
            "71a57166c1209103dcd4355d21c161bd0f09e481",
            "a9644c209f7764f9155db0c4aeb4f690c0cdb585",
            "bcfdee970e8a32d04b472cd2c5712e10a5e425fe",
            "3c474b9e2aad7c577faefca6c35a8512140c0c65",
            "c34b3d5ce90a6b2828d5b97f553f4b49f64081af",
            "286fffa4eeda7745f3b36dc938dae3e155d1b204",
            "d1f0d5705debbe4d4b1aed7e087d5c49300eb271",
            "08fdb50b03dc810ca8c4386f4f8271a8d51d4445",
            "c44ab12c86689065978950d2ed92bb131b2a932c",
            "5df859ad240af502aebef01ca28da3ef24951e05",
            "ef4efd065cb6c136c7fcbdd65285cff549b745ac",
            "2f1b2ce204490854938fab57142b557caa4ab66d",
            "a36d471a0ef4e119ecfb41257aad246464024a40",
            "83663f82e3d76f57ea57faf80b8fd7eb96933b9b",
            "e8f5b543010eb0db146fd2593284ed19af93eccd",
            "c8512754166539461fd860451ff1a0af7491c197",
            "dc4c502efd85727abfed95af7789caa7f10d020d",
            "4940cee052ece5a8b2ea477699e7bb232de1e1f8",
            "025e6be6c5dc3d535286461088416afa74c42927",
            "b4cda7a6cabf1966daf67f291c2c41ff9a1369f4",
            "074441b495052c456f4b96524bd7a80d00db42e8",
            "5847aacb32742fd734fa2c0584cae65636bba370",
            "f9590b0927744d22ad0e1b737eecd07a48bb4c2f",
            "e05f807a8936b4491632290f13958ca26d0aaace",
            "fd0087d3acdc4c5865de1829d4accee5e3ebb658",
            "38f729e577e07b2c3333ed4b04146e1d64f665a8",
            "8a8eb57746e5372080a5f5e5b6fb9dce178c8220",
            "afa8443118347a1f909941aec2732039d28a9034",
            "d6eb76f8a2184688489fc3a611d80de36ef50877",
            "0f397d4e145fb4053792d42b3424dd2143fb23ad",
            "ba613c5a847ff30d312726eeff444714f8e31cde",
            "445bebc1b16b1f2646a3cae841fe0e1266d79ada",
            "e2ed997ae5b675fc8e78e7d0f9e6918c8b87503c",
            "3b95acdfa1e54de15cae2fc3083147a185a31792",
            "cacc15360ec04abb4c45f918e83bf33203946e32",
            "09809b551ce9f05e96fc3055ae7a23329604415b",
            "2a9511a0266afd48251609a03533094afe22fce2",
            "b6cf7a6c8520fd21e75f8b3becec6dc355d844b0",
            "fc3981ea5c10fb21cae6d6a8e78755be5b169999",
            "dc34fe188385f42198997f6aedc170487c57c7eb",
            "e9f8f8528abef64b8e1b8bc046a008b009ab2417",
            "fe9f7668957641a404b0d2c8850f104df591e7f2",
            "8da9c6878fa29f33dcfd74b1146d457a576d738a",
            "4622c8ac9541790365eda22b6ce65d038f4026fe",
            "3977c892e78d91a0c6d2a34fd2512a6c53c8d924",
            "1bd146ed82f771395f991851f7d896d9ae778f3c",
            "77085907a44039fe1cf9fe24d9c7675aa53d2f9b",
            "107bad0ee5141bb847257a6f57dff2469dd584da",
            "2da159823d0a54756308e73dc0e58a420daffad4",
            "94fb37f5573e1484ba686b195079684cace18eb0",
            "5c6332687d5d7c902cdd954e4e6a107ed6c60848",
            "8b77eba9a6b506c71d1542d2fab1495249a7f7b6",
            "da32455210de558c829f089e8c3a3d1ed8c34a5b",
            "e1c14b3ca245fd06ef538005cd3a250904be5b4c",
            "f0d1a8fc27830b899c5789ba2f80dfa9458792a4",
            "846e522ffc157c12ba244c2c8a2c6adb1ed789f7",
            "2a452c17aa2417cd89b5e25e8549f9e09c94a0dc",
            "3cd416efe1e5b7d1679a20a91a73d757d481633b",
            "e0de51f53c6b2711f39f4f29eb58b63a9ebf2c5c",
            "f7837f4f717a9f09cf34fc325061ee8e38d1100a",
            "13a5703d853fbd311e1fcfc5c95d459021781951",
            "2aebf7d849e47ca927de332b82983ba8fe03d062",
            "56bc1485df0ac0c2fe8ae5e0499e50a0580f2522",
            "8d0f911e1d9265a8f362a7a16b893f7c40aee434",
            "dc82e30089dbba31a1d0cf459321486a9b546fa0",
            "4d863b7bd0d7da6ca1108031fd7d7997bf504496",
            "73ba097bf596249068513559225d6e18c1767b47",
            "da109f3af037352af24f935b1ea57ba8a7f26cad",
            "3c52181f613353cc3b8aefbbf637c15a11cb8242",
            "c96cde4e5db0da7e798e2712c2312f2468720a98",
            "52a8c004ca94cf98f6866536de828c71eb42d1ec",
            "b89112c542edcc9cf5af75694c16af28a3e4f12b",
            "c099a20eb8bd084c17d9348bd0f6bef066ea514f",
            "8067e34ec01588d2952d57e21c8c637fd3d3d114",
            "9d4f6b3d3d4feba35ea13097be415bf099b670ce",
            "334b1963711b743bf014502c5513a82a23eb65cc",
            "190e50b08dbd72fd1d9f21f20581fa27a498481c",
            "4c43b0f49880840966cb5df13abeeb19aa8e16d7",
            "9946e299af9e911a54c83626f245dff20127e442",
            "9825a26db570697e058a4580ec3b71ab3d82fc24",
            "f8daab8a96fe2c73974073696d00deb4ffb40d47",
            "88989e66d3a1ab960deb37f3dd7f824d85e1b9bc",
            "c5eef904604b7e22083927bb99ea0c196d4cb8b9",
            "4661c239dc6394aba960ba73144f2a7e3859537f",
            "9303a8f15f6e55931a08542636922c1bf041ad52",
            "9d91f080ced0bbfcbd3c003e2a20c9cdc81bc4ff",
            "99233fde8c4f58853a474a5831ef0bcf6bf866c5",
            "14a7d2f468404e25577dced6982248e80ddce79a",
            "b6a1b889852cd6b365833ce2b04a0c1092867f75",
            "5d6c507d7cfeff97172deedf3db13b5295bcacef",
            "b89cd0cf5cf5deec2ed6fdc0d8ed4e4f3167aeb4",
            "be02944484da197166020d6b3f08a19d7d7d244c",
            "c37b9125ecaad0c100b6851baacf97adfa2339d6",
            "045e9ae4a0fa8bff397b3c4f2614a3e609e6dd66",
            "9744d72c740dd8cdfbb8cb4c58fb235355e0a0b4",
            "74005ed4e0cdbc87ce40c6b79edfd599ba2355e9",
            "1d7207079fc6ab5b2cbfedda3fc8993bc4441b02",
            "8961fd20e6e213bf967db90166e24d38da065807",
            "dd5576b2b3f5667811f882d1f64a11e13164791a",
            "8600e6f3158bafe927706f0613c1520971d16c32",
            "e9c1b0144ae784df9d26f59bfadd8cb2fc3a1d69",
            "6423c8d2613e5130e9c37620773d2173c76f0acd",
            "b48acf4613cc5347ca10b6d6edd6e1b94a5378c4",
            "6c285c1d4964662ac64f0b98620d154caf423d79",
            "312f997de638b8c18f92a59596a984bdb1a06a4e",
            "11d14f2621370a527d2401c8bba10d2408819131",
            "a6044b701c166fe538fc760f9e2dcea3d737cd2a",
            "91a3f162afc90339b1d8f8d2f22d9c4271eddb84",
            "54301f55934f42598b8f7c88effc4bd588e5f3e7",
            "29f5cb6b391eea625c512df1f2ae7d9efccfbae9",
            "087caf69e8cabd8f1f66f6239079b60172c9fb78",
            "21ed4766b1523373b0463af497ef1c6b3b98c2ca",
            "30b33064169e09e1c5daacb38ed461ed5820d0d2",
            "a8a798a7c9b1da5beea8acfec16409d015ad85a7",
            "a4f2e1e1878c1ce541aec24e6e2a690855cc8003",
            "d06a2dab9f185c8cd2c21c0c97342cbdb7b9f38b",
            "12a63757dbde3b0be25b49bc9e7625059088d319",
            "35ae1c48710ff5a4db20645bc98c719cfb695b9a",
            "85cd86999f70339509692b92cf182ec36697edcf",
            "10d49f830b52ed05d9b41e18c8e1ff4a44a85fb3",
            "3f35b26b8b2dcd856b12b985f9091260d5c5bd71",
            "1a37242fa2af5db30ea72b95f948285efcd63d52",
            "b49bd705dcddd496aedb6e797ce8691d276236af",
            "eb2ae34c80f6b8ffb1bdfc55287d967c6e18cd81",
            "39fbf0a90423a1e6e31c6c042acd9aea00793a18",
            "d658fb8a2566cab11600af4db164c5f1f8656116",
            "f4cf808a3d184c556a51cd53d98a2f4ea05acee4",
            "bdff595cad6a42ba9675f99505bebecdb28209f0",
            "9377591781a5346ed84517688787c305ed6554c4",
            "19099e065da7c810f93e83d68c0776c2336e5e03",
            "a1ac9b101571477a81e1cb3c6999f818bbbf0738",
            "54968f68bc2ba50f59a66fba9f6823215a0bc4f6",
            "9455a8ce3aaccceb4c282ef6c84d7edb36dd0d4c",
            "21c344a479a8fd359a9c875f3056a7e72fe4d5fb",
            "00abcf89d9ad026ddce4af0038db7953b01d8b8b",
            "1a246dd54326124df57cb0e8e051f57abb549c9f",
            "07db66a6ef857edee2c731d1b66f42a4f32d9622",
            "d4867a6583c17001a60590684d91237a580e786a",
            "46573774a27c7a4d20d508f1f07ba72d34616bc3",
            "9184d9473d7b5ecb0dddca4052171534523602be",
            "f6593810da73cf8e1cc982d9020850260fc1ff52",
            "a9442e6660e71fd2058310e6155de3ef5e4f5fdf",
            "cee97cb0ccad90c369b10d6a9512d678a0535cac",
            "aaca2848a1e1eefa71ce2987b19abae2d34cf3aa",
            "3125b53b1aef485ed2239d514b131ef80ad577c1",
            "2990f254f030e62ab15b9399e26368aa3e291d15",
            "b19b8a9677ae9e657e0195ac85a4849a67729cf6",
            "e3b14402ebded2a7ec8f38809bf907ac72692ede",
            "37d229d0262b6fa7dfb96184eff3f7882ddd487e",
            "8002fd226367c0882973c69673bf8379df2fc198",
            "a1c3e0db94579f59cc821132f958187339e68d88",
            "4fdec5a8e10f95a5dbfd84cf382f2755f0342fda",
            "ef73d7e235c4d4ab41402835193ac9ba0c4cc485",
            "ad3d14f1da33d00ee3506f12922fb3faf87b65d7",
            "a1d509759b9195a1c022f2eb9585b74d07a0f084",
            "b7e54b0b41757cd36dd03fb29367b385c5fa3be0",
            "d909440c48b7b64b016478de1e6ee78e2faa9e13",
            "2ca9dc306e8c667eb9f00376898be52d8b980c88",
            "031524c73df6fd40b13e89c44e86d4a62d77075b",
            "6fae0d4fa68a85a1d552c5ae3140dd39f7a05c88",
            "fb27b4238cd6c33bd899e240ead4b5fb8a2a24b1",
            "0890cc54a92627c03119654c94c584a2e3c744ca",
            "339edce03ed7fe59ec4a778abff243fa4cabaa23",
            "2329014b6dbc473326291fa6e101e6d63c4dbd25",
            "872663148e00c4d272fc67e8d369a5012ccbac5a",
            "0e3b1262a168d51512014c4f7df6c37edce0f05d",
            "606d9064b0a6abd82da3731fda9f1558ec1f153c",
            "4bd39999a06fa1f710daae54c6cc8ca7d5784f58",
            "562cd20d05e0427e6b18daa279a3a5f3b08c889d",
            "4bbd44784c7c4eede8e53011a2c4981c16598d1f",
            "dc4bd4cece9a6de7926e85a09f152fe4697a8bc5",
            "770e2583907fa38e2b78601a90799b6ae7ab15eb",
            "f34b3b765fb964dee979ac7646b6d609adbeb2ba",
            "aa10040b570386c1ae311c6245b9e21295b2b83a",
            "fff015f4094ab80ff2eb4978f8cdb3711187c50a",
            "5b2be7d9d8444e0a5b706944c878cd0048ef026a",
            "2cd0ee8cf21eecaa9d39d699692284be44cf6ca2",
            "451043367be65468dd96bbf5868af666b25f1663",
            "4fc29224cf362988a741dc07804225f730a326ec",
            "dd6bc28afb3bafdde93ad7ed9f58b3a0aec2be99",
            "1597c68f7b941fd97881155d7f077852e2914e7b",
            "e59984353acde7207aa1115e261847bf4ddd9a8f",
            "ee1000e153e1b7c8f223bb573bb8169d2033f4af",
            "1d3b2589d734dc94a1719a3af40b87ed8319f329"
          ]
        },
        "severity": "critical",
        "title": "Symlink Attack",
        "type": "vuln",
        "upgradePath": [],
        "url": "https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMDOCKERLIBCONTAINER-50012",
        "version": "v1.4.0"
      }
    ]
  },
  "licensesPolicy": null,
  "ok": false,
  "org": {
    "id": "689ce7f9-7943-4a71-b704-2ba575f01089",
    "name": "atokeneduser"
  },
  "packageManager": "govendor"
}
GET Get My Details
{{baseUrl}}/user/me
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/user/me");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/user/me")
require "http/client"

url = "{{baseUrl}}/user/me"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/user/me"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/user/me");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/user/me"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/user/me HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/user/me")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/user/me"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/user/me")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/user/me")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/user/me');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/user/me'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/user/me';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/user/me',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/user/me")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/user/me',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/user/me'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/user/me');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/user/me'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/user/me';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/user/me"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/user/me" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/user/me",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/user/me');

echo $response->getBody();
setUrl('{{baseUrl}}/user/me');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/user/me');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/user/me' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/user/me' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/user/me")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/user/me"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/user/me"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/user/me")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/user/me') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/user/me";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/user/me
http GET {{baseUrl}}/user/me
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/user/me
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/user/me")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "email": "",
  "id": "",
  "orgs": [],
  "username": ""
}
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{}
GET Get User Details
{{baseUrl}}/user/:userId
QUERY PARAMS

userId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/user/:userId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/user/:userId")
require "http/client"

url = "{{baseUrl}}/user/:userId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/user/:userId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/user/:userId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/user/:userId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/user/:userId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/user/:userId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/user/:userId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/user/:userId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/user/:userId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/user/:userId');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/user/:userId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/user/:userId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/user/:userId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/user/:userId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/user/:userId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/user/:userId'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/user/:userId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/user/:userId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/user/:userId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/user/:userId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/user/:userId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/user/:userId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/user/:userId');

echo $response->getBody();
setUrl('{{baseUrl}}/user/:userId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/user/:userId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/user/:userId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/user/:userId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/user/:userId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/user/:userId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/user/:userId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/user/:userId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/user/:userId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/user/:userId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/user/:userId
http GET {{baseUrl}}/user/:userId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/user/:userId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/user/:userId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "email": "",
  "id": "",
  "name": "",
  "username": ""
}
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{}
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{}
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{}
GET Get organization notification settings (GET)
{{baseUrl}}/user/me/notification-settings/org/:orgId
QUERY PARAMS

orgId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/user/me/notification-settings/org/:orgId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/user/me/notification-settings/org/:orgId")
require "http/client"

url = "{{baseUrl}}/user/me/notification-settings/org/:orgId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/user/me/notification-settings/org/:orgId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/user/me/notification-settings/org/:orgId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/user/me/notification-settings/org/:orgId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/user/me/notification-settings/org/:orgId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/user/me/notification-settings/org/:orgId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/user/me/notification-settings/org/:orgId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/user/me/notification-settings/org/:orgId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/user/me/notification-settings/org/:orgId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/user/me/notification-settings/org/:orgId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/user/me/notification-settings/org/:orgId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/user/me/notification-settings/org/:orgId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/user/me/notification-settings/org/:orgId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/user/me/notification-settings/org/:orgId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/user/me/notification-settings/org/:orgId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/user/me/notification-settings/org/:orgId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/user/me/notification-settings/org/:orgId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/user/me/notification-settings/org/:orgId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/user/me/notification-settings/org/:orgId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/user/me/notification-settings/org/:orgId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/user/me/notification-settings/org/:orgId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/user/me/notification-settings/org/:orgId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/user/me/notification-settings/org/:orgId');

echo $response->getBody();
setUrl('{{baseUrl}}/user/me/notification-settings/org/:orgId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/user/me/notification-settings/org/:orgId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/user/me/notification-settings/org/:orgId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/user/me/notification-settings/org/:orgId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/user/me/notification-settings/org/:orgId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/user/me/notification-settings/org/:orgId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/user/me/notification-settings/org/:orgId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/user/me/notification-settings/org/:orgId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/user/me/notification-settings/org/:orgId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/user/me/notification-settings/org/:orgId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/user/me/notification-settings/org/:orgId
http GET {{baseUrl}}/user/me/notification-settings/org/:orgId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/user/me/notification-settings/org/:orgId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/user/me/notification-settings/org/:orgId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "new-issues-remediations": {
    "enabled": true,
    "inherited": false,
    "issueSeverity": "high",
    "issueType": "vuln"
  },
  "project-imported": {
    "enabled": true,
    "inherited": false
  },
  "test-limit": {
    "enabled": true,
    "inherited": false
  },
  "weekly-report": {
    "enabled": true,
    "inherited": false
  }
}
GET Get project notification settings
{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId
QUERY PARAMS

orgId
projectId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId")
require "http/client"

url = "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/user/me/notification-settings/org/:orgId/project/:projectId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/user/me/notification-settings/org/:orgId/project/:projectId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId');

echo $response->getBody();
setUrl('{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/user/me/notification-settings/org/:orgId/project/:projectId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/user/me/notification-settings/org/:orgId/project/:projectId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId
http GET {{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "new-issues-remediations": {
    "enabled": true,
    "inherited": false,
    "issueSeverity": "high",
    "issueType": "vuln"
  },
  "project-imported": {
    "enabled": true,
    "inherited": false
  },
  "test-limit": {
    "enabled": true,
    "inherited": false
  },
  "weekly-report": {
    "enabled": true,
    "inherited": false
  }
}
PUT Modify organization notification settings
{{baseUrl}}/user/me/notification-settings/org/:orgId
QUERY PARAMS

orgId
BODY json

{
  "new-issues-remediations": {
    "enabled": false,
    "issueSeverity": "",
    "issueType": ""
  },
  "project-imported": {
    "enabled": false
  },
  "test-limit": {
    "enabled": false
  },
  "weekly-report": {
    "enabled": false
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/user/me/notification-settings/org/:orgId");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/user/me/notification-settings/org/:orgId" {:content-type :json
                                                                                    :form-params {:new-issues-remediations {:enabled false
                                                                                                                            :issueSeverity ""
                                                                                                                            :issueType ""}
                                                                                                  :project-imported {:enabled false}
                                                                                                  :test-limit {:enabled false}
                                                                                                  :weekly-report {:enabled false}}})
require "http/client"

url = "{{baseUrl}}/user/me/notification-settings/org/:orgId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/user/me/notification-settings/org/:orgId"),
    Content = new StringContent("{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/user/me/notification-settings/org/:orgId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/user/me/notification-settings/org/:orgId"

	payload := strings.NewReader("{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/user/me/notification-settings/org/:orgId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 246

{
  "new-issues-remediations": {
    "enabled": false,
    "issueSeverity": "",
    "issueType": ""
  },
  "project-imported": {
    "enabled": false
  },
  "test-limit": {
    "enabled": false
  },
  "weekly-report": {
    "enabled": false
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/user/me/notification-settings/org/:orgId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/user/me/notification-settings/org/:orgId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/user/me/notification-settings/org/:orgId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/user/me/notification-settings/org/:orgId")
  .header("content-type", "application/json")
  .body("{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}")
  .asString();
const data = JSON.stringify({
  'new-issues-remediations': {
    enabled: false,
    issueSeverity: '',
    issueType: ''
  },
  'project-imported': {
    enabled: false
  },
  'test-limit': {
    enabled: false
  },
  'weekly-report': {
    enabled: false
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/user/me/notification-settings/org/:orgId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/user/me/notification-settings/org/:orgId',
  headers: {'content-type': 'application/json'},
  data: {
    'new-issues-remediations': {enabled: false, issueSeverity: '', issueType: ''},
    'project-imported': {enabled: false},
    'test-limit': {enabled: false},
    'weekly-report': {enabled: false}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/user/me/notification-settings/org/:orgId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"new-issues-remediations":{"enabled":false,"issueSeverity":"","issueType":""},"project-imported":{"enabled":false},"test-limit":{"enabled":false},"weekly-report":{"enabled":false}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/user/me/notification-settings/org/:orgId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "new-issues-remediations": {\n    "enabled": false,\n    "issueSeverity": "",\n    "issueType": ""\n  },\n  "project-imported": {\n    "enabled": false\n  },\n  "test-limit": {\n    "enabled": false\n  },\n  "weekly-report": {\n    "enabled": false\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/user/me/notification-settings/org/:orgId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/user/me/notification-settings/org/:orgId',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  'new-issues-remediations': {enabled: false, issueSeverity: '', issueType: ''},
  'project-imported': {enabled: false},
  'test-limit': {enabled: false},
  'weekly-report': {enabled: false}
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/user/me/notification-settings/org/:orgId',
  headers: {'content-type': 'application/json'},
  body: {
    'new-issues-remediations': {enabled: false, issueSeverity: '', issueType: ''},
    'project-imported': {enabled: false},
    'test-limit': {enabled: false},
    'weekly-report': {enabled: false}
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/user/me/notification-settings/org/:orgId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  'new-issues-remediations': {
    enabled: false,
    issueSeverity: '',
    issueType: ''
  },
  'project-imported': {
    enabled: false
  },
  'test-limit': {
    enabled: false
  },
  'weekly-report': {
    enabled: false
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/user/me/notification-settings/org/:orgId',
  headers: {'content-type': 'application/json'},
  data: {
    'new-issues-remediations': {enabled: false, issueSeverity: '', issueType: ''},
    'project-imported': {enabled: false},
    'test-limit': {enabled: false},
    'weekly-report': {enabled: false}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/user/me/notification-settings/org/:orgId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"new-issues-remediations":{"enabled":false,"issueSeverity":"","issueType":""},"project-imported":{"enabled":false},"test-limit":{"enabled":false},"weekly-report":{"enabled":false}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"new-issues-remediations": @{ @"enabled": @NO, @"issueSeverity": @"", @"issueType": @"" },
                              @"project-imported": @{ @"enabled": @NO },
                              @"test-limit": @{ @"enabled": @NO },
                              @"weekly-report": @{ @"enabled": @NO } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/user/me/notification-settings/org/:orgId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/user/me/notification-settings/org/:orgId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/user/me/notification-settings/org/:orgId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'new-issues-remediations' => [
        'enabled' => null,
        'issueSeverity' => '',
        'issueType' => ''
    ],
    'project-imported' => [
        'enabled' => null
    ],
    'test-limit' => [
        'enabled' => null
    ],
    'weekly-report' => [
        'enabled' => null
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/user/me/notification-settings/org/:orgId', [
  'body' => '{
  "new-issues-remediations": {
    "enabled": false,
    "issueSeverity": "",
    "issueType": ""
  },
  "project-imported": {
    "enabled": false
  },
  "test-limit": {
    "enabled": false
  },
  "weekly-report": {
    "enabled": false
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/user/me/notification-settings/org/:orgId');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'new-issues-remediations' => [
    'enabled' => null,
    'issueSeverity' => '',
    'issueType' => ''
  ],
  'project-imported' => [
    'enabled' => null
  ],
  'test-limit' => [
    'enabled' => null
  ],
  'weekly-report' => [
    'enabled' => null
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'new-issues-remediations' => [
    'enabled' => null,
    'issueSeverity' => '',
    'issueType' => ''
  ],
  'project-imported' => [
    'enabled' => null
  ],
  'test-limit' => [
    'enabled' => null
  ],
  'weekly-report' => [
    'enabled' => null
  ]
]));
$request->setRequestUrl('{{baseUrl}}/user/me/notification-settings/org/:orgId');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/user/me/notification-settings/org/:orgId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "new-issues-remediations": {
    "enabled": false,
    "issueSeverity": "",
    "issueType": ""
  },
  "project-imported": {
    "enabled": false
  },
  "test-limit": {
    "enabled": false
  },
  "weekly-report": {
    "enabled": false
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/user/me/notification-settings/org/:orgId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "new-issues-remediations": {
    "enabled": false,
    "issueSeverity": "",
    "issueType": ""
  },
  "project-imported": {
    "enabled": false
  },
  "test-limit": {
    "enabled": false
  },
  "weekly-report": {
    "enabled": false
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/user/me/notification-settings/org/:orgId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/user/me/notification-settings/org/:orgId"

payload = {
    "new-issues-remediations": {
        "enabled": False,
        "issueSeverity": "",
        "issueType": ""
    },
    "project-imported": { "enabled": False },
    "test-limit": { "enabled": False },
    "weekly-report": { "enabled": False }
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/user/me/notification-settings/org/:orgId"

payload <- "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/user/me/notification-settings/org/:orgId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/user/me/notification-settings/org/:orgId') do |req|
  req.body = "{\n  \"new-issues-remediations\": {\n    \"enabled\": false,\n    \"issueSeverity\": \"\",\n    \"issueType\": \"\"\n  },\n  \"project-imported\": {\n    \"enabled\": false\n  },\n  \"test-limit\": {\n    \"enabled\": false\n  },\n  \"weekly-report\": {\n    \"enabled\": false\n  }\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/user/me/notification-settings/org/:orgId";

    let payload = json!({
        "new-issues-remediations": json!({
            "enabled": false,
            "issueSeverity": "",
            "issueType": ""
        }),
        "project-imported": json!({"enabled": false}),
        "test-limit": json!({"enabled": false}),
        "weekly-report": json!({"enabled": false})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/user/me/notification-settings/org/:orgId \
  --header 'content-type: application/json' \
  --data '{
  "new-issues-remediations": {
    "enabled": false,
    "issueSeverity": "",
    "issueType": ""
  },
  "project-imported": {
    "enabled": false
  },
  "test-limit": {
    "enabled": false
  },
  "weekly-report": {
    "enabled": false
  }
}'
echo '{
  "new-issues-remediations": {
    "enabled": false,
    "issueSeverity": "",
    "issueType": ""
  },
  "project-imported": {
    "enabled": false
  },
  "test-limit": {
    "enabled": false
  },
  "weekly-report": {
    "enabled": false
  }
}' |  \
  http PUT {{baseUrl}}/user/me/notification-settings/org/:orgId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "new-issues-remediations": {\n    "enabled": false,\n    "issueSeverity": "",\n    "issueType": ""\n  },\n  "project-imported": {\n    "enabled": false\n  },\n  "test-limit": {\n    "enabled": false\n  },\n  "weekly-report": {\n    "enabled": false\n  }\n}' \
  --output-document \
  - {{baseUrl}}/user/me/notification-settings/org/:orgId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "new-issues-remediations": [
    "enabled": false,
    "issueSeverity": "",
    "issueType": ""
  ],
  "project-imported": ["enabled": false],
  "test-limit": ["enabled": false],
  "weekly-report": ["enabled": false]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/user/me/notification-settings/org/:orgId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json; charset=utf-8
RESPONSE BODY json

{
  "new-issues-remediations": {
    "enabled": true,
    "inherited": false,
    "issueSeverity": "high",
    "issueType": "vuln"
  },
  "project-imported": {
    "enabled": true,
    "inherited": false
  },
  "test-limit": {
    "enabled": true,
    "inherited": false
  },
  "weekly-report": {
    "enabled": true,
    "inherited": false
  }
}
PUT Modify project notification settings
{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId
QUERY PARAMS

orgId
projectId
BODY json

{
  "new-issues-remediations": {
    "enabled": false,
    "issueSeverity": "",
    "issueType": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"new-issues-remediations\": {\n    \"enabled\": true,\n    \"issueSeverity\": \"high\",\n    \"issueType\": \"vuln\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId" {:content-type :json
                                                                                                       :form-params {:new-issues-remediations {:enabled true
                                                                                                                                               :issueSeverity "high"
                                                                                                                                               :issueType "vuln"}}})
require "http/client"

url = "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"new-issues-remediations\": {\n    \"enabled\": true,\n    \"issueSeverity\": \"high\",\n    \"issueType\": \"vuln\"\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId"),
    Content = new StringContent("{\n  \"new-issues-remediations\": {\n    \"enabled\": true,\n    \"issueSeverity\": \"high\",\n    \"issueType\": \"vuln\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"new-issues-remediations\": {\n    \"enabled\": true,\n    \"issueSeverity\": \"high\",\n    \"issueType\": \"vuln\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId"

	payload := strings.NewReader("{\n  \"new-issues-remediations\": {\n    \"enabled\": true,\n    \"issueSeverity\": \"high\",\n    \"issueType\": \"vuln\"\n  }\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/user/me/notification-settings/org/:orgId/project/:projectId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 112

{
  "new-issues-remediations": {
    "enabled": true,
    "issueSeverity": "high",
    "issueType": "vuln"
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"new-issues-remediations\": {\n    \"enabled\": true,\n    \"issueSeverity\": \"high\",\n    \"issueType\": \"vuln\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"new-issues-remediations\": {\n    \"enabled\": true,\n    \"issueSeverity\": \"high\",\n    \"issueType\": \"vuln\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"new-issues-remediations\": {\n    \"enabled\": true,\n    \"issueSeverity\": \"high\",\n    \"issueType\": \"vuln\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId")
  .header("content-type", "application/json")
  .body("{\n  \"new-issues-remediations\": {\n    \"enabled\": true,\n    \"issueSeverity\": \"high\",\n    \"issueType\": \"vuln\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  'new-issues-remediations': {
    enabled: true,
    issueSeverity: 'high',
    issueType: 'vuln'
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId',
  headers: {'content-type': 'application/json'},
  data: {
    'new-issues-remediations': {enabled: true, issueSeverity: 'high', issueType: 'vuln'}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"new-issues-remediations":{"enabled":true,"issueSeverity":"high","issueType":"vuln"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "new-issues-remediations": {\n    "enabled": true,\n    "issueSeverity": "high",\n    "issueType": "vuln"\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"new-issues-remediations\": {\n    \"enabled\": true,\n    \"issueSeverity\": \"high\",\n    \"issueType\": \"vuln\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/user/me/notification-settings/org/:orgId/project/:projectId',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  'new-issues-remediations': {enabled: true, issueSeverity: 'high', issueType: 'vuln'}
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId',
  headers: {'content-type': 'application/json'},
  body: {
    'new-issues-remediations': {enabled: true, issueSeverity: 'high', issueType: 'vuln'}
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  'new-issues-remediations': {
    enabled: true,
    issueSeverity: 'high',
    issueType: 'vuln'
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId',
  headers: {'content-type': 'application/json'},
  data: {
    'new-issues-remediations': {enabled: true, issueSeverity: 'high', issueType: 'vuln'}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"new-issues-remediations":{"enabled":true,"issueSeverity":"high","issueType":"vuln"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"new-issues-remediations": @{ @"enabled": @YES, @"issueSeverity": @"high", @"issueType": @"vuln" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"new-issues-remediations\": {\n    \"enabled\": true,\n    \"issueSeverity\": \"high\",\n    \"issueType\": \"vuln\"\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'new-issues-remediations' => [
        'enabled' => null,
        'issueSeverity' => 'high',
        'issueType' => 'vuln'
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId', [
  'body' => '{
  "new-issues-remediations": {
    "enabled": true,
    "issueSeverity": "high",
    "issueType": "vuln"
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'new-issues-remediations' => [
    'enabled' => null,
    'issueSeverity' => 'high',
    'issueType' => 'vuln'
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'new-issues-remediations' => [
    'enabled' => null,
    'issueSeverity' => 'high',
    'issueType' => 'vuln'
  ]
]));
$request->setRequestUrl('{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "new-issues-remediations": {
    "enabled": true,
    "issueSeverity": "high",
    "issueType": "vuln"
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "new-issues-remediations": {
    "enabled": true,
    "issueSeverity": "high",
    "issueType": "vuln"
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"new-issues-remediations\": {\n    \"enabled\": true,\n    \"issueSeverity\": \"high\",\n    \"issueType\": \"vuln\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/user/me/notification-settings/org/:orgId/project/:projectId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId"

payload = { "new-issues-remediations": {
        "enabled": True,
        "issueSeverity": "high",
        "issueType": "vuln"
    } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId"

payload <- "{\n  \"new-issues-remediations\": {\n    \"enabled\": true,\n    \"issueSeverity\": \"high\",\n    \"issueType\": \"vuln\"\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"new-issues-remediations\": {\n    \"enabled\": true,\n    \"issueSeverity\": \"high\",\n    \"issueType\": \"vuln\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/user/me/notification-settings/org/:orgId/project/:projectId') do |req|
  req.body = "{\n  \"new-issues-remediations\": {\n    \"enabled\": true,\n    \"issueSeverity\": \"high\",\n    \"issueType\": \"vuln\"\n  }\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId";

    let payload = json!({"new-issues-remediations": json!({
            "enabled": true,
            "issueSeverity": "high",
            "issueType": "vuln"
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId \
  --header 'content-type: application/json' \
  --data '{
  "new-issues-remediations": {
    "enabled": true,
    "issueSeverity": "high",
    "issueType": "vuln"
  }
}'
echo '{
  "new-issues-remediations": {
    "enabled": true,
    "issueSeverity": "high",
    "issueType": "vuln"
  }
}' |  \
  http PUT {{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "new-issues-remediations": {\n    "enabled": true,\n    "issueSeverity": "high",\n    "issueType": "vuln"\n  }\n}' \
  --output-document \
  - {{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["new-issues-remediations": [
    "enabled": true,
    "issueSeverity": "high",
    "issueType": "vuln"
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/user/me/notification-settings/org/:orgId/project/:projectId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Create a webhook
{{baseUrl}}/org/:orgId/webhooks
QUERY PARAMS

orgId
BODY json

{
  "secret": "",
  "url": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/webhooks");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"secret\": \"\",\n  \"url\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/webhooks" {:content-type :json
                                                                :form-params {:secret ""
                                                                              :url ""}})
require "http/client"

url = "{{baseUrl}}/org/:orgId/webhooks"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"secret\": \"\",\n  \"url\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/webhooks"),
    Content = new StringContent("{\n  \"secret\": \"\",\n  \"url\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/webhooks");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"secret\": \"\",\n  \"url\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/webhooks"

	payload := strings.NewReader("{\n  \"secret\": \"\",\n  \"url\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/webhooks HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 31

{
  "secret": "",
  "url": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/webhooks")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"secret\": \"\",\n  \"url\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/webhooks"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"secret\": \"\",\n  \"url\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"secret\": \"\",\n  \"url\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/webhooks")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/webhooks")
  .header("content-type", "application/json")
  .body("{\n  \"secret\": \"\",\n  \"url\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  secret: '',
  url: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/webhooks');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/webhooks',
  headers: {'content-type': 'application/json'},
  data: {secret: '', url: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/webhooks';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"secret":"","url":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/webhooks',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "secret": "",\n  "url": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"secret\": \"\",\n  \"url\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/webhooks")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/webhooks',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({secret: '', url: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/webhooks',
  headers: {'content-type': 'application/json'},
  body: {secret: '', url: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/webhooks');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  secret: '',
  url: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/webhooks',
  headers: {'content-type': 'application/json'},
  data: {secret: '', url: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/webhooks';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"secret":"","url":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"secret": @"",
                              @"url": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/webhooks"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/webhooks" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"secret\": \"\",\n  \"url\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/webhooks",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'secret' => '',
    'url' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/webhooks', [
  'body' => '{
  "secret": "",
  "url": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/webhooks');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'secret' => '',
  'url' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'secret' => '',
  'url' => ''
]));
$request->setRequestUrl('{{baseUrl}}/org/:orgId/webhooks');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/webhooks' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "secret": "",
  "url": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/webhooks' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "secret": "",
  "url": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"secret\": \"\",\n  \"url\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/org/:orgId/webhooks", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/webhooks"

payload = {
    "secret": "",
    "url": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/webhooks"

payload <- "{\n  \"secret\": \"\",\n  \"url\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/webhooks")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"secret\": \"\",\n  \"url\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/org/:orgId/webhooks') do |req|
  req.body = "{\n  \"secret\": \"\",\n  \"url\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/webhooks";

    let payload = json!({
        "secret": "",
        "url": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/webhooks \
  --header 'content-type: application/json' \
  --data '{
  "secret": "",
  "url": ""
}'
echo '{
  "secret": "",
  "url": ""
}' |  \
  http POST {{baseUrl}}/org/:orgId/webhooks \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "secret": "",\n  "url": ""\n}' \
  --output-document \
  - {{baseUrl}}/org/:orgId/webhooks
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "secret": "",
  "url": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/webhooks")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Delete a webhook
{{baseUrl}}/org/:orgId/webhooks/:webhookId
QUERY PARAMS

orgId
webhookId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/webhooks/:webhookId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/org/:orgId/webhooks/:webhookId")
require "http/client"

url = "{{baseUrl}}/org/:orgId/webhooks/:webhookId"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/webhooks/:webhookId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/webhooks/:webhookId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/webhooks/:webhookId"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/org/:orgId/webhooks/:webhookId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/org/:orgId/webhooks/:webhookId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/webhooks/:webhookId"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/webhooks/:webhookId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/org/:orgId/webhooks/:webhookId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/org/:orgId/webhooks/:webhookId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/org/:orgId/webhooks/:webhookId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/webhooks/:webhookId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/webhooks/:webhookId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/webhooks/:webhookId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/webhooks/:webhookId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/org/:orgId/webhooks/:webhookId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/org/:orgId/webhooks/:webhookId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/org/:orgId/webhooks/:webhookId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/webhooks/:webhookId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/webhooks/:webhookId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/webhooks/:webhookId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/webhooks/:webhookId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/org/:orgId/webhooks/:webhookId');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/webhooks/:webhookId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/webhooks/:webhookId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/webhooks/:webhookId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/webhooks/:webhookId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/org/:orgId/webhooks/:webhookId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/webhooks/:webhookId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/webhooks/:webhookId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/webhooks/:webhookId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/org/:orgId/webhooks/:webhookId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/webhooks/:webhookId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/org/:orgId/webhooks/:webhookId
http DELETE {{baseUrl}}/org/:orgId/webhooks/:webhookId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/org/:orgId/webhooks/:webhookId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/webhooks/:webhookId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET List webhooks
{{baseUrl}}/org/:orgId/webhooks
QUERY PARAMS

orgId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/webhooks");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/webhooks")
require "http/client"

url = "{{baseUrl}}/org/:orgId/webhooks"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/webhooks"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/webhooks");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/webhooks"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/webhooks HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/webhooks")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/webhooks"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/webhooks")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/webhooks")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/webhooks');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/org/:orgId/webhooks'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/webhooks';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/webhooks',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/webhooks")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/webhooks',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/org/:orgId/webhooks'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/webhooks');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/org/:orgId/webhooks'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/webhooks';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/webhooks"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/webhooks" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/webhooks",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/webhooks');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/webhooks');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/webhooks');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/webhooks' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/webhooks' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/webhooks")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/webhooks"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/webhooks"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/webhooks")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/webhooks') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/webhooks";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/webhooks
http GET {{baseUrl}}/org/:orgId/webhooks
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/webhooks
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/webhooks")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Ping a webhook
{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping
QUERY PARAMS

orgId
webhookId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping")
require "http/client"

url = "{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/org/:orgId/webhooks/:webhookId/ping HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping"))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/webhooks/:webhookId/ping',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/org/:orgId/webhooks/:webhookId/ping")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/org/:orgId/webhooks/:webhookId/ping') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping";

    let client = reqwest::Client::new();
    let response = client.post(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/org/:orgId/webhooks/:webhookId/ping
http POST {{baseUrl}}/org/:orgId/webhooks/:webhookId/ping
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/org/:orgId/webhooks/:webhookId/ping
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/webhooks/:webhookId/ping")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Retrieve a webhook
{{baseUrl}}/org/:orgId/webhooks/:webhookId
QUERY PARAMS

orgId
webhookId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/org/:orgId/webhooks/:webhookId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/org/:orgId/webhooks/:webhookId")
require "http/client"

url = "{{baseUrl}}/org/:orgId/webhooks/:webhookId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/org/:orgId/webhooks/:webhookId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/org/:orgId/webhooks/:webhookId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/org/:orgId/webhooks/:webhookId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/org/:orgId/webhooks/:webhookId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/org/:orgId/webhooks/:webhookId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/org/:orgId/webhooks/:webhookId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/org/:orgId/webhooks/:webhookId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/org/:orgId/webhooks/:webhookId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/org/:orgId/webhooks/:webhookId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/webhooks/:webhookId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/org/:orgId/webhooks/:webhookId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/org/:orgId/webhooks/:webhookId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/org/:orgId/webhooks/:webhookId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/org/:orgId/webhooks/:webhookId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/webhooks/:webhookId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/org/:orgId/webhooks/:webhookId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/org/:orgId/webhooks/:webhookId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/org/:orgId/webhooks/:webhookId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/org/:orgId/webhooks/:webhookId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/org/:orgId/webhooks/:webhookId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/org/:orgId/webhooks/:webhookId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/org/:orgId/webhooks/:webhookId');

echo $response->getBody();
setUrl('{{baseUrl}}/org/:orgId/webhooks/:webhookId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/org/:orgId/webhooks/:webhookId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/org/:orgId/webhooks/:webhookId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/org/:orgId/webhooks/:webhookId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/org/:orgId/webhooks/:webhookId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/org/:orgId/webhooks/:webhookId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/org/:orgId/webhooks/:webhookId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/org/:orgId/webhooks/:webhookId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/org/:orgId/webhooks/:webhookId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/org/:orgId/webhooks/:webhookId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/org/:orgId/webhooks/:webhookId
http GET {{baseUrl}}/org/:orgId/webhooks/:webhookId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/org/:orgId/webhooks/:webhookId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/org/:orgId/webhooks/:webhookId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()