POST post -yorkie.v1.ClusterService-CompactDocument
{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument
BODY json

{
  "documentId": "",
  "documentKey": "",
  "projectId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}");

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

(client/post "{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument" {:content-type :json
                                                                                     :form-params {:documentId ""
                                                                                                   :documentKey ""
                                                                                                   :projectId ""}})
require "http/client"

url = "{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\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}}/yorkie.v1.ClusterService/CompactDocument"),
    Content = new StringContent("{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\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}}/yorkie.v1.ClusterService/CompactDocument");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument"

	payload := strings.NewReader("{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/yorkie.v1.ClusterService/CompactDocument HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 62

{
  "documentId": "",
  "documentKey": "",
  "projectId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\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  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument")
  .header("content-type", "application/json")
  .body("{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  documentId: '',
  documentKey: '',
  projectId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument',
  headers: {'content-type': 'application/json'},
  data: {documentId: '', documentKey: '', projectId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"documentId":"","documentKey":"","projectId":""}'
};

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}}/yorkie.v1.ClusterService/CompactDocument',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "documentId": "",\n  "documentKey": "",\n  "projectId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/yorkie.v1.ClusterService/CompactDocument',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({documentId: '', documentKey: '', projectId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument',
  headers: {'content-type': 'application/json'},
  body: {documentId: '', documentKey: '', projectId: ''},
  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}}/yorkie.v1.ClusterService/CompactDocument');

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

req.type('json');
req.send({
  documentId: '',
  documentKey: '',
  projectId: ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument',
  headers: {'content-type': 'application/json'},
  data: {documentId: '', documentKey: '', projectId: ''}
};

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

const url = '{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"documentId":"","documentKey":"","projectId":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"documentId": @"",
                              @"documentKey": @"",
                              @"projectId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument"]
                                                       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}}/yorkie.v1.ClusterService/CompactDocument" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument",
  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([
    'documentId' => '',
    'documentKey' => '',
    'projectId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument', [
  'body' => '{
  "documentId": "",
  "documentKey": "",
  "projectId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'documentId' => '',
  'documentKey' => '',
  'projectId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'documentId' => '',
  'documentKey' => '',
  'projectId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "documentId": "",
  "documentKey": "",
  "projectId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "documentId": "",
  "documentKey": "",
  "projectId": ""
}'
import http.client

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

payload = "{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}"

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

conn.request("POST", "/baseUrl/yorkie.v1.ClusterService/CompactDocument", payload, headers)

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

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

url = "{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument"

payload = {
    "documentId": "",
    "documentKey": "",
    "projectId": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument"

payload <- "{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\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}}/yorkie.v1.ClusterService/CompactDocument")

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

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

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

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

response = conn.post('/baseUrl/yorkie.v1.ClusterService/CompactDocument') do |req|
  req.body = "{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/yorkie.v1.ClusterService/CompactDocument";

    let payload = json!({
        "documentId": "",
        "documentKey": "",
        "projectId": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/yorkie.v1.ClusterService/CompactDocument \
  --header 'content-type: application/json' \
  --data '{
  "documentId": "",
  "documentKey": "",
  "projectId": ""
}'
echo '{
  "documentId": "",
  "documentKey": "",
  "projectId": ""
}' |  \
  http POST {{baseUrl}}/yorkie.v1.ClusterService/CompactDocument \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "documentId": "",\n  "documentKey": "",\n  "projectId": ""\n}' \
  --output-document \
  - {{baseUrl}}/yorkie.v1.ClusterService/CompactDocument
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "documentId": "",
  "documentKey": "",
  "projectId": ""
] as [String : Any]

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

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

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

dataTask.resume()
POST post -yorkie.v1.ClusterService-DetachDocument
{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument
BODY json

{
  "clientId": "",
  "documentId": "",
  "documentKey": "",
  "project": {
    "allowedOrigins": [],
    "authWebhookMaxRetries": "",
    "authWebhookMaxWaitInterval": "",
    "authWebhookMethods": [],
    "authWebhookMinWaitInterval": "",
    "authWebhookRequestTimeout": "",
    "authWebhookUrl": "",
    "clientDeactivateThreshold": "",
    "createdAt": "",
    "eventWebhookEvents": [],
    "eventWebhookMaxRetries": "",
    "eventWebhookMaxWaitInterval": "",
    "eventWebhookMinWaitInterval": "",
    "eventWebhookRequestTimeout": "",
    "eventWebhookUrl": "",
    "id": "",
    "maxAttachmentsPerDocument": 0,
    "maxSizePerDocument": 0,
    "maxSubscribersPerDocument": 0,
    "name": "",
    "publicKey": "",
    "removeOnDetach": false,
    "secretKey": "",
    "snapshotInterval": "",
    "snapshotThreshold": "",
    "updatedAt": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"clientId\": \"\",\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument" {:content-type :json
                                                                                    :form-params {:clientId ""
                                                                                                  :documentId ""
                                                                                                  :documentKey ""
                                                                                                  :project {:allowedOrigins []
                                                                                                            :authWebhookMaxRetries ""
                                                                                                            :authWebhookMaxWaitInterval ""
                                                                                                            :authWebhookMethods []
                                                                                                            :authWebhookMinWaitInterval ""
                                                                                                            :authWebhookRequestTimeout ""
                                                                                                            :authWebhookUrl ""
                                                                                                            :clientDeactivateThreshold ""
                                                                                                            :createdAt ""
                                                                                                            :eventWebhookEvents []
                                                                                                            :eventWebhookMaxRetries ""
                                                                                                            :eventWebhookMaxWaitInterval ""
                                                                                                            :eventWebhookMinWaitInterval ""
                                                                                                            :eventWebhookRequestTimeout ""
                                                                                                            :eventWebhookUrl ""
                                                                                                            :id ""
                                                                                                            :maxAttachmentsPerDocument 0
                                                                                                            :maxSizePerDocument 0
                                                                                                            :maxSubscribersPerDocument 0
                                                                                                            :name ""
                                                                                                            :publicKey ""
                                                                                                            :removeOnDetach false
                                                                                                            :secretKey ""
                                                                                                            :snapshotInterval ""
                                                                                                            :snapshotThreshold ""
                                                                                                            :updatedAt ""}}})
require "http/client"

url = "{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"clientId\": \"\",\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\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}}/yorkie.v1.ClusterService/DetachDocument"),
    Content = new StringContent("{\n  \"clientId\": \"\",\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\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}}/yorkie.v1.ClusterService/DetachDocument");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"clientId\": \"\",\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument"

	payload := strings.NewReader("{\n  \"clientId\": \"\",\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}")

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

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

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

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

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

}
POST /baseUrl/yorkie.v1.ClusterService/DetachDocument HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 853

{
  "clientId": "",
  "documentId": "",
  "documentKey": "",
  "project": {
    "allowedOrigins": [],
    "authWebhookMaxRetries": "",
    "authWebhookMaxWaitInterval": "",
    "authWebhookMethods": [],
    "authWebhookMinWaitInterval": "",
    "authWebhookRequestTimeout": "",
    "authWebhookUrl": "",
    "clientDeactivateThreshold": "",
    "createdAt": "",
    "eventWebhookEvents": [],
    "eventWebhookMaxRetries": "",
    "eventWebhookMaxWaitInterval": "",
    "eventWebhookMinWaitInterval": "",
    "eventWebhookRequestTimeout": "",
    "eventWebhookUrl": "",
    "id": "",
    "maxAttachmentsPerDocument": 0,
    "maxSizePerDocument": 0,
    "maxSubscribersPerDocument": 0,
    "name": "",
    "publicKey": "",
    "removeOnDetach": false,
    "secretKey": "",
    "snapshotInterval": "",
    "snapshotThreshold": "",
    "updatedAt": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"clientId\": \"\",\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"clientId\": \"\",\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\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  \"clientId\": \"\",\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument")
  .header("content-type", "application/json")
  .body("{\n  \"clientId\": \"\",\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  clientId: '',
  documentId: '',
  documentKey: '',
  project: {
    allowedOrigins: [],
    authWebhookMaxRetries: '',
    authWebhookMaxWaitInterval: '',
    authWebhookMethods: [],
    authWebhookMinWaitInterval: '',
    authWebhookRequestTimeout: '',
    authWebhookUrl: '',
    clientDeactivateThreshold: '',
    createdAt: '',
    eventWebhookEvents: [],
    eventWebhookMaxRetries: '',
    eventWebhookMaxWaitInterval: '',
    eventWebhookMinWaitInterval: '',
    eventWebhookRequestTimeout: '',
    eventWebhookUrl: '',
    id: '',
    maxAttachmentsPerDocument: 0,
    maxSizePerDocument: 0,
    maxSubscribersPerDocument: 0,
    name: '',
    publicKey: '',
    removeOnDetach: false,
    secretKey: '',
    snapshotInterval: '',
    snapshotThreshold: '',
    updatedAt: ''
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument',
  headers: {'content-type': 'application/json'},
  data: {
    clientId: '',
    documentId: '',
    documentKey: '',
    project: {
      allowedOrigins: [],
      authWebhookMaxRetries: '',
      authWebhookMaxWaitInterval: '',
      authWebhookMethods: [],
      authWebhookMinWaitInterval: '',
      authWebhookRequestTimeout: '',
      authWebhookUrl: '',
      clientDeactivateThreshold: '',
      createdAt: '',
      eventWebhookEvents: [],
      eventWebhookMaxRetries: '',
      eventWebhookMaxWaitInterval: '',
      eventWebhookMinWaitInterval: '',
      eventWebhookRequestTimeout: '',
      eventWebhookUrl: '',
      id: '',
      maxAttachmentsPerDocument: 0,
      maxSizePerDocument: 0,
      maxSubscribersPerDocument: 0,
      name: '',
      publicKey: '',
      removeOnDetach: false,
      secretKey: '',
      snapshotInterval: '',
      snapshotThreshold: '',
      updatedAt: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"clientId":"","documentId":"","documentKey":"","project":{"allowedOrigins":[],"authWebhookMaxRetries":"","authWebhookMaxWaitInterval":"","authWebhookMethods":[],"authWebhookMinWaitInterval":"","authWebhookRequestTimeout":"","authWebhookUrl":"","clientDeactivateThreshold":"","createdAt":"","eventWebhookEvents":[],"eventWebhookMaxRetries":"","eventWebhookMaxWaitInterval":"","eventWebhookMinWaitInterval":"","eventWebhookRequestTimeout":"","eventWebhookUrl":"","id":"","maxAttachmentsPerDocument":0,"maxSizePerDocument":0,"maxSubscribersPerDocument":0,"name":"","publicKey":"","removeOnDetach":false,"secretKey":"","snapshotInterval":"","snapshotThreshold":"","updatedAt":""}}'
};

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}}/yorkie.v1.ClusterService/DetachDocument',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "clientId": "",\n  "documentId": "",\n  "documentKey": "",\n  "project": {\n    "allowedOrigins": [],\n    "authWebhookMaxRetries": "",\n    "authWebhookMaxWaitInterval": "",\n    "authWebhookMethods": [],\n    "authWebhookMinWaitInterval": "",\n    "authWebhookRequestTimeout": "",\n    "authWebhookUrl": "",\n    "clientDeactivateThreshold": "",\n    "createdAt": "",\n    "eventWebhookEvents": [],\n    "eventWebhookMaxRetries": "",\n    "eventWebhookMaxWaitInterval": "",\n    "eventWebhookMinWaitInterval": "",\n    "eventWebhookRequestTimeout": "",\n    "eventWebhookUrl": "",\n    "id": "",\n    "maxAttachmentsPerDocument": 0,\n    "maxSizePerDocument": 0,\n    "maxSubscribersPerDocument": 0,\n    "name": "",\n    "publicKey": "",\n    "removeOnDetach": false,\n    "secretKey": "",\n    "snapshotInterval": "",\n    "snapshotThreshold": "",\n    "updatedAt": ""\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  \"clientId\": \"\",\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/yorkie.v1.ClusterService/DetachDocument',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  clientId: '',
  documentId: '',
  documentKey: '',
  project: {
    allowedOrigins: [],
    authWebhookMaxRetries: '',
    authWebhookMaxWaitInterval: '',
    authWebhookMethods: [],
    authWebhookMinWaitInterval: '',
    authWebhookRequestTimeout: '',
    authWebhookUrl: '',
    clientDeactivateThreshold: '',
    createdAt: '',
    eventWebhookEvents: [],
    eventWebhookMaxRetries: '',
    eventWebhookMaxWaitInterval: '',
    eventWebhookMinWaitInterval: '',
    eventWebhookRequestTimeout: '',
    eventWebhookUrl: '',
    id: '',
    maxAttachmentsPerDocument: 0,
    maxSizePerDocument: 0,
    maxSubscribersPerDocument: 0,
    name: '',
    publicKey: '',
    removeOnDetach: false,
    secretKey: '',
    snapshotInterval: '',
    snapshotThreshold: '',
    updatedAt: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument',
  headers: {'content-type': 'application/json'},
  body: {
    clientId: '',
    documentId: '',
    documentKey: '',
    project: {
      allowedOrigins: [],
      authWebhookMaxRetries: '',
      authWebhookMaxWaitInterval: '',
      authWebhookMethods: [],
      authWebhookMinWaitInterval: '',
      authWebhookRequestTimeout: '',
      authWebhookUrl: '',
      clientDeactivateThreshold: '',
      createdAt: '',
      eventWebhookEvents: [],
      eventWebhookMaxRetries: '',
      eventWebhookMaxWaitInterval: '',
      eventWebhookMinWaitInterval: '',
      eventWebhookRequestTimeout: '',
      eventWebhookUrl: '',
      id: '',
      maxAttachmentsPerDocument: 0,
      maxSizePerDocument: 0,
      maxSubscribersPerDocument: 0,
      name: '',
      publicKey: '',
      removeOnDetach: false,
      secretKey: '',
      snapshotInterval: '',
      snapshotThreshold: '',
      updatedAt: ''
    }
  },
  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}}/yorkie.v1.ClusterService/DetachDocument');

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

req.type('json');
req.send({
  clientId: '',
  documentId: '',
  documentKey: '',
  project: {
    allowedOrigins: [],
    authWebhookMaxRetries: '',
    authWebhookMaxWaitInterval: '',
    authWebhookMethods: [],
    authWebhookMinWaitInterval: '',
    authWebhookRequestTimeout: '',
    authWebhookUrl: '',
    clientDeactivateThreshold: '',
    createdAt: '',
    eventWebhookEvents: [],
    eventWebhookMaxRetries: '',
    eventWebhookMaxWaitInterval: '',
    eventWebhookMinWaitInterval: '',
    eventWebhookRequestTimeout: '',
    eventWebhookUrl: '',
    id: '',
    maxAttachmentsPerDocument: 0,
    maxSizePerDocument: 0,
    maxSubscribersPerDocument: 0,
    name: '',
    publicKey: '',
    removeOnDetach: false,
    secretKey: '',
    snapshotInterval: '',
    snapshotThreshold: '',
    updatedAt: ''
  }
});

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}}/yorkie.v1.ClusterService/DetachDocument',
  headers: {'content-type': 'application/json'},
  data: {
    clientId: '',
    documentId: '',
    documentKey: '',
    project: {
      allowedOrigins: [],
      authWebhookMaxRetries: '',
      authWebhookMaxWaitInterval: '',
      authWebhookMethods: [],
      authWebhookMinWaitInterval: '',
      authWebhookRequestTimeout: '',
      authWebhookUrl: '',
      clientDeactivateThreshold: '',
      createdAt: '',
      eventWebhookEvents: [],
      eventWebhookMaxRetries: '',
      eventWebhookMaxWaitInterval: '',
      eventWebhookMinWaitInterval: '',
      eventWebhookRequestTimeout: '',
      eventWebhookUrl: '',
      id: '',
      maxAttachmentsPerDocument: 0,
      maxSizePerDocument: 0,
      maxSubscribersPerDocument: 0,
      name: '',
      publicKey: '',
      removeOnDetach: false,
      secretKey: '',
      snapshotInterval: '',
      snapshotThreshold: '',
      updatedAt: ''
    }
  }
};

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

const url = '{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"clientId":"","documentId":"","documentKey":"","project":{"allowedOrigins":[],"authWebhookMaxRetries":"","authWebhookMaxWaitInterval":"","authWebhookMethods":[],"authWebhookMinWaitInterval":"","authWebhookRequestTimeout":"","authWebhookUrl":"","clientDeactivateThreshold":"","createdAt":"","eventWebhookEvents":[],"eventWebhookMaxRetries":"","eventWebhookMaxWaitInterval":"","eventWebhookMinWaitInterval":"","eventWebhookRequestTimeout":"","eventWebhookUrl":"","id":"","maxAttachmentsPerDocument":0,"maxSizePerDocument":0,"maxSubscribersPerDocument":0,"name":"","publicKey":"","removeOnDetach":false,"secretKey":"","snapshotInterval":"","snapshotThreshold":"","updatedAt":""}}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"clientId": @"",
                              @"documentId": @"",
                              @"documentKey": @"",
                              @"project": @{ @"allowedOrigins": @[  ], @"authWebhookMaxRetries": @"", @"authWebhookMaxWaitInterval": @"", @"authWebhookMethods": @[  ], @"authWebhookMinWaitInterval": @"", @"authWebhookRequestTimeout": @"", @"authWebhookUrl": @"", @"clientDeactivateThreshold": @"", @"createdAt": @"", @"eventWebhookEvents": @[  ], @"eventWebhookMaxRetries": @"", @"eventWebhookMaxWaitInterval": @"", @"eventWebhookMinWaitInterval": @"", @"eventWebhookRequestTimeout": @"", @"eventWebhookUrl": @"", @"id": @"", @"maxAttachmentsPerDocument": @0, @"maxSizePerDocument": @0, @"maxSubscribersPerDocument": @0, @"name": @"", @"publicKey": @"", @"removeOnDetach": @NO, @"secretKey": @"", @"snapshotInterval": @"", @"snapshotThreshold": @"", @"updatedAt": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument"]
                                                       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}}/yorkie.v1.ClusterService/DetachDocument" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"clientId\": \"\",\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument",
  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([
    'clientId' => '',
    'documentId' => '',
    'documentKey' => '',
    'project' => [
        'allowedOrigins' => [
                
        ],
        'authWebhookMaxRetries' => '',
        'authWebhookMaxWaitInterval' => '',
        'authWebhookMethods' => [
                
        ],
        'authWebhookMinWaitInterval' => '',
        'authWebhookRequestTimeout' => '',
        'authWebhookUrl' => '',
        'clientDeactivateThreshold' => '',
        'createdAt' => '',
        'eventWebhookEvents' => [
                
        ],
        'eventWebhookMaxRetries' => '',
        'eventWebhookMaxWaitInterval' => '',
        'eventWebhookMinWaitInterval' => '',
        'eventWebhookRequestTimeout' => '',
        'eventWebhookUrl' => '',
        'id' => '',
        'maxAttachmentsPerDocument' => 0,
        'maxSizePerDocument' => 0,
        'maxSubscribersPerDocument' => 0,
        'name' => '',
        'publicKey' => '',
        'removeOnDetach' => null,
        'secretKey' => '',
        'snapshotInterval' => '',
        'snapshotThreshold' => '',
        'updatedAt' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument', [
  'body' => '{
  "clientId": "",
  "documentId": "",
  "documentKey": "",
  "project": {
    "allowedOrigins": [],
    "authWebhookMaxRetries": "",
    "authWebhookMaxWaitInterval": "",
    "authWebhookMethods": [],
    "authWebhookMinWaitInterval": "",
    "authWebhookRequestTimeout": "",
    "authWebhookUrl": "",
    "clientDeactivateThreshold": "",
    "createdAt": "",
    "eventWebhookEvents": [],
    "eventWebhookMaxRetries": "",
    "eventWebhookMaxWaitInterval": "",
    "eventWebhookMinWaitInterval": "",
    "eventWebhookRequestTimeout": "",
    "eventWebhookUrl": "",
    "id": "",
    "maxAttachmentsPerDocument": 0,
    "maxSizePerDocument": 0,
    "maxSubscribersPerDocument": 0,
    "name": "",
    "publicKey": "",
    "removeOnDetach": false,
    "secretKey": "",
    "snapshotInterval": "",
    "snapshotThreshold": "",
    "updatedAt": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'clientId' => '',
  'documentId' => '',
  'documentKey' => '',
  'project' => [
    'allowedOrigins' => [
        
    ],
    'authWebhookMaxRetries' => '',
    'authWebhookMaxWaitInterval' => '',
    'authWebhookMethods' => [
        
    ],
    'authWebhookMinWaitInterval' => '',
    'authWebhookRequestTimeout' => '',
    'authWebhookUrl' => '',
    'clientDeactivateThreshold' => '',
    'createdAt' => '',
    'eventWebhookEvents' => [
        
    ],
    'eventWebhookMaxRetries' => '',
    'eventWebhookMaxWaitInterval' => '',
    'eventWebhookMinWaitInterval' => '',
    'eventWebhookRequestTimeout' => '',
    'eventWebhookUrl' => '',
    'id' => '',
    'maxAttachmentsPerDocument' => 0,
    'maxSizePerDocument' => 0,
    'maxSubscribersPerDocument' => 0,
    'name' => '',
    'publicKey' => '',
    'removeOnDetach' => null,
    'secretKey' => '',
    'snapshotInterval' => '',
    'snapshotThreshold' => '',
    'updatedAt' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'clientId' => '',
  'documentId' => '',
  'documentKey' => '',
  'project' => [
    'allowedOrigins' => [
        
    ],
    'authWebhookMaxRetries' => '',
    'authWebhookMaxWaitInterval' => '',
    'authWebhookMethods' => [
        
    ],
    'authWebhookMinWaitInterval' => '',
    'authWebhookRequestTimeout' => '',
    'authWebhookUrl' => '',
    'clientDeactivateThreshold' => '',
    'createdAt' => '',
    'eventWebhookEvents' => [
        
    ],
    'eventWebhookMaxRetries' => '',
    'eventWebhookMaxWaitInterval' => '',
    'eventWebhookMinWaitInterval' => '',
    'eventWebhookRequestTimeout' => '',
    'eventWebhookUrl' => '',
    'id' => '',
    'maxAttachmentsPerDocument' => 0,
    'maxSizePerDocument' => 0,
    'maxSubscribersPerDocument' => 0,
    'name' => '',
    'publicKey' => '',
    'removeOnDetach' => null,
    'secretKey' => '',
    'snapshotInterval' => '',
    'snapshotThreshold' => '',
    'updatedAt' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "clientId": "",
  "documentId": "",
  "documentKey": "",
  "project": {
    "allowedOrigins": [],
    "authWebhookMaxRetries": "",
    "authWebhookMaxWaitInterval": "",
    "authWebhookMethods": [],
    "authWebhookMinWaitInterval": "",
    "authWebhookRequestTimeout": "",
    "authWebhookUrl": "",
    "clientDeactivateThreshold": "",
    "createdAt": "",
    "eventWebhookEvents": [],
    "eventWebhookMaxRetries": "",
    "eventWebhookMaxWaitInterval": "",
    "eventWebhookMinWaitInterval": "",
    "eventWebhookRequestTimeout": "",
    "eventWebhookUrl": "",
    "id": "",
    "maxAttachmentsPerDocument": 0,
    "maxSizePerDocument": 0,
    "maxSubscribersPerDocument": 0,
    "name": "",
    "publicKey": "",
    "removeOnDetach": false,
    "secretKey": "",
    "snapshotInterval": "",
    "snapshotThreshold": "",
    "updatedAt": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "clientId": "",
  "documentId": "",
  "documentKey": "",
  "project": {
    "allowedOrigins": [],
    "authWebhookMaxRetries": "",
    "authWebhookMaxWaitInterval": "",
    "authWebhookMethods": [],
    "authWebhookMinWaitInterval": "",
    "authWebhookRequestTimeout": "",
    "authWebhookUrl": "",
    "clientDeactivateThreshold": "",
    "createdAt": "",
    "eventWebhookEvents": [],
    "eventWebhookMaxRetries": "",
    "eventWebhookMaxWaitInterval": "",
    "eventWebhookMinWaitInterval": "",
    "eventWebhookRequestTimeout": "",
    "eventWebhookUrl": "",
    "id": "",
    "maxAttachmentsPerDocument": 0,
    "maxSizePerDocument": 0,
    "maxSubscribersPerDocument": 0,
    "name": "",
    "publicKey": "",
    "removeOnDetach": false,
    "secretKey": "",
    "snapshotInterval": "",
    "snapshotThreshold": "",
    "updatedAt": ""
  }
}'
import http.client

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

payload = "{\n  \"clientId\": \"\",\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/yorkie.v1.ClusterService/DetachDocument", payload, headers)

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

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

url = "{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument"

payload = {
    "clientId": "",
    "documentId": "",
    "documentKey": "",
    "project": {
        "allowedOrigins": [],
        "authWebhookMaxRetries": "",
        "authWebhookMaxWaitInterval": "",
        "authWebhookMethods": [],
        "authWebhookMinWaitInterval": "",
        "authWebhookRequestTimeout": "",
        "authWebhookUrl": "",
        "clientDeactivateThreshold": "",
        "createdAt": "",
        "eventWebhookEvents": [],
        "eventWebhookMaxRetries": "",
        "eventWebhookMaxWaitInterval": "",
        "eventWebhookMinWaitInterval": "",
        "eventWebhookRequestTimeout": "",
        "eventWebhookUrl": "",
        "id": "",
        "maxAttachmentsPerDocument": 0,
        "maxSizePerDocument": 0,
        "maxSubscribersPerDocument": 0,
        "name": "",
        "publicKey": "",
        "removeOnDetach": False,
        "secretKey": "",
        "snapshotInterval": "",
        "snapshotThreshold": "",
        "updatedAt": ""
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument"

payload <- "{\n  \"clientId\": \"\",\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\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}}/yorkie.v1.ClusterService/DetachDocument")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"clientId\": \"\",\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}"

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

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

response = conn.post('/baseUrl/yorkie.v1.ClusterService/DetachDocument') do |req|
  req.body = "{\n  \"clientId\": \"\",\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/yorkie.v1.ClusterService/DetachDocument";

    let payload = json!({
        "clientId": "",
        "documentId": "",
        "documentKey": "",
        "project": json!({
            "allowedOrigins": (),
            "authWebhookMaxRetries": "",
            "authWebhookMaxWaitInterval": "",
            "authWebhookMethods": (),
            "authWebhookMinWaitInterval": "",
            "authWebhookRequestTimeout": "",
            "authWebhookUrl": "",
            "clientDeactivateThreshold": "",
            "createdAt": "",
            "eventWebhookEvents": (),
            "eventWebhookMaxRetries": "",
            "eventWebhookMaxWaitInterval": "",
            "eventWebhookMinWaitInterval": "",
            "eventWebhookRequestTimeout": "",
            "eventWebhookUrl": "",
            "id": "",
            "maxAttachmentsPerDocument": 0,
            "maxSizePerDocument": 0,
            "maxSubscribersPerDocument": 0,
            "name": "",
            "publicKey": "",
            "removeOnDetach": false,
            "secretKey": "",
            "snapshotInterval": "",
            "snapshotThreshold": "",
            "updatedAt": ""
        })
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/yorkie.v1.ClusterService/DetachDocument \
  --header 'content-type: application/json' \
  --data '{
  "clientId": "",
  "documentId": "",
  "documentKey": "",
  "project": {
    "allowedOrigins": [],
    "authWebhookMaxRetries": "",
    "authWebhookMaxWaitInterval": "",
    "authWebhookMethods": [],
    "authWebhookMinWaitInterval": "",
    "authWebhookRequestTimeout": "",
    "authWebhookUrl": "",
    "clientDeactivateThreshold": "",
    "createdAt": "",
    "eventWebhookEvents": [],
    "eventWebhookMaxRetries": "",
    "eventWebhookMaxWaitInterval": "",
    "eventWebhookMinWaitInterval": "",
    "eventWebhookRequestTimeout": "",
    "eventWebhookUrl": "",
    "id": "",
    "maxAttachmentsPerDocument": 0,
    "maxSizePerDocument": 0,
    "maxSubscribersPerDocument": 0,
    "name": "",
    "publicKey": "",
    "removeOnDetach": false,
    "secretKey": "",
    "snapshotInterval": "",
    "snapshotThreshold": "",
    "updatedAt": ""
  }
}'
echo '{
  "clientId": "",
  "documentId": "",
  "documentKey": "",
  "project": {
    "allowedOrigins": [],
    "authWebhookMaxRetries": "",
    "authWebhookMaxWaitInterval": "",
    "authWebhookMethods": [],
    "authWebhookMinWaitInterval": "",
    "authWebhookRequestTimeout": "",
    "authWebhookUrl": "",
    "clientDeactivateThreshold": "",
    "createdAt": "",
    "eventWebhookEvents": [],
    "eventWebhookMaxRetries": "",
    "eventWebhookMaxWaitInterval": "",
    "eventWebhookMinWaitInterval": "",
    "eventWebhookRequestTimeout": "",
    "eventWebhookUrl": "",
    "id": "",
    "maxAttachmentsPerDocument": 0,
    "maxSizePerDocument": 0,
    "maxSubscribersPerDocument": 0,
    "name": "",
    "publicKey": "",
    "removeOnDetach": false,
    "secretKey": "",
    "snapshotInterval": "",
    "snapshotThreshold": "",
    "updatedAt": ""
  }
}' |  \
  http POST {{baseUrl}}/yorkie.v1.ClusterService/DetachDocument \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "clientId": "",\n  "documentId": "",\n  "documentKey": "",\n  "project": {\n    "allowedOrigins": [],\n    "authWebhookMaxRetries": "",\n    "authWebhookMaxWaitInterval": "",\n    "authWebhookMethods": [],\n    "authWebhookMinWaitInterval": "",\n    "authWebhookRequestTimeout": "",\n    "authWebhookUrl": "",\n    "clientDeactivateThreshold": "",\n    "createdAt": "",\n    "eventWebhookEvents": [],\n    "eventWebhookMaxRetries": "",\n    "eventWebhookMaxWaitInterval": "",\n    "eventWebhookMinWaitInterval": "",\n    "eventWebhookRequestTimeout": "",\n    "eventWebhookUrl": "",\n    "id": "",\n    "maxAttachmentsPerDocument": 0,\n    "maxSizePerDocument": 0,\n    "maxSubscribersPerDocument": 0,\n    "name": "",\n    "publicKey": "",\n    "removeOnDetach": false,\n    "secretKey": "",\n    "snapshotInterval": "",\n    "snapshotThreshold": "",\n    "updatedAt": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/yorkie.v1.ClusterService/DetachDocument
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "clientId": "",
  "documentId": "",
  "documentKey": "",
  "project": [
    "allowedOrigins": [],
    "authWebhookMaxRetries": "",
    "authWebhookMaxWaitInterval": "",
    "authWebhookMethods": [],
    "authWebhookMinWaitInterval": "",
    "authWebhookRequestTimeout": "",
    "authWebhookUrl": "",
    "clientDeactivateThreshold": "",
    "createdAt": "",
    "eventWebhookEvents": [],
    "eventWebhookMaxRetries": "",
    "eventWebhookMaxWaitInterval": "",
    "eventWebhookMinWaitInterval": "",
    "eventWebhookRequestTimeout": "",
    "eventWebhookUrl": "",
    "id": "",
    "maxAttachmentsPerDocument": 0,
    "maxSizePerDocument": 0,
    "maxSubscribersPerDocument": 0,
    "name": "",
    "publicKey": "",
    "removeOnDetach": false,
    "secretKey": "",
    "snapshotInterval": "",
    "snapshotThreshold": "",
    "updatedAt": ""
  ]
] as [String : Any]

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

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

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

dataTask.resume()
POST post -yorkie.v1.ClusterService-GetChannel
{{baseUrl}}/yorkie.v1.ClusterService/GetChannel
BODY json

{
  "channelKey": "",
  "includeSubPath": false,
  "projectId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/yorkie.v1.ClusterService/GetChannel");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"channelKey\": \"\",\n  \"includeSubPath\": false,\n  \"projectId\": \"\"\n}");

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

(client/post "{{baseUrl}}/yorkie.v1.ClusterService/GetChannel" {:content-type :json
                                                                                :form-params {:channelKey ""
                                                                                              :includeSubPath false
                                                                                              :projectId ""}})
require "http/client"

url = "{{baseUrl}}/yorkie.v1.ClusterService/GetChannel"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"channelKey\": \"\",\n  \"includeSubPath\": false,\n  \"projectId\": \"\"\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}}/yorkie.v1.ClusterService/GetChannel"),
    Content = new StringContent("{\n  \"channelKey\": \"\",\n  \"includeSubPath\": false,\n  \"projectId\": \"\"\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}}/yorkie.v1.ClusterService/GetChannel");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"channelKey\": \"\",\n  \"includeSubPath\": false,\n  \"projectId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/yorkie.v1.ClusterService/GetChannel"

	payload := strings.NewReader("{\n  \"channelKey\": \"\",\n  \"includeSubPath\": false,\n  \"projectId\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/yorkie.v1.ClusterService/GetChannel HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 68

{
  "channelKey": "",
  "includeSubPath": false,
  "projectId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/yorkie.v1.ClusterService/GetChannel")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"channelKey\": \"\",\n  \"includeSubPath\": false,\n  \"projectId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/yorkie.v1.ClusterService/GetChannel"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"channelKey\": \"\",\n  \"includeSubPath\": false,\n  \"projectId\": \"\"\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  \"channelKey\": \"\",\n  \"includeSubPath\": false,\n  \"projectId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/yorkie.v1.ClusterService/GetChannel")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/yorkie.v1.ClusterService/GetChannel")
  .header("content-type", "application/json")
  .body("{\n  \"channelKey\": \"\",\n  \"includeSubPath\": false,\n  \"projectId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  channelKey: '',
  includeSubPath: false,
  projectId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/yorkie.v1.ClusterService/GetChannel');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/yorkie.v1.ClusterService/GetChannel',
  headers: {'content-type': 'application/json'},
  data: {channelKey: '', includeSubPath: false, projectId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/yorkie.v1.ClusterService/GetChannel';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"channelKey":"","includeSubPath":false,"projectId":""}'
};

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}}/yorkie.v1.ClusterService/GetChannel',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "channelKey": "",\n  "includeSubPath": false,\n  "projectId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"channelKey\": \"\",\n  \"includeSubPath\": false,\n  \"projectId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/yorkie.v1.ClusterService/GetChannel")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/yorkie.v1.ClusterService/GetChannel',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({channelKey: '', includeSubPath: false, projectId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/yorkie.v1.ClusterService/GetChannel',
  headers: {'content-type': 'application/json'},
  body: {channelKey: '', includeSubPath: false, projectId: ''},
  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}}/yorkie.v1.ClusterService/GetChannel');

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

req.type('json');
req.send({
  channelKey: '',
  includeSubPath: false,
  projectId: ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/yorkie.v1.ClusterService/GetChannel',
  headers: {'content-type': 'application/json'},
  data: {channelKey: '', includeSubPath: false, projectId: ''}
};

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

const url = '{{baseUrl}}/yorkie.v1.ClusterService/GetChannel';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"channelKey":"","includeSubPath":false,"projectId":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"channelKey": @"",
                              @"includeSubPath": @NO,
                              @"projectId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/yorkie.v1.ClusterService/GetChannel"]
                                                       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}}/yorkie.v1.ClusterService/GetChannel" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"channelKey\": \"\",\n  \"includeSubPath\": false,\n  \"projectId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/yorkie.v1.ClusterService/GetChannel",
  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([
    'channelKey' => '',
    'includeSubPath' => null,
    'projectId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/yorkie.v1.ClusterService/GetChannel', [
  'body' => '{
  "channelKey": "",
  "includeSubPath": false,
  "projectId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/yorkie.v1.ClusterService/GetChannel');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'channelKey' => '',
  'includeSubPath' => null,
  'projectId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'channelKey' => '',
  'includeSubPath' => null,
  'projectId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/yorkie.v1.ClusterService/GetChannel');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/yorkie.v1.ClusterService/GetChannel' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "channelKey": "",
  "includeSubPath": false,
  "projectId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/yorkie.v1.ClusterService/GetChannel' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "channelKey": "",
  "includeSubPath": false,
  "projectId": ""
}'
import http.client

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

payload = "{\n  \"channelKey\": \"\",\n  \"includeSubPath\": false,\n  \"projectId\": \"\"\n}"

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

conn.request("POST", "/baseUrl/yorkie.v1.ClusterService/GetChannel", payload, headers)

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

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

url = "{{baseUrl}}/yorkie.v1.ClusterService/GetChannel"

payload = {
    "channelKey": "",
    "includeSubPath": False,
    "projectId": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/yorkie.v1.ClusterService/GetChannel"

payload <- "{\n  \"channelKey\": \"\",\n  \"includeSubPath\": false,\n  \"projectId\": \"\"\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}}/yorkie.v1.ClusterService/GetChannel")

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

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

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

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

response = conn.post('/baseUrl/yorkie.v1.ClusterService/GetChannel') do |req|
  req.body = "{\n  \"channelKey\": \"\",\n  \"includeSubPath\": false,\n  \"projectId\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/yorkie.v1.ClusterService/GetChannel";

    let payload = json!({
        "channelKey": "",
        "includeSubPath": false,
        "projectId": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/yorkie.v1.ClusterService/GetChannel \
  --header 'content-type: application/json' \
  --data '{
  "channelKey": "",
  "includeSubPath": false,
  "projectId": ""
}'
echo '{
  "channelKey": "",
  "includeSubPath": false,
  "projectId": ""
}' |  \
  http POST {{baseUrl}}/yorkie.v1.ClusterService/GetChannel \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "channelKey": "",\n  "includeSubPath": false,\n  "projectId": ""\n}' \
  --output-document \
  - {{baseUrl}}/yorkie.v1.ClusterService/GetChannel
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "channelKey": "",
  "includeSubPath": false,
  "projectId": ""
] as [String : Any]

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

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

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

dataTask.resume()
POST post -yorkie.v1.ClusterService-GetDocument
{{baseUrl}}/yorkie.v1.ClusterService/GetDocument
BODY json

{
  "documentKey": "",
  "includePresences": false,
  "includeRoot": false,
  "project": {
    "allowedOrigins": [],
    "authWebhookMaxRetries": "",
    "authWebhookMaxWaitInterval": "",
    "authWebhookMethods": [],
    "authWebhookMinWaitInterval": "",
    "authWebhookRequestTimeout": "",
    "authWebhookUrl": "",
    "clientDeactivateThreshold": "",
    "createdAt": "",
    "eventWebhookEvents": [],
    "eventWebhookMaxRetries": "",
    "eventWebhookMaxWaitInterval": "",
    "eventWebhookMinWaitInterval": "",
    "eventWebhookRequestTimeout": "",
    "eventWebhookUrl": "",
    "id": "",
    "maxAttachmentsPerDocument": 0,
    "maxSizePerDocument": 0,
    "maxSubscribersPerDocument": 0,
    "name": "",
    "publicKey": "",
    "removeOnDetach": false,
    "secretKey": "",
    "snapshotInterval": "",
    "snapshotThreshold": "",
    "updatedAt": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/yorkie.v1.ClusterService/GetDocument");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"documentKey\": \"\",\n  \"includePresences\": false,\n  \"includeRoot\": false,\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/yorkie.v1.ClusterService/GetDocument" {:content-type :json
                                                                                 :form-params {:documentKey ""
                                                                                               :includePresences false
                                                                                               :includeRoot false
                                                                                               :project {:allowedOrigins []
                                                                                                         :authWebhookMaxRetries ""
                                                                                                         :authWebhookMaxWaitInterval ""
                                                                                                         :authWebhookMethods []
                                                                                                         :authWebhookMinWaitInterval ""
                                                                                                         :authWebhookRequestTimeout ""
                                                                                                         :authWebhookUrl ""
                                                                                                         :clientDeactivateThreshold ""
                                                                                                         :createdAt ""
                                                                                                         :eventWebhookEvents []
                                                                                                         :eventWebhookMaxRetries ""
                                                                                                         :eventWebhookMaxWaitInterval ""
                                                                                                         :eventWebhookMinWaitInterval ""
                                                                                                         :eventWebhookRequestTimeout ""
                                                                                                         :eventWebhookUrl ""
                                                                                                         :id ""
                                                                                                         :maxAttachmentsPerDocument 0
                                                                                                         :maxSizePerDocument 0
                                                                                                         :maxSubscribersPerDocument 0
                                                                                                         :name ""
                                                                                                         :publicKey ""
                                                                                                         :removeOnDetach false
                                                                                                         :secretKey ""
                                                                                                         :snapshotInterval ""
                                                                                                         :snapshotThreshold ""
                                                                                                         :updatedAt ""}}})
require "http/client"

url = "{{baseUrl}}/yorkie.v1.ClusterService/GetDocument"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"documentKey\": \"\",\n  \"includePresences\": false,\n  \"includeRoot\": false,\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\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}}/yorkie.v1.ClusterService/GetDocument"),
    Content = new StringContent("{\n  \"documentKey\": \"\",\n  \"includePresences\": false,\n  \"includeRoot\": false,\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\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}}/yorkie.v1.ClusterService/GetDocument");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"documentKey\": \"\",\n  \"includePresences\": false,\n  \"includeRoot\": false,\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/yorkie.v1.ClusterService/GetDocument"

	payload := strings.NewReader("{\n  \"documentKey\": \"\",\n  \"includePresences\": false,\n  \"includeRoot\": false,\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}")

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

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

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

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

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

}
POST /baseUrl/yorkie.v1.ClusterService/GetDocument HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 868

{
  "documentKey": "",
  "includePresences": false,
  "includeRoot": false,
  "project": {
    "allowedOrigins": [],
    "authWebhookMaxRetries": "",
    "authWebhookMaxWaitInterval": "",
    "authWebhookMethods": [],
    "authWebhookMinWaitInterval": "",
    "authWebhookRequestTimeout": "",
    "authWebhookUrl": "",
    "clientDeactivateThreshold": "",
    "createdAt": "",
    "eventWebhookEvents": [],
    "eventWebhookMaxRetries": "",
    "eventWebhookMaxWaitInterval": "",
    "eventWebhookMinWaitInterval": "",
    "eventWebhookRequestTimeout": "",
    "eventWebhookUrl": "",
    "id": "",
    "maxAttachmentsPerDocument": 0,
    "maxSizePerDocument": 0,
    "maxSubscribersPerDocument": 0,
    "name": "",
    "publicKey": "",
    "removeOnDetach": false,
    "secretKey": "",
    "snapshotInterval": "",
    "snapshotThreshold": "",
    "updatedAt": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/yorkie.v1.ClusterService/GetDocument")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"documentKey\": \"\",\n  \"includePresences\": false,\n  \"includeRoot\": false,\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/yorkie.v1.ClusterService/GetDocument"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"documentKey\": \"\",\n  \"includePresences\": false,\n  \"includeRoot\": false,\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\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  \"documentKey\": \"\",\n  \"includePresences\": false,\n  \"includeRoot\": false,\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/yorkie.v1.ClusterService/GetDocument")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/yorkie.v1.ClusterService/GetDocument")
  .header("content-type", "application/json")
  .body("{\n  \"documentKey\": \"\",\n  \"includePresences\": false,\n  \"includeRoot\": false,\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  documentKey: '',
  includePresences: false,
  includeRoot: false,
  project: {
    allowedOrigins: [],
    authWebhookMaxRetries: '',
    authWebhookMaxWaitInterval: '',
    authWebhookMethods: [],
    authWebhookMinWaitInterval: '',
    authWebhookRequestTimeout: '',
    authWebhookUrl: '',
    clientDeactivateThreshold: '',
    createdAt: '',
    eventWebhookEvents: [],
    eventWebhookMaxRetries: '',
    eventWebhookMaxWaitInterval: '',
    eventWebhookMinWaitInterval: '',
    eventWebhookRequestTimeout: '',
    eventWebhookUrl: '',
    id: '',
    maxAttachmentsPerDocument: 0,
    maxSizePerDocument: 0,
    maxSubscribersPerDocument: 0,
    name: '',
    publicKey: '',
    removeOnDetach: false,
    secretKey: '',
    snapshotInterval: '',
    snapshotThreshold: '',
    updatedAt: ''
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/yorkie.v1.ClusterService/GetDocument');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/yorkie.v1.ClusterService/GetDocument',
  headers: {'content-type': 'application/json'},
  data: {
    documentKey: '',
    includePresences: false,
    includeRoot: false,
    project: {
      allowedOrigins: [],
      authWebhookMaxRetries: '',
      authWebhookMaxWaitInterval: '',
      authWebhookMethods: [],
      authWebhookMinWaitInterval: '',
      authWebhookRequestTimeout: '',
      authWebhookUrl: '',
      clientDeactivateThreshold: '',
      createdAt: '',
      eventWebhookEvents: [],
      eventWebhookMaxRetries: '',
      eventWebhookMaxWaitInterval: '',
      eventWebhookMinWaitInterval: '',
      eventWebhookRequestTimeout: '',
      eventWebhookUrl: '',
      id: '',
      maxAttachmentsPerDocument: 0,
      maxSizePerDocument: 0,
      maxSubscribersPerDocument: 0,
      name: '',
      publicKey: '',
      removeOnDetach: false,
      secretKey: '',
      snapshotInterval: '',
      snapshotThreshold: '',
      updatedAt: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/yorkie.v1.ClusterService/GetDocument';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"documentKey":"","includePresences":false,"includeRoot":false,"project":{"allowedOrigins":[],"authWebhookMaxRetries":"","authWebhookMaxWaitInterval":"","authWebhookMethods":[],"authWebhookMinWaitInterval":"","authWebhookRequestTimeout":"","authWebhookUrl":"","clientDeactivateThreshold":"","createdAt":"","eventWebhookEvents":[],"eventWebhookMaxRetries":"","eventWebhookMaxWaitInterval":"","eventWebhookMinWaitInterval":"","eventWebhookRequestTimeout":"","eventWebhookUrl":"","id":"","maxAttachmentsPerDocument":0,"maxSizePerDocument":0,"maxSubscribersPerDocument":0,"name":"","publicKey":"","removeOnDetach":false,"secretKey":"","snapshotInterval":"","snapshotThreshold":"","updatedAt":""}}'
};

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}}/yorkie.v1.ClusterService/GetDocument',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "documentKey": "",\n  "includePresences": false,\n  "includeRoot": false,\n  "project": {\n    "allowedOrigins": [],\n    "authWebhookMaxRetries": "",\n    "authWebhookMaxWaitInterval": "",\n    "authWebhookMethods": [],\n    "authWebhookMinWaitInterval": "",\n    "authWebhookRequestTimeout": "",\n    "authWebhookUrl": "",\n    "clientDeactivateThreshold": "",\n    "createdAt": "",\n    "eventWebhookEvents": [],\n    "eventWebhookMaxRetries": "",\n    "eventWebhookMaxWaitInterval": "",\n    "eventWebhookMinWaitInterval": "",\n    "eventWebhookRequestTimeout": "",\n    "eventWebhookUrl": "",\n    "id": "",\n    "maxAttachmentsPerDocument": 0,\n    "maxSizePerDocument": 0,\n    "maxSubscribersPerDocument": 0,\n    "name": "",\n    "publicKey": "",\n    "removeOnDetach": false,\n    "secretKey": "",\n    "snapshotInterval": "",\n    "snapshotThreshold": "",\n    "updatedAt": ""\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  \"documentKey\": \"\",\n  \"includePresences\": false,\n  \"includeRoot\": false,\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/yorkie.v1.ClusterService/GetDocument")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/yorkie.v1.ClusterService/GetDocument',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  documentKey: '',
  includePresences: false,
  includeRoot: false,
  project: {
    allowedOrigins: [],
    authWebhookMaxRetries: '',
    authWebhookMaxWaitInterval: '',
    authWebhookMethods: [],
    authWebhookMinWaitInterval: '',
    authWebhookRequestTimeout: '',
    authWebhookUrl: '',
    clientDeactivateThreshold: '',
    createdAt: '',
    eventWebhookEvents: [],
    eventWebhookMaxRetries: '',
    eventWebhookMaxWaitInterval: '',
    eventWebhookMinWaitInterval: '',
    eventWebhookRequestTimeout: '',
    eventWebhookUrl: '',
    id: '',
    maxAttachmentsPerDocument: 0,
    maxSizePerDocument: 0,
    maxSubscribersPerDocument: 0,
    name: '',
    publicKey: '',
    removeOnDetach: false,
    secretKey: '',
    snapshotInterval: '',
    snapshotThreshold: '',
    updatedAt: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/yorkie.v1.ClusterService/GetDocument',
  headers: {'content-type': 'application/json'},
  body: {
    documentKey: '',
    includePresences: false,
    includeRoot: false,
    project: {
      allowedOrigins: [],
      authWebhookMaxRetries: '',
      authWebhookMaxWaitInterval: '',
      authWebhookMethods: [],
      authWebhookMinWaitInterval: '',
      authWebhookRequestTimeout: '',
      authWebhookUrl: '',
      clientDeactivateThreshold: '',
      createdAt: '',
      eventWebhookEvents: [],
      eventWebhookMaxRetries: '',
      eventWebhookMaxWaitInterval: '',
      eventWebhookMinWaitInterval: '',
      eventWebhookRequestTimeout: '',
      eventWebhookUrl: '',
      id: '',
      maxAttachmentsPerDocument: 0,
      maxSizePerDocument: 0,
      maxSubscribersPerDocument: 0,
      name: '',
      publicKey: '',
      removeOnDetach: false,
      secretKey: '',
      snapshotInterval: '',
      snapshotThreshold: '',
      updatedAt: ''
    }
  },
  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}}/yorkie.v1.ClusterService/GetDocument');

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

req.type('json');
req.send({
  documentKey: '',
  includePresences: false,
  includeRoot: false,
  project: {
    allowedOrigins: [],
    authWebhookMaxRetries: '',
    authWebhookMaxWaitInterval: '',
    authWebhookMethods: [],
    authWebhookMinWaitInterval: '',
    authWebhookRequestTimeout: '',
    authWebhookUrl: '',
    clientDeactivateThreshold: '',
    createdAt: '',
    eventWebhookEvents: [],
    eventWebhookMaxRetries: '',
    eventWebhookMaxWaitInterval: '',
    eventWebhookMinWaitInterval: '',
    eventWebhookRequestTimeout: '',
    eventWebhookUrl: '',
    id: '',
    maxAttachmentsPerDocument: 0,
    maxSizePerDocument: 0,
    maxSubscribersPerDocument: 0,
    name: '',
    publicKey: '',
    removeOnDetach: false,
    secretKey: '',
    snapshotInterval: '',
    snapshotThreshold: '',
    updatedAt: ''
  }
});

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}}/yorkie.v1.ClusterService/GetDocument',
  headers: {'content-type': 'application/json'},
  data: {
    documentKey: '',
    includePresences: false,
    includeRoot: false,
    project: {
      allowedOrigins: [],
      authWebhookMaxRetries: '',
      authWebhookMaxWaitInterval: '',
      authWebhookMethods: [],
      authWebhookMinWaitInterval: '',
      authWebhookRequestTimeout: '',
      authWebhookUrl: '',
      clientDeactivateThreshold: '',
      createdAt: '',
      eventWebhookEvents: [],
      eventWebhookMaxRetries: '',
      eventWebhookMaxWaitInterval: '',
      eventWebhookMinWaitInterval: '',
      eventWebhookRequestTimeout: '',
      eventWebhookUrl: '',
      id: '',
      maxAttachmentsPerDocument: 0,
      maxSizePerDocument: 0,
      maxSubscribersPerDocument: 0,
      name: '',
      publicKey: '',
      removeOnDetach: false,
      secretKey: '',
      snapshotInterval: '',
      snapshotThreshold: '',
      updatedAt: ''
    }
  }
};

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

const url = '{{baseUrl}}/yorkie.v1.ClusterService/GetDocument';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"documentKey":"","includePresences":false,"includeRoot":false,"project":{"allowedOrigins":[],"authWebhookMaxRetries":"","authWebhookMaxWaitInterval":"","authWebhookMethods":[],"authWebhookMinWaitInterval":"","authWebhookRequestTimeout":"","authWebhookUrl":"","clientDeactivateThreshold":"","createdAt":"","eventWebhookEvents":[],"eventWebhookMaxRetries":"","eventWebhookMaxWaitInterval":"","eventWebhookMinWaitInterval":"","eventWebhookRequestTimeout":"","eventWebhookUrl":"","id":"","maxAttachmentsPerDocument":0,"maxSizePerDocument":0,"maxSubscribersPerDocument":0,"name":"","publicKey":"","removeOnDetach":false,"secretKey":"","snapshotInterval":"","snapshotThreshold":"","updatedAt":""}}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"documentKey": @"",
                              @"includePresences": @NO,
                              @"includeRoot": @NO,
                              @"project": @{ @"allowedOrigins": @[  ], @"authWebhookMaxRetries": @"", @"authWebhookMaxWaitInterval": @"", @"authWebhookMethods": @[  ], @"authWebhookMinWaitInterval": @"", @"authWebhookRequestTimeout": @"", @"authWebhookUrl": @"", @"clientDeactivateThreshold": @"", @"createdAt": @"", @"eventWebhookEvents": @[  ], @"eventWebhookMaxRetries": @"", @"eventWebhookMaxWaitInterval": @"", @"eventWebhookMinWaitInterval": @"", @"eventWebhookRequestTimeout": @"", @"eventWebhookUrl": @"", @"id": @"", @"maxAttachmentsPerDocument": @0, @"maxSizePerDocument": @0, @"maxSubscribersPerDocument": @0, @"name": @"", @"publicKey": @"", @"removeOnDetach": @NO, @"secretKey": @"", @"snapshotInterval": @"", @"snapshotThreshold": @"", @"updatedAt": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/yorkie.v1.ClusterService/GetDocument"]
                                                       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}}/yorkie.v1.ClusterService/GetDocument" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"documentKey\": \"\",\n  \"includePresences\": false,\n  \"includeRoot\": false,\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/yorkie.v1.ClusterService/GetDocument",
  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([
    'documentKey' => '',
    'includePresences' => null,
    'includeRoot' => null,
    'project' => [
        'allowedOrigins' => [
                
        ],
        'authWebhookMaxRetries' => '',
        'authWebhookMaxWaitInterval' => '',
        'authWebhookMethods' => [
                
        ],
        'authWebhookMinWaitInterval' => '',
        'authWebhookRequestTimeout' => '',
        'authWebhookUrl' => '',
        'clientDeactivateThreshold' => '',
        'createdAt' => '',
        'eventWebhookEvents' => [
                
        ],
        'eventWebhookMaxRetries' => '',
        'eventWebhookMaxWaitInterval' => '',
        'eventWebhookMinWaitInterval' => '',
        'eventWebhookRequestTimeout' => '',
        'eventWebhookUrl' => '',
        'id' => '',
        'maxAttachmentsPerDocument' => 0,
        'maxSizePerDocument' => 0,
        'maxSubscribersPerDocument' => 0,
        'name' => '',
        'publicKey' => '',
        'removeOnDetach' => null,
        'secretKey' => '',
        'snapshotInterval' => '',
        'snapshotThreshold' => '',
        'updatedAt' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/yorkie.v1.ClusterService/GetDocument', [
  'body' => '{
  "documentKey": "",
  "includePresences": false,
  "includeRoot": false,
  "project": {
    "allowedOrigins": [],
    "authWebhookMaxRetries": "",
    "authWebhookMaxWaitInterval": "",
    "authWebhookMethods": [],
    "authWebhookMinWaitInterval": "",
    "authWebhookRequestTimeout": "",
    "authWebhookUrl": "",
    "clientDeactivateThreshold": "",
    "createdAt": "",
    "eventWebhookEvents": [],
    "eventWebhookMaxRetries": "",
    "eventWebhookMaxWaitInterval": "",
    "eventWebhookMinWaitInterval": "",
    "eventWebhookRequestTimeout": "",
    "eventWebhookUrl": "",
    "id": "",
    "maxAttachmentsPerDocument": 0,
    "maxSizePerDocument": 0,
    "maxSubscribersPerDocument": 0,
    "name": "",
    "publicKey": "",
    "removeOnDetach": false,
    "secretKey": "",
    "snapshotInterval": "",
    "snapshotThreshold": "",
    "updatedAt": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/yorkie.v1.ClusterService/GetDocument');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'documentKey' => '',
  'includePresences' => null,
  'includeRoot' => null,
  'project' => [
    'allowedOrigins' => [
        
    ],
    'authWebhookMaxRetries' => '',
    'authWebhookMaxWaitInterval' => '',
    'authWebhookMethods' => [
        
    ],
    'authWebhookMinWaitInterval' => '',
    'authWebhookRequestTimeout' => '',
    'authWebhookUrl' => '',
    'clientDeactivateThreshold' => '',
    'createdAt' => '',
    'eventWebhookEvents' => [
        
    ],
    'eventWebhookMaxRetries' => '',
    'eventWebhookMaxWaitInterval' => '',
    'eventWebhookMinWaitInterval' => '',
    'eventWebhookRequestTimeout' => '',
    'eventWebhookUrl' => '',
    'id' => '',
    'maxAttachmentsPerDocument' => 0,
    'maxSizePerDocument' => 0,
    'maxSubscribersPerDocument' => 0,
    'name' => '',
    'publicKey' => '',
    'removeOnDetach' => null,
    'secretKey' => '',
    'snapshotInterval' => '',
    'snapshotThreshold' => '',
    'updatedAt' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'documentKey' => '',
  'includePresences' => null,
  'includeRoot' => null,
  'project' => [
    'allowedOrigins' => [
        
    ],
    'authWebhookMaxRetries' => '',
    'authWebhookMaxWaitInterval' => '',
    'authWebhookMethods' => [
        
    ],
    'authWebhookMinWaitInterval' => '',
    'authWebhookRequestTimeout' => '',
    'authWebhookUrl' => '',
    'clientDeactivateThreshold' => '',
    'createdAt' => '',
    'eventWebhookEvents' => [
        
    ],
    'eventWebhookMaxRetries' => '',
    'eventWebhookMaxWaitInterval' => '',
    'eventWebhookMinWaitInterval' => '',
    'eventWebhookRequestTimeout' => '',
    'eventWebhookUrl' => '',
    'id' => '',
    'maxAttachmentsPerDocument' => 0,
    'maxSizePerDocument' => 0,
    'maxSubscribersPerDocument' => 0,
    'name' => '',
    'publicKey' => '',
    'removeOnDetach' => null,
    'secretKey' => '',
    'snapshotInterval' => '',
    'snapshotThreshold' => '',
    'updatedAt' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/yorkie.v1.ClusterService/GetDocument');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/yorkie.v1.ClusterService/GetDocument' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "documentKey": "",
  "includePresences": false,
  "includeRoot": false,
  "project": {
    "allowedOrigins": [],
    "authWebhookMaxRetries": "",
    "authWebhookMaxWaitInterval": "",
    "authWebhookMethods": [],
    "authWebhookMinWaitInterval": "",
    "authWebhookRequestTimeout": "",
    "authWebhookUrl": "",
    "clientDeactivateThreshold": "",
    "createdAt": "",
    "eventWebhookEvents": [],
    "eventWebhookMaxRetries": "",
    "eventWebhookMaxWaitInterval": "",
    "eventWebhookMinWaitInterval": "",
    "eventWebhookRequestTimeout": "",
    "eventWebhookUrl": "",
    "id": "",
    "maxAttachmentsPerDocument": 0,
    "maxSizePerDocument": 0,
    "maxSubscribersPerDocument": 0,
    "name": "",
    "publicKey": "",
    "removeOnDetach": false,
    "secretKey": "",
    "snapshotInterval": "",
    "snapshotThreshold": "",
    "updatedAt": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/yorkie.v1.ClusterService/GetDocument' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "documentKey": "",
  "includePresences": false,
  "includeRoot": false,
  "project": {
    "allowedOrigins": [],
    "authWebhookMaxRetries": "",
    "authWebhookMaxWaitInterval": "",
    "authWebhookMethods": [],
    "authWebhookMinWaitInterval": "",
    "authWebhookRequestTimeout": "",
    "authWebhookUrl": "",
    "clientDeactivateThreshold": "",
    "createdAt": "",
    "eventWebhookEvents": [],
    "eventWebhookMaxRetries": "",
    "eventWebhookMaxWaitInterval": "",
    "eventWebhookMinWaitInterval": "",
    "eventWebhookRequestTimeout": "",
    "eventWebhookUrl": "",
    "id": "",
    "maxAttachmentsPerDocument": 0,
    "maxSizePerDocument": 0,
    "maxSubscribersPerDocument": 0,
    "name": "",
    "publicKey": "",
    "removeOnDetach": false,
    "secretKey": "",
    "snapshotInterval": "",
    "snapshotThreshold": "",
    "updatedAt": ""
  }
}'
import http.client

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

payload = "{\n  \"documentKey\": \"\",\n  \"includePresences\": false,\n  \"includeRoot\": false,\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/yorkie.v1.ClusterService/GetDocument", payload, headers)

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

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

url = "{{baseUrl}}/yorkie.v1.ClusterService/GetDocument"

payload = {
    "documentKey": "",
    "includePresences": False,
    "includeRoot": False,
    "project": {
        "allowedOrigins": [],
        "authWebhookMaxRetries": "",
        "authWebhookMaxWaitInterval": "",
        "authWebhookMethods": [],
        "authWebhookMinWaitInterval": "",
        "authWebhookRequestTimeout": "",
        "authWebhookUrl": "",
        "clientDeactivateThreshold": "",
        "createdAt": "",
        "eventWebhookEvents": [],
        "eventWebhookMaxRetries": "",
        "eventWebhookMaxWaitInterval": "",
        "eventWebhookMinWaitInterval": "",
        "eventWebhookRequestTimeout": "",
        "eventWebhookUrl": "",
        "id": "",
        "maxAttachmentsPerDocument": 0,
        "maxSizePerDocument": 0,
        "maxSubscribersPerDocument": 0,
        "name": "",
        "publicKey": "",
        "removeOnDetach": False,
        "secretKey": "",
        "snapshotInterval": "",
        "snapshotThreshold": "",
        "updatedAt": ""
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/yorkie.v1.ClusterService/GetDocument"

payload <- "{\n  \"documentKey\": \"\",\n  \"includePresences\": false,\n  \"includeRoot\": false,\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\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}}/yorkie.v1.ClusterService/GetDocument")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"documentKey\": \"\",\n  \"includePresences\": false,\n  \"includeRoot\": false,\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}"

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

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

response = conn.post('/baseUrl/yorkie.v1.ClusterService/GetDocument') do |req|
  req.body = "{\n  \"documentKey\": \"\",\n  \"includePresences\": false,\n  \"includeRoot\": false,\n  \"project\": {\n    \"allowedOrigins\": [],\n    \"authWebhookMaxRetries\": \"\",\n    \"authWebhookMaxWaitInterval\": \"\",\n    \"authWebhookMethods\": [],\n    \"authWebhookMinWaitInterval\": \"\",\n    \"authWebhookRequestTimeout\": \"\",\n    \"authWebhookUrl\": \"\",\n    \"clientDeactivateThreshold\": \"\",\n    \"createdAt\": \"\",\n    \"eventWebhookEvents\": [],\n    \"eventWebhookMaxRetries\": \"\",\n    \"eventWebhookMaxWaitInterval\": \"\",\n    \"eventWebhookMinWaitInterval\": \"\",\n    \"eventWebhookRequestTimeout\": \"\",\n    \"eventWebhookUrl\": \"\",\n    \"id\": \"\",\n    \"maxAttachmentsPerDocument\": 0,\n    \"maxSizePerDocument\": 0,\n    \"maxSubscribersPerDocument\": 0,\n    \"name\": \"\",\n    \"publicKey\": \"\",\n    \"removeOnDetach\": false,\n    \"secretKey\": \"\",\n    \"snapshotInterval\": \"\",\n    \"snapshotThreshold\": \"\",\n    \"updatedAt\": \"\"\n  }\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/yorkie.v1.ClusterService/GetDocument";

    let payload = json!({
        "documentKey": "",
        "includePresences": false,
        "includeRoot": false,
        "project": json!({
            "allowedOrigins": (),
            "authWebhookMaxRetries": "",
            "authWebhookMaxWaitInterval": "",
            "authWebhookMethods": (),
            "authWebhookMinWaitInterval": "",
            "authWebhookRequestTimeout": "",
            "authWebhookUrl": "",
            "clientDeactivateThreshold": "",
            "createdAt": "",
            "eventWebhookEvents": (),
            "eventWebhookMaxRetries": "",
            "eventWebhookMaxWaitInterval": "",
            "eventWebhookMinWaitInterval": "",
            "eventWebhookRequestTimeout": "",
            "eventWebhookUrl": "",
            "id": "",
            "maxAttachmentsPerDocument": 0,
            "maxSizePerDocument": 0,
            "maxSubscribersPerDocument": 0,
            "name": "",
            "publicKey": "",
            "removeOnDetach": false,
            "secretKey": "",
            "snapshotInterval": "",
            "snapshotThreshold": "",
            "updatedAt": ""
        })
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/yorkie.v1.ClusterService/GetDocument \
  --header 'content-type: application/json' \
  --data '{
  "documentKey": "",
  "includePresences": false,
  "includeRoot": false,
  "project": {
    "allowedOrigins": [],
    "authWebhookMaxRetries": "",
    "authWebhookMaxWaitInterval": "",
    "authWebhookMethods": [],
    "authWebhookMinWaitInterval": "",
    "authWebhookRequestTimeout": "",
    "authWebhookUrl": "",
    "clientDeactivateThreshold": "",
    "createdAt": "",
    "eventWebhookEvents": [],
    "eventWebhookMaxRetries": "",
    "eventWebhookMaxWaitInterval": "",
    "eventWebhookMinWaitInterval": "",
    "eventWebhookRequestTimeout": "",
    "eventWebhookUrl": "",
    "id": "",
    "maxAttachmentsPerDocument": 0,
    "maxSizePerDocument": 0,
    "maxSubscribersPerDocument": 0,
    "name": "",
    "publicKey": "",
    "removeOnDetach": false,
    "secretKey": "",
    "snapshotInterval": "",
    "snapshotThreshold": "",
    "updatedAt": ""
  }
}'
echo '{
  "documentKey": "",
  "includePresences": false,
  "includeRoot": false,
  "project": {
    "allowedOrigins": [],
    "authWebhookMaxRetries": "",
    "authWebhookMaxWaitInterval": "",
    "authWebhookMethods": [],
    "authWebhookMinWaitInterval": "",
    "authWebhookRequestTimeout": "",
    "authWebhookUrl": "",
    "clientDeactivateThreshold": "",
    "createdAt": "",
    "eventWebhookEvents": [],
    "eventWebhookMaxRetries": "",
    "eventWebhookMaxWaitInterval": "",
    "eventWebhookMinWaitInterval": "",
    "eventWebhookRequestTimeout": "",
    "eventWebhookUrl": "",
    "id": "",
    "maxAttachmentsPerDocument": 0,
    "maxSizePerDocument": 0,
    "maxSubscribersPerDocument": 0,
    "name": "",
    "publicKey": "",
    "removeOnDetach": false,
    "secretKey": "",
    "snapshotInterval": "",
    "snapshotThreshold": "",
    "updatedAt": ""
  }
}' |  \
  http POST {{baseUrl}}/yorkie.v1.ClusterService/GetDocument \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "documentKey": "",\n  "includePresences": false,\n  "includeRoot": false,\n  "project": {\n    "allowedOrigins": [],\n    "authWebhookMaxRetries": "",\n    "authWebhookMaxWaitInterval": "",\n    "authWebhookMethods": [],\n    "authWebhookMinWaitInterval": "",\n    "authWebhookRequestTimeout": "",\n    "authWebhookUrl": "",\n    "clientDeactivateThreshold": "",\n    "createdAt": "",\n    "eventWebhookEvents": [],\n    "eventWebhookMaxRetries": "",\n    "eventWebhookMaxWaitInterval": "",\n    "eventWebhookMinWaitInterval": "",\n    "eventWebhookRequestTimeout": "",\n    "eventWebhookUrl": "",\n    "id": "",\n    "maxAttachmentsPerDocument": 0,\n    "maxSizePerDocument": 0,\n    "maxSubscribersPerDocument": 0,\n    "name": "",\n    "publicKey": "",\n    "removeOnDetach": false,\n    "secretKey": "",\n    "snapshotInterval": "",\n    "snapshotThreshold": "",\n    "updatedAt": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/yorkie.v1.ClusterService/GetDocument
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "documentKey": "",
  "includePresences": false,
  "includeRoot": false,
  "project": [
    "allowedOrigins": [],
    "authWebhookMaxRetries": "",
    "authWebhookMaxWaitInterval": "",
    "authWebhookMethods": [],
    "authWebhookMinWaitInterval": "",
    "authWebhookRequestTimeout": "",
    "authWebhookUrl": "",
    "clientDeactivateThreshold": "",
    "createdAt": "",
    "eventWebhookEvents": [],
    "eventWebhookMaxRetries": "",
    "eventWebhookMaxWaitInterval": "",
    "eventWebhookMinWaitInterval": "",
    "eventWebhookRequestTimeout": "",
    "eventWebhookUrl": "",
    "id": "",
    "maxAttachmentsPerDocument": 0,
    "maxSizePerDocument": 0,
    "maxSubscribersPerDocument": 0,
    "name": "",
    "publicKey": "",
    "removeOnDetach": false,
    "secretKey": "",
    "snapshotInterval": "",
    "snapshotThreshold": "",
    "updatedAt": ""
  ]
] as [String : Any]

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

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

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

dataTask.resume()
POST post -yorkie.v1.ClusterService-InvalidateCache
{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache
BODY json

{
  "cacheType": "",
  "key": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache");

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

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

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

(client/post "{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache" {:content-type :json
                                                                                     :form-params {:cacheType ""
                                                                                                   :key ""}})
require "http/client"

url = "{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"cacheType\": \"\",\n  \"key\": \"\"\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}}/yorkie.v1.ClusterService/InvalidateCache"),
    Content = new StringContent("{\n  \"cacheType\": \"\",\n  \"key\": \"\"\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}}/yorkie.v1.ClusterService/InvalidateCache");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"cacheType\": \"\",\n  \"key\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache"

	payload := strings.NewReader("{\n  \"cacheType\": \"\",\n  \"key\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/yorkie.v1.ClusterService/InvalidateCache HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 34

{
  "cacheType": "",
  "key": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"cacheType\": \"\",\n  \"key\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"cacheType\": \"\",\n  \"key\": \"\"\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  \"cacheType\": \"\",\n  \"key\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache")
  .header("content-type", "application/json")
  .body("{\n  \"cacheType\": \"\",\n  \"key\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  cacheType: '',
  key: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache',
  headers: {'content-type': 'application/json'},
  data: {cacheType: '', key: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"cacheType":"","key":""}'
};

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}}/yorkie.v1.ClusterService/InvalidateCache',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "cacheType": "",\n  "key": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"cacheType\": \"\",\n  \"key\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/yorkie.v1.ClusterService/InvalidateCache',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache',
  headers: {'content-type': 'application/json'},
  body: {cacheType: '', key: ''},
  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}}/yorkie.v1.ClusterService/InvalidateCache');

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

req.type('json');
req.send({
  cacheType: '',
  key: ''
});

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}}/yorkie.v1.ClusterService/InvalidateCache',
  headers: {'content-type': 'application/json'},
  data: {cacheType: '', key: ''}
};

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

const url = '{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"cacheType":"","key":""}'
};

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

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

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache"]
                                                       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}}/yorkie.v1.ClusterService/InvalidateCache" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"cacheType\": \"\",\n  \"key\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache",
  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([
    'cacheType' => '',
    'key' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache', [
  'body' => '{
  "cacheType": "",
  "key": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache');
$request->setMethod(HTTP_METH_POST);

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

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'cacheType' => '',
  'key' => ''
]));
$request->setRequestUrl('{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "cacheType": "",
  "key": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "cacheType": "",
  "key": ""
}'
import http.client

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

payload = "{\n  \"cacheType\": \"\",\n  \"key\": \"\"\n}"

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

conn.request("POST", "/baseUrl/yorkie.v1.ClusterService/InvalidateCache", payload, headers)

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

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

url = "{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache"

payload = {
    "cacheType": "",
    "key": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache"

payload <- "{\n  \"cacheType\": \"\",\n  \"key\": \"\"\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}}/yorkie.v1.ClusterService/InvalidateCache")

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

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

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

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

response = conn.post('/baseUrl/yorkie.v1.ClusterService/InvalidateCache') do |req|
  req.body = "{\n  \"cacheType\": \"\",\n  \"key\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache";

    let payload = json!({
        "cacheType": "",
        "key": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache \
  --header 'content-type: application/json' \
  --data '{
  "cacheType": "",
  "key": ""
}'
echo '{
  "cacheType": "",
  "key": ""
}' |  \
  http POST {{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "cacheType": "",\n  "key": ""\n}' \
  --output-document \
  - {{baseUrl}}/yorkie.v1.ClusterService/InvalidateCache
import Foundation

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

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

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

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

dataTask.resume()
POST post -yorkie.v1.ClusterService-PurgeDocument
{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument
BODY json

{
  "documentId": "",
  "documentKey": "",
  "projectId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}");

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

(client/post "{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument" {:content-type :json
                                                                                   :form-params {:documentId ""
                                                                                                 :documentKey ""
                                                                                                 :projectId ""}})
require "http/client"

url = "{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\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}}/yorkie.v1.ClusterService/PurgeDocument"),
    Content = new StringContent("{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\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}}/yorkie.v1.ClusterService/PurgeDocument");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument"

	payload := strings.NewReader("{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/yorkie.v1.ClusterService/PurgeDocument HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 62

{
  "documentId": "",
  "documentKey": "",
  "projectId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\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  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument")
  .header("content-type", "application/json")
  .body("{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  documentId: '',
  documentKey: '',
  projectId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument',
  headers: {'content-type': 'application/json'},
  data: {documentId: '', documentKey: '', projectId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"documentId":"","documentKey":"","projectId":""}'
};

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}}/yorkie.v1.ClusterService/PurgeDocument',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "documentId": "",\n  "documentKey": "",\n  "projectId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/yorkie.v1.ClusterService/PurgeDocument',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({documentId: '', documentKey: '', projectId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument',
  headers: {'content-type': 'application/json'},
  body: {documentId: '', documentKey: '', projectId: ''},
  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}}/yorkie.v1.ClusterService/PurgeDocument');

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

req.type('json');
req.send({
  documentId: '',
  documentKey: '',
  projectId: ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument',
  headers: {'content-type': 'application/json'},
  data: {documentId: '', documentKey: '', projectId: ''}
};

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

const url = '{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"documentId":"","documentKey":"","projectId":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"documentId": @"",
                              @"documentKey": @"",
                              @"projectId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument"]
                                                       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}}/yorkie.v1.ClusterService/PurgeDocument" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument",
  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([
    'documentId' => '',
    'documentKey' => '',
    'projectId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument', [
  'body' => '{
  "documentId": "",
  "documentKey": "",
  "projectId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'documentId' => '',
  'documentKey' => '',
  'projectId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'documentId' => '',
  'documentKey' => '',
  'projectId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "documentId": "",
  "documentKey": "",
  "projectId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "documentId": "",
  "documentKey": "",
  "projectId": ""
}'
import http.client

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

payload = "{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}"

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

conn.request("POST", "/baseUrl/yorkie.v1.ClusterService/PurgeDocument", payload, headers)

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

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

url = "{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument"

payload = {
    "documentId": "",
    "documentKey": "",
    "projectId": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument"

payload <- "{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\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}}/yorkie.v1.ClusterService/PurgeDocument")

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

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

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

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

response = conn.post('/baseUrl/yorkie.v1.ClusterService/PurgeDocument') do |req|
  req.body = "{\n  \"documentId\": \"\",\n  \"documentKey\": \"\",\n  \"projectId\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument";

    let payload = json!({
        "documentId": "",
        "documentKey": "",
        "projectId": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument \
  --header 'content-type: application/json' \
  --data '{
  "documentId": "",
  "documentKey": "",
  "projectId": ""
}'
echo '{
  "documentId": "",
  "documentKey": "",
  "projectId": ""
}' |  \
  http POST {{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "documentId": "",\n  "documentKey": "",\n  "projectId": ""\n}' \
  --output-document \
  - {{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "documentId": "",
  "documentKey": "",
  "projectId": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/yorkie.v1.ClusterService/PurgeDocument")! 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()