POST Create Note
{{baseUrl}}/notes
HEADERS

Accept
Content-Type
BODY json

{
  "description": "",
  "domain": "",
  "target": {
    "id": "",
    "type": "",
    "url": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/notes");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"target\": {\n    \"id\": \"\",\n    \"type\": \"\",\n    \"url\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/notes" {:headers {:accept ""}
                                                  :content-type :json
                                                  :form-params {:description ""
                                                                :domain ""
                                                                :target {:id ""
                                                                         :type ""
                                                                         :url ""}}})
require "http/client"

url = "{{baseUrl}}/notes"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}
reqBody = "{\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"target\": {\n    \"id\": \"\",\n    \"type\": \"\",\n    \"url\": \"\"\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}}/notes"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"target\": {\n    \"id\": \"\",\n    \"type\": \"\",\n    \"url\": \"\"\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}}/notes");
var request = new RestRequest("", Method.Post);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
request.AddParameter("", "{\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"target\": {\n    \"id\": \"\",\n    \"type\": \"\",\n    \"url\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/notes"

	payload := strings.NewReader("{\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"target\": {\n    \"id\": \"\",\n    \"type\": \"\",\n    \"url\": \"\"\n  }\n}")

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
POST /baseUrl/notes HTTP/1.1
Accept: 
Content-Type: 
Host: example.com
Content-Length: 102

{
  "description": "",
  "domain": "",
  "target": {
    "id": "",
    "type": "",
    "url": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/notes")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .setBody("{\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"target\": {\n    \"id\": \"\",\n    \"type\": \"\",\n    \"url\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/notes"))
    .header("accept", "")
    .header("content-type", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"target\": {\n    \"id\": \"\",\n    \"type\": \"\",\n    \"url\": \"\"\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  \"description\": \"\",\n  \"domain\": \"\",\n  \"target\": {\n    \"id\": \"\",\n    \"type\": \"\",\n    \"url\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/notes")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/notes")
  .header("accept", "")
  .header("content-type", "")
  .body("{\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"target\": {\n    \"id\": \"\",\n    \"type\": \"\",\n    \"url\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  description: '',
  domain: '',
  target: {
    id: '',
    type: '',
    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}}/notes');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/notes',
  headers: {accept: '', 'content-type': ''},
  data: {description: '', domain: '', target: {id: '', type: '', url: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/notes';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"description":"","domain":"","target":{"id":"","type":"","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}}/notes',
  method: 'POST',
  headers: {
    accept: '',
    'content-type': ''
  },
  processData: false,
  data: '{\n  "description": "",\n  "domain": "",\n  "target": {\n    "id": "",\n    "type": "",\n    "url": ""\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  \"description\": \"\",\n  \"domain\": \"\",\n  \"target\": {\n    \"id\": \"\",\n    \"type\": \"\",\n    \"url\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/notes")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/notes',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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({description: '', domain: '', target: {id: '', type: '', url: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/notes',
  headers: {accept: '', 'content-type': ''},
  body: {description: '', domain: '', target: {id: '', type: '', 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}}/notes');

req.headers({
  accept: '',
  'content-type': ''
});

req.type('json');
req.send({
  description: '',
  domain: '',
  target: {
    id: '',
    type: '',
    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}}/notes',
  headers: {accept: '', 'content-type': ''},
  data: {description: '', domain: '', target: {id: '', type: '', url: ''}}
};

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

const url = '{{baseUrl}}/notes';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"description":"","domain":"","target":{"id":"","type":"","url":""}}'
};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };
NSDictionary *parameters = @{ @"description": @"",
                              @"domain": @"",
                              @"target": @{ @"id": @"", @"type": @"", @"url": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/notes"]
                                                       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}}/notes" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"target\": {\n    \"id\": \"\",\n    \"type\": \"\",\n    \"url\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/notes",
  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([
    'description' => '',
    'domain' => '',
    'target' => [
        'id' => '',
        'type' => '',
        'url' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/notes', [
  'body' => '{
  "description": "",
  "domain": "",
  "target": {
    "id": "",
    "type": "",
    "url": ""
  }
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/notes');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'description' => '',
  'domain' => '',
  'target' => [
    'id' => '',
    'type' => '',
    'url' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'description' => '',
  'domain' => '',
  'target' => [
    'id' => '',
    'type' => '',
    'url' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/notes');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/notes' -Method POST -Headers $headers -ContentType '' -Body '{
  "description": "",
  "domain": "",
  "target": {
    "id": "",
    "type": "",
    "url": ""
  }
}'
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/notes' -Method POST -Headers $headers -ContentType '' -Body '{
  "description": "",
  "domain": "",
  "target": {
    "id": "",
    "type": "",
    "url": ""
  }
}'
import http.client

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

payload = "{\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"target\": {\n    \"id\": \"\",\n    \"type\": \"\",\n    \"url\": \"\"\n  }\n}"

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("POST", "/baseUrl/notes", payload, headers)

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

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

url = "{{baseUrl}}/notes"

payload = {
    "description": "",
    "domain": "",
    "target": {
        "id": "",
        "type": "",
        "url": ""
    }
}
headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/notes"

payload <- "{\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"target\": {\n    \"id\": \"\",\n    \"type\": \"\",\n    \"url\": \"\"\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}}/notes")

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

request = Net::HTTP::Post.new(url)
request["accept"] = ''
request["content-type"] = ''
request.body = "{\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"target\": {\n    \"id\": \"\",\n    \"type\": \"\",\n    \"url\": \"\"\n  }\n}"

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

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

response = conn.post('/baseUrl/notes') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"target\": {\n    \"id\": \"\",\n    \"type\": \"\",\n    \"url\": \"\"\n  }\n}"
end

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

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

    let payload = json!({
        "description": "",
        "domain": "",
        "target": json!({
            "id": "",
            "type": "",
            "url": ""
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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}}/notes \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "description": "",
  "domain": "",
  "target": {
    "id": "",
    "type": "",
    "url": ""
  }
}'
echo '{
  "description": "",
  "domain": "",
  "target": {
    "id": "",
    "type": "",
    "url": ""
  }
}' |  \
  http POST {{baseUrl}}/notes \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'accept: ' \
  --header 'content-type: ' \
  --body-data '{\n  "description": "",\n  "domain": "",\n  "target": {\n    "id": "",\n    "type": "",\n    "url": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/notes
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]
let parameters = [
  "description": "",
  "domain": "",
  "target": [
    "id": "",
    "type": "",
    "url": ""
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/notes")! 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
RESPONSE BODY json

{
  "createdBy": {
    "email": "pedro.costa@vtex.com.br",
    "id": "fb542e51-5488-4c34-8d17-ed8fcf597a94",
    "key": null,
    "name": "pedro.costa@vtex.com.br"
  },
  "creationDate": "2022-01-11T15:49:17.8785392Z",
  "description": "The order's ID in the marketplace is 786-09",
  "domain": "oms",
  "id": "A08CDB2519AC4FA49EB6099CF72C3642",
  "lastUpdate": "2022-01-11T15:49:17.8785392Z",
  "owner": "c97ef6c8491a439f927cf9918644329f",
  "target": {
    "id": "v964735bdev-01",
    "type": "order",
    "url": "https://basedevmkp.vtexcommercebeta.com.br/admin/checkout/#/orders/v964741bdev-01"
  }
}
GET Get Notes by orderId
{{baseUrl}}/notes
HEADERS

Accept
Content-Type
QUERY PARAMS

target.id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/notes?target.id=");

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

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

(client/get "{{baseUrl}}/notes" {:headers {:accept ""
                                                           :content-type ""}
                                                 :query-params {:target.id ""}})
require "http/client"

url = "{{baseUrl}}/notes?target.id="
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/notes?target.id="),
    Headers =
    {
        { "accept", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/notes?target.id=");
var request = new RestRequest("", Method.Get);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/notes?target.id="

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
GET /baseUrl/notes?target.id= HTTP/1.1
Accept: 
Content-Type: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/notes?target.id=")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/notes?target.id="))
    .header("accept", "")
    .header("content-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}}/notes?target.id=")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/notes?target.id=")
  .header("accept", "")
  .header("content-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}}/notes?target.id=');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/notes',
  params: {'target.id': ''},
  headers: {accept: '', 'content-type': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/notes?target.id=';
const options = {method: 'GET', headers: {accept: '', 'content-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}}/notes?target.id=',
  method: 'GET',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/notes?target.id=")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/notes?target.id=',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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}}/notes',
  qs: {'target.id': ''},
  headers: {accept: '', 'content-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}}/notes');

req.query({
  'target.id': ''
});

req.headers({
  accept: '',
  'content-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}}/notes',
  params: {'target.id': ''},
  headers: {accept: '', 'content-type': ''}
};

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

const url = '{{baseUrl}}/notes?target.id=';
const options = {method: 'GET', headers: {accept: '', 'content-type': ''}};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/notes?target.id="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/notes?target.id=" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/notes?target.id=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/notes?target.id=', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/notes');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'target.id' => ''
]);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/notes');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'target.id' => ''
]));

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/notes?target.id=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/notes?target.id=' -Method GET -Headers $headers
import http.client

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

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("GET", "/baseUrl/notes?target.id=", headers=headers)

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

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

url = "{{baseUrl}}/notes"

querystring = {"target.id":""}

headers = {
    "accept": "",
    "content-type": ""
}

response = requests.get(url, headers=headers, params=querystring)

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

url <- "{{baseUrl}}/notes"

queryString <- list(target.id = "")

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

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

url = URI("{{baseUrl}}/notes?target.id=")

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

request = Net::HTTP::Get.new(url)
request["accept"] = ''
request["content-type"] = ''

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

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

response = conn.get('/baseUrl/notes') do |req|
  req.headers['accept'] = ''
  req.params['target.id'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("target.id", ""),
    ];

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

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/notes?target.id=' \
  --header 'accept: ' \
  --header 'content-type: '
http GET '{{baseUrl}}/notes?target.id=' \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'accept: ' \
  --header 'content-type: ' \
  --output-document \
  - '{{baseUrl}}/notes?target.id='
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/notes?target.id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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
RESPONSE BODY json

{}
GET Retrieve Note
{{baseUrl}}/notes/:noteId
HEADERS

Accept
Content-Type
QUERY PARAMS

noteId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/notes/:noteId");

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

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

(client/get "{{baseUrl}}/notes/:noteId" {:headers {:accept ""
                                                                   :content-type ""}})
require "http/client"

url = "{{baseUrl}}/notes/:noteId"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/notes/:noteId"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
GET /baseUrl/notes/:noteId HTTP/1.1
Accept: 
Content-Type: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/notes/:noteId")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/notes/:noteId"))
    .header("accept", "")
    .header("content-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}}/notes/:noteId")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/notes/:noteId")
  .header("accept", "")
  .header("content-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}}/notes/:noteId');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/notes/:noteId',
  headers: {accept: '', 'content-type': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/notes/:noteId';
const options = {method: 'GET', headers: {accept: '', 'content-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}}/notes/:noteId',
  method: 'GET',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/notes/:noteId")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/notes/:noteId',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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}}/notes/:noteId',
  headers: {accept: '', 'content-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}}/notes/:noteId');

req.headers({
  accept: '',
  'content-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}}/notes/:noteId',
  headers: {accept: '', 'content-type': ''}
};

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

const url = '{{baseUrl}}/notes/:noteId';
const options = {method: 'GET', headers: {accept: '', 'content-type': ''}};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/notes/:noteId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/notes/:noteId" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/notes/:noteId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/notes/:noteId', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/notes/:noteId');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/notes/:noteId');
$request->setRequestMethod('GET');
$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/notes/:noteId' -Method GET -Headers $headers
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/notes/:noteId' -Method GET -Headers $headers
import http.client

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

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("GET", "/baseUrl/notes/:noteId", headers=headers)

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

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

url = "{{baseUrl}}/notes/:noteId"

headers = {
    "accept": "",
    "content-type": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/notes/:noteId"

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

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

url = URI("{{baseUrl}}/notes/:noteId")

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

request = Net::HTTP::Get.new(url)
request["accept"] = ''
request["content-type"] = ''

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

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

response = conn.get('/baseUrl/notes/:noteId') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/notes/:noteId \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/notes/:noteId \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'accept: ' \
  --header 'content-type: ' \
  --output-document \
  - {{baseUrl}}/notes/:noteId
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/notes/:noteId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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
RESPONSE BODY json

{}
POST Add Comment on a Task
{{baseUrl}}/tasks/:taskId/comments
HEADERS

Accept
Content-Type
QUERY PARAMS

taskId
BODY json

{
  "text": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tasks/:taskId/comments");

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

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

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

(client/post "{{baseUrl}}/tasks/:taskId/comments" {:headers {:accept ""}
                                                                   :content-type :json
                                                                   :form-params {:text ""}})
require "http/client"

url = "{{baseUrl}}/tasks/:taskId/comments"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}
reqBody = "{\n  \"text\": \"\"\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}}/tasks/:taskId/comments"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"text\": \"\"\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}}/tasks/:taskId/comments");
var request = new RestRequest("", Method.Post);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
request.AddParameter("", "{\n  \"text\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/tasks/:taskId/comments"

	payload := strings.NewReader("{\n  \"text\": \"\"\n}")

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
POST /baseUrl/tasks/:taskId/comments HTTP/1.1
Accept: 
Content-Type: 
Host: example.com
Content-Length: 16

{
  "text": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tasks/:taskId/comments")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .setBody("{\n  \"text\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/tasks/:taskId/comments"))
    .header("accept", "")
    .header("content-type", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"text\": \"\"\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  \"text\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/tasks/:taskId/comments")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tasks/:taskId/comments")
  .header("accept", "")
  .header("content-type", "")
  .body("{\n  \"text\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  text: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/tasks/:taskId/comments');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/tasks/:taskId/comments',
  headers: {accept: '', 'content-type': ''},
  data: {text: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/tasks/:taskId/comments';
const options = {method: 'POST', headers: {accept: '', 'content-type': ''}, body: '{"text":""}'};

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}}/tasks/:taskId/comments',
  method: 'POST',
  headers: {
    accept: '',
    'content-type': ''
  },
  processData: false,
  data: '{\n  "text": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"text\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/tasks/:taskId/comments")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/tasks/:taskId/comments',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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({text: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/tasks/:taskId/comments',
  headers: {accept: '', 'content-type': ''},
  body: {text: ''},
  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}}/tasks/:taskId/comments');

req.headers({
  accept: '',
  'content-type': ''
});

req.type('json');
req.send({
  text: ''
});

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}}/tasks/:taskId/comments',
  headers: {accept: '', 'content-type': ''},
  data: {text: ''}
};

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

const url = '{{baseUrl}}/tasks/:taskId/comments';
const options = {method: 'POST', headers: {accept: '', 'content-type': ''}, body: '{"text":""}'};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };
NSDictionary *parameters = @{ @"text": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tasks/:taskId/comments"]
                                                       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}}/tasks/:taskId/comments" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"text\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/tasks/:taskId/comments",
  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([
    'text' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/tasks/:taskId/comments', [
  'body' => '{
  "text": ""
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/tasks/:taskId/comments');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'text' => ''
]));
$request->setRequestUrl('{{baseUrl}}/tasks/:taskId/comments');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tasks/:taskId/comments' -Method POST -Headers $headers -ContentType '' -Body '{
  "text": ""
}'
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tasks/:taskId/comments' -Method POST -Headers $headers -ContentType '' -Body '{
  "text": ""
}'
import http.client

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

payload = "{\n  \"text\": \"\"\n}"

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("POST", "/baseUrl/tasks/:taskId/comments", payload, headers)

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

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

url = "{{baseUrl}}/tasks/:taskId/comments"

payload = { "text": "" }
headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/tasks/:taskId/comments"

payload <- "{\n  \"text\": \"\"\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}}/tasks/:taskId/comments")

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

request = Net::HTTP::Post.new(url)
request["accept"] = ''
request["content-type"] = ''
request.body = "{\n  \"text\": \"\"\n}"

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

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

response = conn.post('/baseUrl/tasks/:taskId/comments') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"text\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/tasks/:taskId/comments";

    let payload = json!({"text": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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}}/tasks/:taskId/comments \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "text": ""
}'
echo '{
  "text": ""
}' |  \
  http POST {{baseUrl}}/tasks/:taskId/comments \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'accept: ' \
  --header 'content-type: ' \
  --body-data '{\n  "text": ""\n}' \
  --output-document \
  - {{baseUrl}}/tasks/:taskId/comments
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]
let parameters = ["text": ""] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tasks/:taskId/comments")! 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
RESPONSE BODY json

{}
POST Create Task
{{baseUrl}}/tasks
HEADERS

Content-Type
Accept
BODY json

{
  "assignee": {
    "email": "",
    "id": "",
    "name": ""
  },
  "context": "",
  "description": "",
  "domain": "",
  "dueDate": "",
  "followers": [
    {
      "email": "",
      "id": "",
      "name": ""
    }
  ],
  "name": "",
  "parentTaskId": "",
  "priority": "",
  "surrogateKey": "",
  "target": [
    {
      "id": "",
      "type": "",
      "url": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tasks");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"assignee\": {\n    \"email\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"context\": \"\",\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"dueDate\": \"\",\n  \"followers\": [\n    {\n      \"email\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"parentTaskId\": \"\",\n  \"priority\": \"\",\n  \"surrogateKey\": \"\",\n  \"target\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ]\n}");

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

(client/post "{{baseUrl}}/tasks" {:headers {:accept ""}
                                                  :content-type :json
                                                  :form-params {:assignee {:email ""
                                                                           :id ""
                                                                           :name ""}
                                                                :context ""
                                                                :description ""
                                                                :domain ""
                                                                :dueDate ""
                                                                :followers [{:email ""
                                                                             :id ""
                                                                             :name ""}]
                                                                :name ""
                                                                :parentTaskId ""
                                                                :priority ""
                                                                :surrogateKey ""
                                                                :target [{:id ""
                                                                          :type ""
                                                                          :url ""}]}})
require "http/client"

url = "{{baseUrl}}/tasks"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}
reqBody = "{\n  \"assignee\": {\n    \"email\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"context\": \"\",\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"dueDate\": \"\",\n  \"followers\": [\n    {\n      \"email\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"parentTaskId\": \"\",\n  \"priority\": \"\",\n  \"surrogateKey\": \"\",\n  \"target\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\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}}/tasks"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"assignee\": {\n    \"email\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"context\": \"\",\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"dueDate\": \"\",\n  \"followers\": [\n    {\n      \"email\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"parentTaskId\": \"\",\n  \"priority\": \"\",\n  \"surrogateKey\": \"\",\n  \"target\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\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}}/tasks");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
request.AddParameter("", "{\n  \"assignee\": {\n    \"email\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"context\": \"\",\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"dueDate\": \"\",\n  \"followers\": [\n    {\n      \"email\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"parentTaskId\": \"\",\n  \"priority\": \"\",\n  \"surrogateKey\": \"\",\n  \"target\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/tasks"

	payload := strings.NewReader("{\n  \"assignee\": {\n    \"email\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"context\": \"\",\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"dueDate\": \"\",\n  \"followers\": [\n    {\n      \"email\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"parentTaskId\": \"\",\n  \"priority\": \"\",\n  \"surrogateKey\": \"\",\n  \"target\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ]\n}")

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

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
POST /baseUrl/tasks HTTP/1.1
Content-Type: 
Accept: 
Host: example.com
Content-Length: 383

{
  "assignee": {
    "email": "",
    "id": "",
    "name": ""
  },
  "context": "",
  "description": "",
  "domain": "",
  "dueDate": "",
  "followers": [
    {
      "email": "",
      "id": "",
      "name": ""
    }
  ],
  "name": "",
  "parentTaskId": "",
  "priority": "",
  "surrogateKey": "",
  "target": [
    {
      "id": "",
      "type": "",
      "url": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tasks")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .setBody("{\n  \"assignee\": {\n    \"email\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"context\": \"\",\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"dueDate\": \"\",\n  \"followers\": [\n    {\n      \"email\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"parentTaskId\": \"\",\n  \"priority\": \"\",\n  \"surrogateKey\": \"\",\n  \"target\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/tasks"))
    .header("content-type", "")
    .header("accept", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"assignee\": {\n    \"email\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"context\": \"\",\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"dueDate\": \"\",\n  \"followers\": [\n    {\n      \"email\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"parentTaskId\": \"\",\n  \"priority\": \"\",\n  \"surrogateKey\": \"\",\n  \"target\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\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  \"assignee\": {\n    \"email\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"context\": \"\",\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"dueDate\": \"\",\n  \"followers\": [\n    {\n      \"email\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"parentTaskId\": \"\",\n  \"priority\": \"\",\n  \"surrogateKey\": \"\",\n  \"target\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/tasks")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tasks")
  .header("content-type", "")
  .header("accept", "")
  .body("{\n  \"assignee\": {\n    \"email\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"context\": \"\",\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"dueDate\": \"\",\n  \"followers\": [\n    {\n      \"email\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"parentTaskId\": \"\",\n  \"priority\": \"\",\n  \"surrogateKey\": \"\",\n  \"target\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  assignee: {
    email: '',
    id: '',
    name: ''
  },
  context: '',
  description: '',
  domain: '',
  dueDate: '',
  followers: [
    {
      email: '',
      id: '',
      name: ''
    }
  ],
  name: '',
  parentTaskId: '',
  priority: '',
  surrogateKey: '',
  target: [
    {
      id: '',
      type: '',
      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}}/tasks');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/tasks',
  headers: {'content-type': '', accept: ''},
  data: {
    assignee: {email: '', id: '', name: ''},
    context: '',
    description: '',
    domain: '',
    dueDate: '',
    followers: [{email: '', id: '', name: ''}],
    name: '',
    parentTaskId: '',
    priority: '',
    surrogateKey: '',
    target: [{id: '', type: '', url: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/tasks';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"assignee":{"email":"","id":"","name":""},"context":"","description":"","domain":"","dueDate":"","followers":[{"email":"","id":"","name":""}],"name":"","parentTaskId":"","priority":"","surrogateKey":"","target":[{"id":"","type":"","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}}/tasks',
  method: 'POST',
  headers: {
    'content-type': '',
    accept: ''
  },
  processData: false,
  data: '{\n  "assignee": {\n    "email": "",\n    "id": "",\n    "name": ""\n  },\n  "context": "",\n  "description": "",\n  "domain": "",\n  "dueDate": "",\n  "followers": [\n    {\n      "email": "",\n      "id": "",\n      "name": ""\n    }\n  ],\n  "name": "",\n  "parentTaskId": "",\n  "priority": "",\n  "surrogateKey": "",\n  "target": [\n    {\n      "id": "",\n      "type": "",\n      "url": ""\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  \"assignee\": {\n    \"email\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"context\": \"\",\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"dueDate\": \"\",\n  \"followers\": [\n    {\n      \"email\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"parentTaskId\": \"\",\n  \"priority\": \"\",\n  \"surrogateKey\": \"\",\n  \"target\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/tasks")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/tasks',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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({
  assignee: {email: '', id: '', name: ''},
  context: '',
  description: '',
  domain: '',
  dueDate: '',
  followers: [{email: '', id: '', name: ''}],
  name: '',
  parentTaskId: '',
  priority: '',
  surrogateKey: '',
  target: [{id: '', type: '', url: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/tasks',
  headers: {'content-type': '', accept: ''},
  body: {
    assignee: {email: '', id: '', name: ''},
    context: '',
    description: '',
    domain: '',
    dueDate: '',
    followers: [{email: '', id: '', name: ''}],
    name: '',
    parentTaskId: '',
    priority: '',
    surrogateKey: '',
    target: [{id: '', type: '', 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}}/tasks');

req.headers({
  'content-type': '',
  accept: ''
});

req.type('json');
req.send({
  assignee: {
    email: '',
    id: '',
    name: ''
  },
  context: '',
  description: '',
  domain: '',
  dueDate: '',
  followers: [
    {
      email: '',
      id: '',
      name: ''
    }
  ],
  name: '',
  parentTaskId: '',
  priority: '',
  surrogateKey: '',
  target: [
    {
      id: '',
      type: '',
      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}}/tasks',
  headers: {'content-type': '', accept: ''},
  data: {
    assignee: {email: '', id: '', name: ''},
    context: '',
    description: '',
    domain: '',
    dueDate: '',
    followers: [{email: '', id: '', name: ''}],
    name: '',
    parentTaskId: '',
    priority: '',
    surrogateKey: '',
    target: [{id: '', type: '', url: ''}]
  }
};

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

const url = '{{baseUrl}}/tasks';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"assignee":{"email":"","id":"","name":""},"context":"","description":"","domain":"","dueDate":"","followers":[{"email":"","id":"","name":""}],"name":"","parentTaskId":"","priority":"","surrogateKey":"","target":[{"id":"","type":"","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": @"",
                           @"accept": @"" };
NSDictionary *parameters = @{ @"assignee": @{ @"email": @"", @"id": @"", @"name": @"" },
                              @"context": @"",
                              @"description": @"",
                              @"domain": @"",
                              @"dueDate": @"",
                              @"followers": @[ @{ @"email": @"", @"id": @"", @"name": @"" } ],
                              @"name": @"",
                              @"parentTaskId": @"",
                              @"priority": @"",
                              @"surrogateKey": @"",
                              @"target": @[ @{ @"id": @"", @"type": @"", @"url": @"" } ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tasks"]
                                                       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}}/tasks" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"assignee\": {\n    \"email\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"context\": \"\",\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"dueDate\": \"\",\n  \"followers\": [\n    {\n      \"email\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"parentTaskId\": \"\",\n  \"priority\": \"\",\n  \"surrogateKey\": \"\",\n  \"target\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/tasks",
  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([
    'assignee' => [
        'email' => '',
        'id' => '',
        'name' => ''
    ],
    'context' => '',
    'description' => '',
    'domain' => '',
    'dueDate' => '',
    'followers' => [
        [
                'email' => '',
                'id' => '',
                'name' => ''
        ]
    ],
    'name' => '',
    'parentTaskId' => '',
    'priority' => '',
    'surrogateKey' => '',
    'target' => [
        [
                'id' => '',
                'type' => '',
                'url' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/tasks', [
  'body' => '{
  "assignee": {
    "email": "",
    "id": "",
    "name": ""
  },
  "context": "",
  "description": "",
  "domain": "",
  "dueDate": "",
  "followers": [
    {
      "email": "",
      "id": "",
      "name": ""
    }
  ],
  "name": "",
  "parentTaskId": "",
  "priority": "",
  "surrogateKey": "",
  "target": [
    {
      "id": "",
      "type": "",
      "url": ""
    }
  ]
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/tasks');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'assignee' => [
    'email' => '',
    'id' => '',
    'name' => ''
  ],
  'context' => '',
  'description' => '',
  'domain' => '',
  'dueDate' => '',
  'followers' => [
    [
        'email' => '',
        'id' => '',
        'name' => ''
    ]
  ],
  'name' => '',
  'parentTaskId' => '',
  'priority' => '',
  'surrogateKey' => '',
  'target' => [
    [
        'id' => '',
        'type' => '',
        'url' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'assignee' => [
    'email' => '',
    'id' => '',
    'name' => ''
  ],
  'context' => '',
  'description' => '',
  'domain' => '',
  'dueDate' => '',
  'followers' => [
    [
        'email' => '',
        'id' => '',
        'name' => ''
    ]
  ],
  'name' => '',
  'parentTaskId' => '',
  'priority' => '',
  'surrogateKey' => '',
  'target' => [
    [
        'id' => '',
        'type' => '',
        'url' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/tasks');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tasks' -Method POST -Headers $headers -ContentType '' -Body '{
  "assignee": {
    "email": "",
    "id": "",
    "name": ""
  },
  "context": "",
  "description": "",
  "domain": "",
  "dueDate": "",
  "followers": [
    {
      "email": "",
      "id": "",
      "name": ""
    }
  ],
  "name": "",
  "parentTaskId": "",
  "priority": "",
  "surrogateKey": "",
  "target": [
    {
      "id": "",
      "type": "",
      "url": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tasks' -Method POST -Headers $headers -ContentType '' -Body '{
  "assignee": {
    "email": "",
    "id": "",
    "name": ""
  },
  "context": "",
  "description": "",
  "domain": "",
  "dueDate": "",
  "followers": [
    {
      "email": "",
      "id": "",
      "name": ""
    }
  ],
  "name": "",
  "parentTaskId": "",
  "priority": "",
  "surrogateKey": "",
  "target": [
    {
      "id": "",
      "type": "",
      "url": ""
    }
  ]
}'
import http.client

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

payload = "{\n  \"assignee\": {\n    \"email\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"context\": \"\",\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"dueDate\": \"\",\n  \"followers\": [\n    {\n      \"email\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"parentTaskId\": \"\",\n  \"priority\": \"\",\n  \"surrogateKey\": \"\",\n  \"target\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ]\n}"

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("POST", "/baseUrl/tasks", payload, headers)

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

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

url = "{{baseUrl}}/tasks"

payload = {
    "assignee": {
        "email": "",
        "id": "",
        "name": ""
    },
    "context": "",
    "description": "",
    "domain": "",
    "dueDate": "",
    "followers": [
        {
            "email": "",
            "id": "",
            "name": ""
        }
    ],
    "name": "",
    "parentTaskId": "",
    "priority": "",
    "surrogateKey": "",
    "target": [
        {
            "id": "",
            "type": "",
            "url": ""
        }
    ]
}
headers = {
    "content-type": "",
    "accept": ""
}

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

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

url <- "{{baseUrl}}/tasks"

payload <- "{\n  \"assignee\": {\n    \"email\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"context\": \"\",\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"dueDate\": \"\",\n  \"followers\": [\n    {\n      \"email\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"parentTaskId\": \"\",\n  \"priority\": \"\",\n  \"surrogateKey\": \"\",\n  \"target\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\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}}/tasks")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = ''
request["accept"] = ''
request.body = "{\n  \"assignee\": {\n    \"email\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"context\": \"\",\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"dueDate\": \"\",\n  \"followers\": [\n    {\n      \"email\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"parentTaskId\": \"\",\n  \"priority\": \"\",\n  \"surrogateKey\": \"\",\n  \"target\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ]\n}"

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

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

response = conn.post('/baseUrl/tasks') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"assignee\": {\n    \"email\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"context\": \"\",\n  \"description\": \"\",\n  \"domain\": \"\",\n  \"dueDate\": \"\",\n  \"followers\": [\n    {\n      \"email\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"parentTaskId\": \"\",\n  \"priority\": \"\",\n  \"surrogateKey\": \"\",\n  \"target\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\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}}/tasks";

    let payload = json!({
        "assignee": json!({
            "email": "",
            "id": "",
            "name": ""
        }),
        "context": "",
        "description": "",
        "domain": "",
        "dueDate": "",
        "followers": (
            json!({
                "email": "",
                "id": "",
                "name": ""
            })
        ),
        "name": "",
        "parentTaskId": "",
        "priority": "",
        "surrogateKey": "",
        "target": (
            json!({
                "id": "",
                "type": "",
                "url": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "".parse().unwrap());
    headers.insert("accept", "".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}}/tasks \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "assignee": {
    "email": "",
    "id": "",
    "name": ""
  },
  "context": "",
  "description": "",
  "domain": "",
  "dueDate": "",
  "followers": [
    {
      "email": "",
      "id": "",
      "name": ""
    }
  ],
  "name": "",
  "parentTaskId": "",
  "priority": "",
  "surrogateKey": "",
  "target": [
    {
      "id": "",
      "type": "",
      "url": ""
    }
  ]
}'
echo '{
  "assignee": {
    "email": "",
    "id": "",
    "name": ""
  },
  "context": "",
  "description": "",
  "domain": "",
  "dueDate": "",
  "followers": [
    {
      "email": "",
      "id": "",
      "name": ""
    }
  ],
  "name": "",
  "parentTaskId": "",
  "priority": "",
  "surrogateKey": "",
  "target": [
    {
      "id": "",
      "type": "",
      "url": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/tasks \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'content-type: ' \
  --header 'accept: ' \
  --body-data '{\n  "assignee": {\n    "email": "",\n    "id": "",\n    "name": ""\n  },\n  "context": "",\n  "description": "",\n  "domain": "",\n  "dueDate": "",\n  "followers": [\n    {\n      "email": "",\n      "id": "",\n      "name": ""\n    }\n  ],\n  "name": "",\n  "parentTaskId": "",\n  "priority": "",\n  "surrogateKey": "",\n  "target": [\n    {\n      "id": "",\n      "type": "",\n      "url": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/tasks
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]
let parameters = [
  "assignee": [
    "email": "",
    "id": "",
    "name": ""
  ],
  "context": "",
  "description": "",
  "domain": "",
  "dueDate": "",
  "followers": [
    [
      "email": "",
      "id": "",
      "name": ""
    ]
  ],
  "name": "",
  "parentTaskId": "",
  "priority": "",
  "surrogateKey": "",
  "target": [
    [
      "id": "",
      "type": "",
      "url": ""
    ]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tasks")! 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
RESPONSE BODY json

{}
GET List tasks
{{baseUrl}}/tasks
HEADERS

Accept
Content-Type
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tasks");

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

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

(client/get "{{baseUrl}}/tasks" {:headers {:accept ""
                                                           :content-type ""}})
require "http/client"

url = "{{baseUrl}}/tasks"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/tasks"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
GET /baseUrl/tasks HTTP/1.1
Accept: 
Content-Type: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tasks")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/tasks"))
    .header("accept", "")
    .header("content-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}}/tasks")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tasks")
  .header("accept", "")
  .header("content-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}}/tasks');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/tasks',
  headers: {accept: '', 'content-type': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/tasks';
const options = {method: 'GET', headers: {accept: '', 'content-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}}/tasks',
  method: 'GET',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/tasks")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/tasks',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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}}/tasks',
  headers: {accept: '', 'content-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}}/tasks');

req.headers({
  accept: '',
  'content-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}}/tasks',
  headers: {accept: '', 'content-type': ''}
};

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

const url = '{{baseUrl}}/tasks';
const options = {method: 'GET', headers: {accept: '', 'content-type': ''}};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tasks"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/tasks" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/tasks",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/tasks', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/tasks');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/tasks');
$request->setRequestMethod('GET');
$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tasks' -Method GET -Headers $headers
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tasks' -Method GET -Headers $headers
import http.client

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

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("GET", "/baseUrl/tasks", headers=headers)

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

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

url = "{{baseUrl}}/tasks"

headers = {
    "accept": "",
    "content-type": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/tasks"

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

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

url = URI("{{baseUrl}}/tasks")

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

request = Net::HTTP::Get.new(url)
request["accept"] = ''
request["content-type"] = ''

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

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

response = conn.get('/baseUrl/tasks') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/tasks \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/tasks \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'accept: ' \
  --header 'content-type: ' \
  --output-document \
  - {{baseUrl}}/tasks
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]

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

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
RESPONSE BODY json

{}
GET Retrieve Task
{{baseUrl}}/tasks/:taskId
HEADERS

Accept
Content-Type
QUERY PARAMS

taskId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tasks/:taskId");

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

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

(client/get "{{baseUrl}}/tasks/:taskId" {:headers {:accept ""
                                                                   :content-type ""}})
require "http/client"

url = "{{baseUrl}}/tasks/:taskId"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/tasks/:taskId"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
GET /baseUrl/tasks/:taskId HTTP/1.1
Accept: 
Content-Type: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tasks/:taskId")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/tasks/:taskId"))
    .header("accept", "")
    .header("content-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}}/tasks/:taskId")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tasks/:taskId")
  .header("accept", "")
  .header("content-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}}/tasks/:taskId');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/tasks/:taskId',
  headers: {accept: '', 'content-type': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/tasks/:taskId';
const options = {method: 'GET', headers: {accept: '', 'content-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}}/tasks/:taskId',
  method: 'GET',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/tasks/:taskId")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/tasks/:taskId',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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}}/tasks/:taskId',
  headers: {accept: '', 'content-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}}/tasks/:taskId');

req.headers({
  accept: '',
  'content-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}}/tasks/:taskId',
  headers: {accept: '', 'content-type': ''}
};

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

const url = '{{baseUrl}}/tasks/:taskId';
const options = {method: 'GET', headers: {accept: '', 'content-type': ''}};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tasks/:taskId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/tasks/:taskId" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/tasks/:taskId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/tasks/:taskId', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/tasks/:taskId');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/tasks/:taskId');
$request->setRequestMethod('GET');
$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tasks/:taskId' -Method GET -Headers $headers
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tasks/:taskId' -Method GET -Headers $headers
import http.client

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

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("GET", "/baseUrl/tasks/:taskId", headers=headers)

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

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

url = "{{baseUrl}}/tasks/:taskId"

headers = {
    "accept": "",
    "content-type": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/tasks/:taskId"

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

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

url = URI("{{baseUrl}}/tasks/:taskId")

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

request = Net::HTTP::Get.new(url)
request["accept"] = ''
request["content-type"] = ''

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

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

response = conn.get('/baseUrl/tasks/:taskId') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/tasks/:taskId \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/tasks/:taskId \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'accept: ' \
  --header 'content-type: ' \
  --output-document \
  - {{baseUrl}}/tasks/:taskId
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tasks/:taskId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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
RESPONSE BODY json

{}
PUT Update Task
{{baseUrl}}/tasks/:taskId
HEADERS

Accept
Content-Type
QUERY PARAMS

taskId
BODY json

{
  "status": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tasks/:taskId");

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

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

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

(client/put "{{baseUrl}}/tasks/:taskId" {:headers {:accept ""}
                                                         :content-type :json
                                                         :form-params {:status ""}})
require "http/client"

url = "{{baseUrl}}/tasks/:taskId"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}
reqBody = "{\n  \"status\": \"\"\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}}/tasks/:taskId"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"status\": \"\"\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}}/tasks/:taskId");
var request = new RestRequest("", Method.Put);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
request.AddParameter("", "{\n  \"status\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/tasks/:taskId"

	payload := strings.NewReader("{\n  \"status\": \"\"\n}")

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
PUT /baseUrl/tasks/:taskId HTTP/1.1
Accept: 
Content-Type: 
Host: example.com
Content-Length: 18

{
  "status": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/tasks/:taskId")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .setBody("{\n  \"status\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/tasks/:taskId"))
    .header("accept", "")
    .header("content-type", "")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"status\": \"\"\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  \"status\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/tasks/:taskId")
  .put(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/tasks/:taskId")
  .header("accept", "")
  .header("content-type", "")
  .body("{\n  \"status\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  status: ''
});

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

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

xhr.open('PUT', '{{baseUrl}}/tasks/:taskId');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/tasks/:taskId',
  headers: {accept: '', 'content-type': ''},
  data: {status: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/tasks/:taskId';
const options = {
  method: 'PUT',
  headers: {accept: '', 'content-type': ''},
  body: '{"status":""}'
};

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}}/tasks/:taskId',
  method: 'PUT',
  headers: {
    accept: '',
    'content-type': ''
  },
  processData: false,
  data: '{\n  "status": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"status\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/tasks/:taskId")
  .put(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/tasks/:taskId',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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({status: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/tasks/:taskId',
  headers: {accept: '', 'content-type': ''},
  body: {status: ''},
  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}}/tasks/:taskId');

req.headers({
  accept: '',
  'content-type': ''
});

req.type('json');
req.send({
  status: ''
});

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}}/tasks/:taskId',
  headers: {accept: '', 'content-type': ''},
  data: {status: ''}
};

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

const url = '{{baseUrl}}/tasks/:taskId';
const options = {
  method: 'PUT',
  headers: {accept: '', 'content-type': ''},
  body: '{"status":""}'
};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };
NSDictionary *parameters = @{ @"status": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tasks/:taskId"]
                                                       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}}/tasks/:taskId" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"status\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/tasks/:taskId",
  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([
    'status' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/tasks/:taskId', [
  'body' => '{
  "status": ""
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/tasks/:taskId');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'status' => ''
]));
$request->setRequestUrl('{{baseUrl}}/tasks/:taskId');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tasks/:taskId' -Method PUT -Headers $headers -ContentType '' -Body '{
  "status": ""
}'
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tasks/:taskId' -Method PUT -Headers $headers -ContentType '' -Body '{
  "status": ""
}'
import http.client

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

payload = "{\n  \"status\": \"\"\n}"

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("PUT", "/baseUrl/tasks/:taskId", payload, headers)

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

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

url = "{{baseUrl}}/tasks/:taskId"

payload = { "status": "" }
headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/tasks/:taskId"

payload <- "{\n  \"status\": \"\"\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}}/tasks/:taskId")

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

request = Net::HTTP::Put.new(url)
request["accept"] = ''
request["content-type"] = ''
request.body = "{\n  \"status\": \"\"\n}"

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

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

response = conn.put('/baseUrl/tasks/:taskId') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"status\": \"\"\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}}/tasks/:taskId";

    let payload = json!({"status": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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}}/tasks/:taskId \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "status": ""
}'
echo '{
  "status": ""
}' |  \
  http PUT {{baseUrl}}/tasks/:taskId \
  accept:'' \
  content-type:''
wget --quiet \
  --method PUT \
  --header 'accept: ' \
  --header 'content-type: ' \
  --body-data '{\n  "status": ""\n}' \
  --output-document \
  - {{baseUrl}}/tasks/:taskId
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]
let parameters = ["status": ""] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tasks/:taskId")! 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
RESPONSE BODY json

{}