Cloud Debugger API
GET
clouddebugger.controller.debuggees.breakpoints.list
{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints
QUERY PARAMS
debuggeeId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints")
require "http/client"
url = "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v2/controller/debuggees/:debuggeeId/breakpoints HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v2/controller/debuggees/:debuggeeId/breakpoints',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints');
echo $response->getBody();
setUrl('{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v2/controller/debuggees/:debuggeeId/breakpoints")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v2/controller/debuggees/:debuggeeId/breakpoints') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints
http GET {{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
clouddebugger.controller.debuggees.breakpoints.update
{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id
QUERY PARAMS
debuggeeId
id
BODY json
{
"breakpoint": {
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": [
{
"members": [],
"name": "",
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"type": "",
"value": "",
"varTableIndex": 0
}
],
"expressions": [],
"finalTime": "",
"id": "",
"isFinalState": false,
"labels": {},
"location": {
"column": 0,
"line": 0,
"path": ""
},
"logLevel": "",
"logMessageFormat": "",
"stackFrames": [
{
"arguments": [
{}
],
"function": "",
"locals": [
{}
],
"location": {}
}
],
"state": "",
"status": {},
"userEmail": "",
"variableTable": [
{}
]
}
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id");
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 \"breakpoint\": {\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n }\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id" {:content-type :json
:form-params {:breakpoint {:action ""
:canaryExpireTime ""
:condition ""
:createTime ""
:evaluatedExpressions [{:members []
:name ""
:status {:description {:format ""
:parameters []}
:isError false
:refersTo ""}
:type ""
:value ""
:varTableIndex 0}]
:expressions []
:finalTime ""
:id ""
:isFinalState false
:labels {}
:location {:column 0
:line 0
:path ""}
:logLevel ""
:logMessageFormat ""
:stackFrames [{:arguments [{}]
:function ""
:locals [{}]
:location {}}]
:state ""
:status {}
:userEmail ""
:variableTable [{}]}}})
require "http/client"
url = "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"breakpoint\": {\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n }\n}"
response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id"),
Content = new StringContent("{\n \"breakpoint\": {\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n }\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"breakpoint\": {\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id"
payload := strings.NewReader("{\n \"breakpoint\": {\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/v2/controller/debuggees/:debuggeeId/breakpoints/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 962
{
"breakpoint": {
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": [
{
"members": [],
"name": "",
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"type": "",
"value": "",
"varTableIndex": 0
}
],
"expressions": [],
"finalTime": "",
"id": "",
"isFinalState": false,
"labels": {},
"location": {
"column": 0,
"line": 0,
"path": ""
},
"logLevel": "",
"logMessageFormat": "",
"stackFrames": [
{
"arguments": [
{}
],
"function": "",
"locals": [
{}
],
"location": {}
}
],
"state": "",
"status": {},
"userEmail": "",
"variableTable": [
{}
]
}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id")
.setHeader("content-type", "application/json")
.setBody("{\n \"breakpoint\": {\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n }\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id"))
.header("content-type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"breakpoint\": {\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n }\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"breakpoint\": {\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n }\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id")
.put(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id")
.header("content-type", "application/json")
.body("{\n \"breakpoint\": {\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n }\n}")
.asString();
const data = JSON.stringify({
breakpoint: {
action: '',
canaryExpireTime: '',
condition: '',
createTime: '',
evaluatedExpressions: [
{
members: [],
name: '',
status: {
description: {
format: '',
parameters: []
},
isError: false,
refersTo: ''
},
type: '',
value: '',
varTableIndex: 0
}
],
expressions: [],
finalTime: '',
id: '',
isFinalState: false,
labels: {},
location: {
column: 0,
line: 0,
path: ''
},
logLevel: '',
logMessageFormat: '',
stackFrames: [
{
arguments: [
{}
],
function: '',
locals: [
{}
],
location: {}
}
],
state: '',
status: {},
userEmail: '',
variableTable: [
{}
]
}
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id',
headers: {'content-type': 'application/json'},
data: {
breakpoint: {
action: '',
canaryExpireTime: '',
condition: '',
createTime: '',
evaluatedExpressions: [
{
members: [],
name: '',
status: {description: {format: '', parameters: []}, isError: false, refersTo: ''},
type: '',
value: '',
varTableIndex: 0
}
],
expressions: [],
finalTime: '',
id: '',
isFinalState: false,
labels: {},
location: {column: 0, line: 0, path: ''},
logLevel: '',
logMessageFormat: '',
stackFrames: [{arguments: [{}], function: '', locals: [{}], location: {}}],
state: '',
status: {},
userEmail: '',
variableTable: [{}]
}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"breakpoint":{"action":"","canaryExpireTime":"","condition":"","createTime":"","evaluatedExpressions":[{"members":[],"name":"","status":{"description":{"format":"","parameters":[]},"isError":false,"refersTo":""},"type":"","value":"","varTableIndex":0}],"expressions":[],"finalTime":"","id":"","isFinalState":false,"labels":{},"location":{"column":0,"line":0,"path":""},"logLevel":"","logMessageFormat":"","stackFrames":[{"arguments":[{}],"function":"","locals":[{}],"location":{}}],"state":"","status":{},"userEmail":"","variableTable":[{}]}}'
};
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}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id',
method: 'PUT',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "breakpoint": {\n "action": "",\n "canaryExpireTime": "",\n "condition": "",\n "createTime": "",\n "evaluatedExpressions": [\n {\n "members": [],\n "name": "",\n "status": {\n "description": {\n "format": "",\n "parameters": []\n },\n "isError": false,\n "refersTo": ""\n },\n "type": "",\n "value": "",\n "varTableIndex": 0\n }\n ],\n "expressions": [],\n "finalTime": "",\n "id": "",\n "isFinalState": false,\n "labels": {},\n "location": {\n "column": 0,\n "line": 0,\n "path": ""\n },\n "logLevel": "",\n "logMessageFormat": "",\n "stackFrames": [\n {\n "arguments": [\n {}\n ],\n "function": "",\n "locals": [\n {}\n ],\n "location": {}\n }\n ],\n "state": "",\n "status": {},\n "userEmail": "",\n "variableTable": [\n {}\n ]\n }\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"breakpoint\": {\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n }\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id")
.put(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/v2/controller/debuggees/:debuggeeId/breakpoints/:id',
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({
breakpoint: {
action: '',
canaryExpireTime: '',
condition: '',
createTime: '',
evaluatedExpressions: [
{
members: [],
name: '',
status: {description: {format: '', parameters: []}, isError: false, refersTo: ''},
type: '',
value: '',
varTableIndex: 0
}
],
expressions: [],
finalTime: '',
id: '',
isFinalState: false,
labels: {},
location: {column: 0, line: 0, path: ''},
logLevel: '',
logMessageFormat: '',
stackFrames: [{arguments: [{}], function: '', locals: [{}], location: {}}],
state: '',
status: {},
userEmail: '',
variableTable: [{}]
}
}));
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id',
headers: {'content-type': 'application/json'},
body: {
breakpoint: {
action: '',
canaryExpireTime: '',
condition: '',
createTime: '',
evaluatedExpressions: [
{
members: [],
name: '',
status: {description: {format: '', parameters: []}, isError: false, refersTo: ''},
type: '',
value: '',
varTableIndex: 0
}
],
expressions: [],
finalTime: '',
id: '',
isFinalState: false,
labels: {},
location: {column: 0, line: 0, path: ''},
logLevel: '',
logMessageFormat: '',
stackFrames: [{arguments: [{}], function: '', locals: [{}], location: {}}],
state: '',
status: {},
userEmail: '',
variableTable: [{}]
}
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
breakpoint: {
action: '',
canaryExpireTime: '',
condition: '',
createTime: '',
evaluatedExpressions: [
{
members: [],
name: '',
status: {
description: {
format: '',
parameters: []
},
isError: false,
refersTo: ''
},
type: '',
value: '',
varTableIndex: 0
}
],
expressions: [],
finalTime: '',
id: '',
isFinalState: false,
labels: {},
location: {
column: 0,
line: 0,
path: ''
},
logLevel: '',
logMessageFormat: '',
stackFrames: [
{
arguments: [
{}
],
function: '',
locals: [
{}
],
location: {}
}
],
state: '',
status: {},
userEmail: '',
variableTable: [
{}
]
}
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id',
headers: {'content-type': 'application/json'},
data: {
breakpoint: {
action: '',
canaryExpireTime: '',
condition: '',
createTime: '',
evaluatedExpressions: [
{
members: [],
name: '',
status: {description: {format: '', parameters: []}, isError: false, refersTo: ''},
type: '',
value: '',
varTableIndex: 0
}
],
expressions: [],
finalTime: '',
id: '',
isFinalState: false,
labels: {},
location: {column: 0, line: 0, path: ''},
logLevel: '',
logMessageFormat: '',
stackFrames: [{arguments: [{}], function: '', locals: [{}], location: {}}],
state: '',
status: {},
userEmail: '',
variableTable: [{}]
}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"breakpoint":{"action":"","canaryExpireTime":"","condition":"","createTime":"","evaluatedExpressions":[{"members":[],"name":"","status":{"description":{"format":"","parameters":[]},"isError":false,"refersTo":""},"type":"","value":"","varTableIndex":0}],"expressions":[],"finalTime":"","id":"","isFinalState":false,"labels":{},"location":{"column":0,"line":0,"path":""},"logLevel":"","logMessageFormat":"","stackFrames":[{"arguments":[{}],"function":"","locals":[{}],"location":{}}],"state":"","status":{},"userEmail":"","variableTable":[{}]}}'
};
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 = @{ @"breakpoint": @{ @"action": @"", @"canaryExpireTime": @"", @"condition": @"", @"createTime": @"", @"evaluatedExpressions": @[ @{ @"members": @[ ], @"name": @"", @"status": @{ @"description": @{ @"format": @"", @"parameters": @[ ] }, @"isError": @NO, @"refersTo": @"" }, @"type": @"", @"value": @"", @"varTableIndex": @0 } ], @"expressions": @[ ], @"finalTime": @"", @"id": @"", @"isFinalState": @NO, @"labels": @{ }, @"location": @{ @"column": @0, @"line": @0, @"path": @"" }, @"logLevel": @"", @"logMessageFormat": @"", @"stackFrames": @[ @{ @"arguments": @[ @{ } ], @"function": @"", @"locals": @[ @{ } ], @"location": @{ } } ], @"state": @"", @"status": @{ }, @"userEmail": @"", @"variableTable": @[ @{ } ] } };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"breakpoint\": {\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n }\n}" in
Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'breakpoint' => [
'action' => '',
'canaryExpireTime' => '',
'condition' => '',
'createTime' => '',
'evaluatedExpressions' => [
[
'members' => [
],
'name' => '',
'status' => [
'description' => [
'format' => '',
'parameters' => [
]
],
'isError' => null,
'refersTo' => ''
],
'type' => '',
'value' => '',
'varTableIndex' => 0
]
],
'expressions' => [
],
'finalTime' => '',
'id' => '',
'isFinalState' => null,
'labels' => [
],
'location' => [
'column' => 0,
'line' => 0,
'path' => ''
],
'logLevel' => '',
'logMessageFormat' => '',
'stackFrames' => [
[
'arguments' => [
[
]
],
'function' => '',
'locals' => [
[
]
],
'location' => [
]
]
],
'state' => '',
'status' => [
],
'userEmail' => '',
'variableTable' => [
[
]
]
]
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id', [
'body' => '{
"breakpoint": {
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": [
{
"members": [],
"name": "",
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"type": "",
"value": "",
"varTableIndex": 0
}
],
"expressions": [],
"finalTime": "",
"id": "",
"isFinalState": false,
"labels": {},
"location": {
"column": 0,
"line": 0,
"path": ""
},
"logLevel": "",
"logMessageFormat": "",
"stackFrames": [
{
"arguments": [
{}
],
"function": "",
"locals": [
{}
],
"location": {}
}
],
"state": "",
"status": {},
"userEmail": "",
"variableTable": [
{}
]
}
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'breakpoint' => [
'action' => '',
'canaryExpireTime' => '',
'condition' => '',
'createTime' => '',
'evaluatedExpressions' => [
[
'members' => [
],
'name' => '',
'status' => [
'description' => [
'format' => '',
'parameters' => [
]
],
'isError' => null,
'refersTo' => ''
],
'type' => '',
'value' => '',
'varTableIndex' => 0
]
],
'expressions' => [
],
'finalTime' => '',
'id' => '',
'isFinalState' => null,
'labels' => [
],
'location' => [
'column' => 0,
'line' => 0,
'path' => ''
],
'logLevel' => '',
'logMessageFormat' => '',
'stackFrames' => [
[
'arguments' => [
[
]
],
'function' => '',
'locals' => [
[
]
],
'location' => [
]
]
],
'state' => '',
'status' => [
],
'userEmail' => '',
'variableTable' => [
[
]
]
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'breakpoint' => [
'action' => '',
'canaryExpireTime' => '',
'condition' => '',
'createTime' => '',
'evaluatedExpressions' => [
[
'members' => [
],
'name' => '',
'status' => [
'description' => [
'format' => '',
'parameters' => [
]
],
'isError' => null,
'refersTo' => ''
],
'type' => '',
'value' => '',
'varTableIndex' => 0
]
],
'expressions' => [
],
'finalTime' => '',
'id' => '',
'isFinalState' => null,
'labels' => [
],
'location' => [
'column' => 0,
'line' => 0,
'path' => ''
],
'logLevel' => '',
'logMessageFormat' => '',
'stackFrames' => [
[
'arguments' => [
[
]
],
'function' => '',
'locals' => [
[
]
],
'location' => [
]
]
],
'state' => '',
'status' => [
],
'userEmail' => '',
'variableTable' => [
[
]
]
]
]));
$request->setRequestUrl('{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id');
$request->setRequestMethod('PUT');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"breakpoint": {
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": [
{
"members": [],
"name": "",
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"type": "",
"value": "",
"varTableIndex": 0
}
],
"expressions": [],
"finalTime": "",
"id": "",
"isFinalState": false,
"labels": {},
"location": {
"column": 0,
"line": 0,
"path": ""
},
"logLevel": "",
"logMessageFormat": "",
"stackFrames": [
{
"arguments": [
{}
],
"function": "",
"locals": [
{}
],
"location": {}
}
],
"state": "",
"status": {},
"userEmail": "",
"variableTable": [
{}
]
}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"breakpoint": {
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": [
{
"members": [],
"name": "",
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"type": "",
"value": "",
"varTableIndex": 0
}
],
"expressions": [],
"finalTime": "",
"id": "",
"isFinalState": false,
"labels": {},
"location": {
"column": 0,
"line": 0,
"path": ""
},
"logLevel": "",
"logMessageFormat": "",
"stackFrames": [
{
"arguments": [
{}
],
"function": "",
"locals": [
{}
],
"location": {}
}
],
"state": "",
"status": {},
"userEmail": "",
"variableTable": [
{}
]
}
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"breakpoint\": {\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n }\n}"
headers = { 'content-type': "application/json" }
conn.request("PUT", "/baseUrl/v2/controller/debuggees/:debuggeeId/breakpoints/:id", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id"
payload = { "breakpoint": {
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": [
{
"members": [],
"name": "",
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": False,
"refersTo": ""
},
"type": "",
"value": "",
"varTableIndex": 0
}
],
"expressions": [],
"finalTime": "",
"id": "",
"isFinalState": False,
"labels": {},
"location": {
"column": 0,
"line": 0,
"path": ""
},
"logLevel": "",
"logMessageFormat": "",
"stackFrames": [
{
"arguments": [{}],
"function": "",
"locals": [{}],
"location": {}
}
],
"state": "",
"status": {},
"userEmail": "",
"variableTable": [{}]
} }
headers = {"content-type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id"
payload <- "{\n \"breakpoint\": {\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n }\n}"
encode <- "json"
response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"breakpoint\": {\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n }\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.put('/baseUrl/v2/controller/debuggees/:debuggeeId/breakpoints/:id') do |req|
req.body = "{\n \"breakpoint\": {\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n }\n}"
end
puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id";
let payload = json!({"breakpoint": json!({
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": (
json!({
"members": (),
"name": "",
"status": json!({
"description": json!({
"format": "",
"parameters": ()
}),
"isError": false,
"refersTo": ""
}),
"type": "",
"value": "",
"varTableIndex": 0
})
),
"expressions": (),
"finalTime": "",
"id": "",
"isFinalState": false,
"labels": json!({}),
"location": json!({
"column": 0,
"line": 0,
"path": ""
}),
"logLevel": "",
"logMessageFormat": "",
"stackFrames": (
json!({
"arguments": (json!({})),
"function": "",
"locals": (json!({})),
"location": json!({})
})
),
"state": "",
"status": json!({}),
"userEmail": "",
"variableTable": (json!({}))
})});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id \
--header 'content-type: application/json' \
--data '{
"breakpoint": {
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": [
{
"members": [],
"name": "",
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"type": "",
"value": "",
"varTableIndex": 0
}
],
"expressions": [],
"finalTime": "",
"id": "",
"isFinalState": false,
"labels": {},
"location": {
"column": 0,
"line": 0,
"path": ""
},
"logLevel": "",
"logMessageFormat": "",
"stackFrames": [
{
"arguments": [
{}
],
"function": "",
"locals": [
{}
],
"location": {}
}
],
"state": "",
"status": {},
"userEmail": "",
"variableTable": [
{}
]
}
}'
echo '{
"breakpoint": {
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": [
{
"members": [],
"name": "",
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"type": "",
"value": "",
"varTableIndex": 0
}
],
"expressions": [],
"finalTime": "",
"id": "",
"isFinalState": false,
"labels": {},
"location": {
"column": 0,
"line": 0,
"path": ""
},
"logLevel": "",
"logMessageFormat": "",
"stackFrames": [
{
"arguments": [
{}
],
"function": "",
"locals": [
{}
],
"location": {}
}
],
"state": "",
"status": {},
"userEmail": "",
"variableTable": [
{}
]
}
}' | \
http PUT {{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id \
content-type:application/json
wget --quiet \
--method PUT \
--header 'content-type: application/json' \
--body-data '{\n "breakpoint": {\n "action": "",\n "canaryExpireTime": "",\n "condition": "",\n "createTime": "",\n "evaluatedExpressions": [\n {\n "members": [],\n "name": "",\n "status": {\n "description": {\n "format": "",\n "parameters": []\n },\n "isError": false,\n "refersTo": ""\n },\n "type": "",\n "value": "",\n "varTableIndex": 0\n }\n ],\n "expressions": [],\n "finalTime": "",\n "id": "",\n "isFinalState": false,\n "labels": {},\n "location": {\n "column": 0,\n "line": 0,\n "path": ""\n },\n "logLevel": "",\n "logMessageFormat": "",\n "stackFrames": [\n {\n "arguments": [\n {}\n ],\n "function": "",\n "locals": [\n {}\n ],\n "location": {}\n }\n ],\n "state": "",\n "status": {},\n "userEmail": "",\n "variableTable": [\n {}\n ]\n }\n}' \
--output-document \
- {{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id
import Foundation
let headers = ["content-type": "application/json"]
let parameters = ["breakpoint": [
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": [
[
"members": [],
"name": "",
"status": [
"description": [
"format": "",
"parameters": []
],
"isError": false,
"refersTo": ""
],
"type": "",
"value": "",
"varTableIndex": 0
]
],
"expressions": [],
"finalTime": "",
"id": "",
"isFinalState": false,
"labels": [],
"location": [
"column": 0,
"line": 0,
"path": ""
],
"logLevel": "",
"logMessageFormat": "",
"stackFrames": [
[
"arguments": [[]],
"function": "",
"locals": [[]],
"location": []
]
],
"state": "",
"status": [],
"userEmail": "",
"variableTable": [[]]
]] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/controller/debuggees/:debuggeeId/breakpoints/:id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
clouddebugger.controller.debuggees.register
{{baseUrl}}/v2/controller/debuggees/register
BODY json
{
"debuggee": {
"agentVersion": "",
"canaryMode": "",
"description": "",
"extSourceContexts": [
{
"context": {
"cloudRepo": {
"aliasContext": {
"kind": "",
"name": ""
},
"aliasName": "",
"repoId": {
"projectRepoId": {
"projectId": "",
"repoName": ""
},
"uid": ""
},
"revisionId": ""
},
"cloudWorkspace": {
"snapshotId": "",
"workspaceId": {
"name": "",
"repoId": {}
}
},
"gerrit": {
"aliasContext": {},
"aliasName": "",
"gerritProject": "",
"hostUri": "",
"revisionId": ""
},
"git": {
"revisionId": "",
"url": ""
}
},
"labels": {}
}
],
"id": "",
"isDisabled": false,
"isInactive": false,
"labels": {},
"project": "",
"sourceContexts": [
{}
],
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"uniquifier": ""
}
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/controller/debuggees/register");
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 \"debuggee\": {\n \"agentVersion\": \"\",\n \"canaryMode\": \"\",\n \"description\": \"\",\n \"extSourceContexts\": [\n {\n \"context\": {\n \"cloudRepo\": {\n \"aliasContext\": {\n \"kind\": \"\",\n \"name\": \"\"\n },\n \"aliasName\": \"\",\n \"repoId\": {\n \"projectRepoId\": {\n \"projectId\": \"\",\n \"repoName\": \"\"\n },\n \"uid\": \"\"\n },\n \"revisionId\": \"\"\n },\n \"cloudWorkspace\": {\n \"snapshotId\": \"\",\n \"workspaceId\": {\n \"name\": \"\",\n \"repoId\": {}\n }\n },\n \"gerrit\": {\n \"aliasContext\": {},\n \"aliasName\": \"\",\n \"gerritProject\": \"\",\n \"hostUri\": \"\",\n \"revisionId\": \"\"\n },\n \"git\": {\n \"revisionId\": \"\",\n \"url\": \"\"\n }\n },\n \"labels\": {}\n }\n ],\n \"id\": \"\",\n \"isDisabled\": false,\n \"isInactive\": false,\n \"labels\": {},\n \"project\": \"\",\n \"sourceContexts\": [\n {}\n ],\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"uniquifier\": \"\"\n }\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v2/controller/debuggees/register" {:content-type :json
:form-params {:debuggee {:agentVersion ""
:canaryMode ""
:description ""
:extSourceContexts [{:context {:cloudRepo {:aliasContext {:kind ""
:name ""}
:aliasName ""
:repoId {:projectRepoId {:projectId ""
:repoName ""}
:uid ""}
:revisionId ""}
:cloudWorkspace {:snapshotId ""
:workspaceId {:name ""
:repoId {}}}
:gerrit {:aliasContext {}
:aliasName ""
:gerritProject ""
:hostUri ""
:revisionId ""}
:git {:revisionId ""
:url ""}}
:labels {}}]
:id ""
:isDisabled false
:isInactive false
:labels {}
:project ""
:sourceContexts [{}]
:status {:description {:format ""
:parameters []}
:isError false
:refersTo ""}
:uniquifier ""}}})
require "http/client"
url = "{{baseUrl}}/v2/controller/debuggees/register"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"debuggee\": {\n \"agentVersion\": \"\",\n \"canaryMode\": \"\",\n \"description\": \"\",\n \"extSourceContexts\": [\n {\n \"context\": {\n \"cloudRepo\": {\n \"aliasContext\": {\n \"kind\": \"\",\n \"name\": \"\"\n },\n \"aliasName\": \"\",\n \"repoId\": {\n \"projectRepoId\": {\n \"projectId\": \"\",\n \"repoName\": \"\"\n },\n \"uid\": \"\"\n },\n \"revisionId\": \"\"\n },\n \"cloudWorkspace\": {\n \"snapshotId\": \"\",\n \"workspaceId\": {\n \"name\": \"\",\n \"repoId\": {}\n }\n },\n \"gerrit\": {\n \"aliasContext\": {},\n \"aliasName\": \"\",\n \"gerritProject\": \"\",\n \"hostUri\": \"\",\n \"revisionId\": \"\"\n },\n \"git\": {\n \"revisionId\": \"\",\n \"url\": \"\"\n }\n },\n \"labels\": {}\n }\n ],\n \"id\": \"\",\n \"isDisabled\": false,\n \"isInactive\": false,\n \"labels\": {},\n \"project\": \"\",\n \"sourceContexts\": [\n {}\n ],\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"uniquifier\": \"\"\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}}/v2/controller/debuggees/register"),
Content = new StringContent("{\n \"debuggee\": {\n \"agentVersion\": \"\",\n \"canaryMode\": \"\",\n \"description\": \"\",\n \"extSourceContexts\": [\n {\n \"context\": {\n \"cloudRepo\": {\n \"aliasContext\": {\n \"kind\": \"\",\n \"name\": \"\"\n },\n \"aliasName\": \"\",\n \"repoId\": {\n \"projectRepoId\": {\n \"projectId\": \"\",\n \"repoName\": \"\"\n },\n \"uid\": \"\"\n },\n \"revisionId\": \"\"\n },\n \"cloudWorkspace\": {\n \"snapshotId\": \"\",\n \"workspaceId\": {\n \"name\": \"\",\n \"repoId\": {}\n }\n },\n \"gerrit\": {\n \"aliasContext\": {},\n \"aliasName\": \"\",\n \"gerritProject\": \"\",\n \"hostUri\": \"\",\n \"revisionId\": \"\"\n },\n \"git\": {\n \"revisionId\": \"\",\n \"url\": \"\"\n }\n },\n \"labels\": {}\n }\n ],\n \"id\": \"\",\n \"isDisabled\": false,\n \"isInactive\": false,\n \"labels\": {},\n \"project\": \"\",\n \"sourceContexts\": [\n {}\n ],\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"uniquifier\": \"\"\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}}/v2/controller/debuggees/register");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"debuggee\": {\n \"agentVersion\": \"\",\n \"canaryMode\": \"\",\n \"description\": \"\",\n \"extSourceContexts\": [\n {\n \"context\": {\n \"cloudRepo\": {\n \"aliasContext\": {\n \"kind\": \"\",\n \"name\": \"\"\n },\n \"aliasName\": \"\",\n \"repoId\": {\n \"projectRepoId\": {\n \"projectId\": \"\",\n \"repoName\": \"\"\n },\n \"uid\": \"\"\n },\n \"revisionId\": \"\"\n },\n \"cloudWorkspace\": {\n \"snapshotId\": \"\",\n \"workspaceId\": {\n \"name\": \"\",\n \"repoId\": {}\n }\n },\n \"gerrit\": {\n \"aliasContext\": {},\n \"aliasName\": \"\",\n \"gerritProject\": \"\",\n \"hostUri\": \"\",\n \"revisionId\": \"\"\n },\n \"git\": {\n \"revisionId\": \"\",\n \"url\": \"\"\n }\n },\n \"labels\": {}\n }\n ],\n \"id\": \"\",\n \"isDisabled\": false,\n \"isInactive\": false,\n \"labels\": {},\n \"project\": \"\",\n \"sourceContexts\": [\n {}\n ],\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"uniquifier\": \"\"\n }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v2/controller/debuggees/register"
payload := strings.NewReader("{\n \"debuggee\": {\n \"agentVersion\": \"\",\n \"canaryMode\": \"\",\n \"description\": \"\",\n \"extSourceContexts\": [\n {\n \"context\": {\n \"cloudRepo\": {\n \"aliasContext\": {\n \"kind\": \"\",\n \"name\": \"\"\n },\n \"aliasName\": \"\",\n \"repoId\": {\n \"projectRepoId\": {\n \"projectId\": \"\",\n \"repoName\": \"\"\n },\n \"uid\": \"\"\n },\n \"revisionId\": \"\"\n },\n \"cloudWorkspace\": {\n \"snapshotId\": \"\",\n \"workspaceId\": {\n \"name\": \"\",\n \"repoId\": {}\n }\n },\n \"gerrit\": {\n \"aliasContext\": {},\n \"aliasName\": \"\",\n \"gerritProject\": \"\",\n \"hostUri\": \"\",\n \"revisionId\": \"\"\n },\n \"git\": {\n \"revisionId\": \"\",\n \"url\": \"\"\n }\n },\n \"labels\": {}\n }\n ],\n \"id\": \"\",\n \"isDisabled\": false,\n \"isInactive\": false,\n \"labels\": {},\n \"project\": \"\",\n \"sourceContexts\": [\n {}\n ],\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"uniquifier\": \"\"\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/v2/controller/debuggees/register HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1310
{
"debuggee": {
"agentVersion": "",
"canaryMode": "",
"description": "",
"extSourceContexts": [
{
"context": {
"cloudRepo": {
"aliasContext": {
"kind": "",
"name": ""
},
"aliasName": "",
"repoId": {
"projectRepoId": {
"projectId": "",
"repoName": ""
},
"uid": ""
},
"revisionId": ""
},
"cloudWorkspace": {
"snapshotId": "",
"workspaceId": {
"name": "",
"repoId": {}
}
},
"gerrit": {
"aliasContext": {},
"aliasName": "",
"gerritProject": "",
"hostUri": "",
"revisionId": ""
},
"git": {
"revisionId": "",
"url": ""
}
},
"labels": {}
}
],
"id": "",
"isDisabled": false,
"isInactive": false,
"labels": {},
"project": "",
"sourceContexts": [
{}
],
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"uniquifier": ""
}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/controller/debuggees/register")
.setHeader("content-type", "application/json")
.setBody("{\n \"debuggee\": {\n \"agentVersion\": \"\",\n \"canaryMode\": \"\",\n \"description\": \"\",\n \"extSourceContexts\": [\n {\n \"context\": {\n \"cloudRepo\": {\n \"aliasContext\": {\n \"kind\": \"\",\n \"name\": \"\"\n },\n \"aliasName\": \"\",\n \"repoId\": {\n \"projectRepoId\": {\n \"projectId\": \"\",\n \"repoName\": \"\"\n },\n \"uid\": \"\"\n },\n \"revisionId\": \"\"\n },\n \"cloudWorkspace\": {\n \"snapshotId\": \"\",\n \"workspaceId\": {\n \"name\": \"\",\n \"repoId\": {}\n }\n },\n \"gerrit\": {\n \"aliasContext\": {},\n \"aliasName\": \"\",\n \"gerritProject\": \"\",\n \"hostUri\": \"\",\n \"revisionId\": \"\"\n },\n \"git\": {\n \"revisionId\": \"\",\n \"url\": \"\"\n }\n },\n \"labels\": {}\n }\n ],\n \"id\": \"\",\n \"isDisabled\": false,\n \"isInactive\": false,\n \"labels\": {},\n \"project\": \"\",\n \"sourceContexts\": [\n {}\n ],\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"uniquifier\": \"\"\n }\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v2/controller/debuggees/register"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"debuggee\": {\n \"agentVersion\": \"\",\n \"canaryMode\": \"\",\n \"description\": \"\",\n \"extSourceContexts\": [\n {\n \"context\": {\n \"cloudRepo\": {\n \"aliasContext\": {\n \"kind\": \"\",\n \"name\": \"\"\n },\n \"aliasName\": \"\",\n \"repoId\": {\n \"projectRepoId\": {\n \"projectId\": \"\",\n \"repoName\": \"\"\n },\n \"uid\": \"\"\n },\n \"revisionId\": \"\"\n },\n \"cloudWorkspace\": {\n \"snapshotId\": \"\",\n \"workspaceId\": {\n \"name\": \"\",\n \"repoId\": {}\n }\n },\n \"gerrit\": {\n \"aliasContext\": {},\n \"aliasName\": \"\",\n \"gerritProject\": \"\",\n \"hostUri\": \"\",\n \"revisionId\": \"\"\n },\n \"git\": {\n \"revisionId\": \"\",\n \"url\": \"\"\n }\n },\n \"labels\": {}\n }\n ],\n \"id\": \"\",\n \"isDisabled\": false,\n \"isInactive\": false,\n \"labels\": {},\n \"project\": \"\",\n \"sourceContexts\": [\n {}\n ],\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"uniquifier\": \"\"\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 \"debuggee\": {\n \"agentVersion\": \"\",\n \"canaryMode\": \"\",\n \"description\": \"\",\n \"extSourceContexts\": [\n {\n \"context\": {\n \"cloudRepo\": {\n \"aliasContext\": {\n \"kind\": \"\",\n \"name\": \"\"\n },\n \"aliasName\": \"\",\n \"repoId\": {\n \"projectRepoId\": {\n \"projectId\": \"\",\n \"repoName\": \"\"\n },\n \"uid\": \"\"\n },\n \"revisionId\": \"\"\n },\n \"cloudWorkspace\": {\n \"snapshotId\": \"\",\n \"workspaceId\": {\n \"name\": \"\",\n \"repoId\": {}\n }\n },\n \"gerrit\": {\n \"aliasContext\": {},\n \"aliasName\": \"\",\n \"gerritProject\": \"\",\n \"hostUri\": \"\",\n \"revisionId\": \"\"\n },\n \"git\": {\n \"revisionId\": \"\",\n \"url\": \"\"\n }\n },\n \"labels\": {}\n }\n ],\n \"id\": \"\",\n \"isDisabled\": false,\n \"isInactive\": false,\n \"labels\": {},\n \"project\": \"\",\n \"sourceContexts\": [\n {}\n ],\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"uniquifier\": \"\"\n }\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v2/controller/debuggees/register")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/controller/debuggees/register")
.header("content-type", "application/json")
.body("{\n \"debuggee\": {\n \"agentVersion\": \"\",\n \"canaryMode\": \"\",\n \"description\": \"\",\n \"extSourceContexts\": [\n {\n \"context\": {\n \"cloudRepo\": {\n \"aliasContext\": {\n \"kind\": \"\",\n \"name\": \"\"\n },\n \"aliasName\": \"\",\n \"repoId\": {\n \"projectRepoId\": {\n \"projectId\": \"\",\n \"repoName\": \"\"\n },\n \"uid\": \"\"\n },\n \"revisionId\": \"\"\n },\n \"cloudWorkspace\": {\n \"snapshotId\": \"\",\n \"workspaceId\": {\n \"name\": \"\",\n \"repoId\": {}\n }\n },\n \"gerrit\": {\n \"aliasContext\": {},\n \"aliasName\": \"\",\n \"gerritProject\": \"\",\n \"hostUri\": \"\",\n \"revisionId\": \"\"\n },\n \"git\": {\n \"revisionId\": \"\",\n \"url\": \"\"\n }\n },\n \"labels\": {}\n }\n ],\n \"id\": \"\",\n \"isDisabled\": false,\n \"isInactive\": false,\n \"labels\": {},\n \"project\": \"\",\n \"sourceContexts\": [\n {}\n ],\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"uniquifier\": \"\"\n }\n}")
.asString();
const data = JSON.stringify({
debuggee: {
agentVersion: '',
canaryMode: '',
description: '',
extSourceContexts: [
{
context: {
cloudRepo: {
aliasContext: {
kind: '',
name: ''
},
aliasName: '',
repoId: {
projectRepoId: {
projectId: '',
repoName: ''
},
uid: ''
},
revisionId: ''
},
cloudWorkspace: {
snapshotId: '',
workspaceId: {
name: '',
repoId: {}
}
},
gerrit: {
aliasContext: {},
aliasName: '',
gerritProject: '',
hostUri: '',
revisionId: ''
},
git: {
revisionId: '',
url: ''
}
},
labels: {}
}
],
id: '',
isDisabled: false,
isInactive: false,
labels: {},
project: '',
sourceContexts: [
{}
],
status: {
description: {
format: '',
parameters: []
},
isError: false,
refersTo: ''
},
uniquifier: ''
}
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v2/controller/debuggees/register');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v2/controller/debuggees/register',
headers: {'content-type': 'application/json'},
data: {
debuggee: {
agentVersion: '',
canaryMode: '',
description: '',
extSourceContexts: [
{
context: {
cloudRepo: {
aliasContext: {kind: '', name: ''},
aliasName: '',
repoId: {projectRepoId: {projectId: '', repoName: ''}, uid: ''},
revisionId: ''
},
cloudWorkspace: {snapshotId: '', workspaceId: {name: '', repoId: {}}},
gerrit: {
aliasContext: {},
aliasName: '',
gerritProject: '',
hostUri: '',
revisionId: ''
},
git: {revisionId: '', url: ''}
},
labels: {}
}
],
id: '',
isDisabled: false,
isInactive: false,
labels: {},
project: '',
sourceContexts: [{}],
status: {description: {format: '', parameters: []}, isError: false, refersTo: ''},
uniquifier: ''
}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v2/controller/debuggees/register';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"debuggee":{"agentVersion":"","canaryMode":"","description":"","extSourceContexts":[{"context":{"cloudRepo":{"aliasContext":{"kind":"","name":""},"aliasName":"","repoId":{"projectRepoId":{"projectId":"","repoName":""},"uid":""},"revisionId":""},"cloudWorkspace":{"snapshotId":"","workspaceId":{"name":"","repoId":{}}},"gerrit":{"aliasContext":{},"aliasName":"","gerritProject":"","hostUri":"","revisionId":""},"git":{"revisionId":"","url":""}},"labels":{}}],"id":"","isDisabled":false,"isInactive":false,"labels":{},"project":"","sourceContexts":[{}],"status":{"description":{"format":"","parameters":[]},"isError":false,"refersTo":""},"uniquifier":""}}'
};
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}}/v2/controller/debuggees/register',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "debuggee": {\n "agentVersion": "",\n "canaryMode": "",\n "description": "",\n "extSourceContexts": [\n {\n "context": {\n "cloudRepo": {\n "aliasContext": {\n "kind": "",\n "name": ""\n },\n "aliasName": "",\n "repoId": {\n "projectRepoId": {\n "projectId": "",\n "repoName": ""\n },\n "uid": ""\n },\n "revisionId": ""\n },\n "cloudWorkspace": {\n "snapshotId": "",\n "workspaceId": {\n "name": "",\n "repoId": {}\n }\n },\n "gerrit": {\n "aliasContext": {},\n "aliasName": "",\n "gerritProject": "",\n "hostUri": "",\n "revisionId": ""\n },\n "git": {\n "revisionId": "",\n "url": ""\n }\n },\n "labels": {}\n }\n ],\n "id": "",\n "isDisabled": false,\n "isInactive": false,\n "labels": {},\n "project": "",\n "sourceContexts": [\n {}\n ],\n "status": {\n "description": {\n "format": "",\n "parameters": []\n },\n "isError": false,\n "refersTo": ""\n },\n "uniquifier": ""\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 \"debuggee\": {\n \"agentVersion\": \"\",\n \"canaryMode\": \"\",\n \"description\": \"\",\n \"extSourceContexts\": [\n {\n \"context\": {\n \"cloudRepo\": {\n \"aliasContext\": {\n \"kind\": \"\",\n \"name\": \"\"\n },\n \"aliasName\": \"\",\n \"repoId\": {\n \"projectRepoId\": {\n \"projectId\": \"\",\n \"repoName\": \"\"\n },\n \"uid\": \"\"\n },\n \"revisionId\": \"\"\n },\n \"cloudWorkspace\": {\n \"snapshotId\": \"\",\n \"workspaceId\": {\n \"name\": \"\",\n \"repoId\": {}\n }\n },\n \"gerrit\": {\n \"aliasContext\": {},\n \"aliasName\": \"\",\n \"gerritProject\": \"\",\n \"hostUri\": \"\",\n \"revisionId\": \"\"\n },\n \"git\": {\n \"revisionId\": \"\",\n \"url\": \"\"\n }\n },\n \"labels\": {}\n }\n ],\n \"id\": \"\",\n \"isDisabled\": false,\n \"isInactive\": false,\n \"labels\": {},\n \"project\": \"\",\n \"sourceContexts\": [\n {}\n ],\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"uniquifier\": \"\"\n }\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v2/controller/debuggees/register")
.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/v2/controller/debuggees/register',
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({
debuggee: {
agentVersion: '',
canaryMode: '',
description: '',
extSourceContexts: [
{
context: {
cloudRepo: {
aliasContext: {kind: '', name: ''},
aliasName: '',
repoId: {projectRepoId: {projectId: '', repoName: ''}, uid: ''},
revisionId: ''
},
cloudWorkspace: {snapshotId: '', workspaceId: {name: '', repoId: {}}},
gerrit: {
aliasContext: {},
aliasName: '',
gerritProject: '',
hostUri: '',
revisionId: ''
},
git: {revisionId: '', url: ''}
},
labels: {}
}
],
id: '',
isDisabled: false,
isInactive: false,
labels: {},
project: '',
sourceContexts: [{}],
status: {description: {format: '', parameters: []}, isError: false, refersTo: ''},
uniquifier: ''
}
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v2/controller/debuggees/register',
headers: {'content-type': 'application/json'},
body: {
debuggee: {
agentVersion: '',
canaryMode: '',
description: '',
extSourceContexts: [
{
context: {
cloudRepo: {
aliasContext: {kind: '', name: ''},
aliasName: '',
repoId: {projectRepoId: {projectId: '', repoName: ''}, uid: ''},
revisionId: ''
},
cloudWorkspace: {snapshotId: '', workspaceId: {name: '', repoId: {}}},
gerrit: {
aliasContext: {},
aliasName: '',
gerritProject: '',
hostUri: '',
revisionId: ''
},
git: {revisionId: '', url: ''}
},
labels: {}
}
],
id: '',
isDisabled: false,
isInactive: false,
labels: {},
project: '',
sourceContexts: [{}],
status: {description: {format: '', parameters: []}, isError: false, refersTo: ''},
uniquifier: ''
}
},
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}}/v2/controller/debuggees/register');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
debuggee: {
agentVersion: '',
canaryMode: '',
description: '',
extSourceContexts: [
{
context: {
cloudRepo: {
aliasContext: {
kind: '',
name: ''
},
aliasName: '',
repoId: {
projectRepoId: {
projectId: '',
repoName: ''
},
uid: ''
},
revisionId: ''
},
cloudWorkspace: {
snapshotId: '',
workspaceId: {
name: '',
repoId: {}
}
},
gerrit: {
aliasContext: {},
aliasName: '',
gerritProject: '',
hostUri: '',
revisionId: ''
},
git: {
revisionId: '',
url: ''
}
},
labels: {}
}
],
id: '',
isDisabled: false,
isInactive: false,
labels: {},
project: '',
sourceContexts: [
{}
],
status: {
description: {
format: '',
parameters: []
},
isError: false,
refersTo: ''
},
uniquifier: ''
}
});
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}}/v2/controller/debuggees/register',
headers: {'content-type': 'application/json'},
data: {
debuggee: {
agentVersion: '',
canaryMode: '',
description: '',
extSourceContexts: [
{
context: {
cloudRepo: {
aliasContext: {kind: '', name: ''},
aliasName: '',
repoId: {projectRepoId: {projectId: '', repoName: ''}, uid: ''},
revisionId: ''
},
cloudWorkspace: {snapshotId: '', workspaceId: {name: '', repoId: {}}},
gerrit: {
aliasContext: {},
aliasName: '',
gerritProject: '',
hostUri: '',
revisionId: ''
},
git: {revisionId: '', url: ''}
},
labels: {}
}
],
id: '',
isDisabled: false,
isInactive: false,
labels: {},
project: '',
sourceContexts: [{}],
status: {description: {format: '', parameters: []}, isError: false, refersTo: ''},
uniquifier: ''
}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v2/controller/debuggees/register';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"debuggee":{"agentVersion":"","canaryMode":"","description":"","extSourceContexts":[{"context":{"cloudRepo":{"aliasContext":{"kind":"","name":""},"aliasName":"","repoId":{"projectRepoId":{"projectId":"","repoName":""},"uid":""},"revisionId":""},"cloudWorkspace":{"snapshotId":"","workspaceId":{"name":"","repoId":{}}},"gerrit":{"aliasContext":{},"aliasName":"","gerritProject":"","hostUri":"","revisionId":""},"git":{"revisionId":"","url":""}},"labels":{}}],"id":"","isDisabled":false,"isInactive":false,"labels":{},"project":"","sourceContexts":[{}],"status":{"description":{"format":"","parameters":[]},"isError":false,"refersTo":""},"uniquifier":""}}'
};
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 = @{ @"debuggee": @{ @"agentVersion": @"", @"canaryMode": @"", @"description": @"", @"extSourceContexts": @[ @{ @"context": @{ @"cloudRepo": @{ @"aliasContext": @{ @"kind": @"", @"name": @"" }, @"aliasName": @"", @"repoId": @{ @"projectRepoId": @{ @"projectId": @"", @"repoName": @"" }, @"uid": @"" }, @"revisionId": @"" }, @"cloudWorkspace": @{ @"snapshotId": @"", @"workspaceId": @{ @"name": @"", @"repoId": @{ } } }, @"gerrit": @{ @"aliasContext": @{ }, @"aliasName": @"", @"gerritProject": @"", @"hostUri": @"", @"revisionId": @"" }, @"git": @{ @"revisionId": @"", @"url": @"" } }, @"labels": @{ } } ], @"id": @"", @"isDisabled": @NO, @"isInactive": @NO, @"labels": @{ }, @"project": @"", @"sourceContexts": @[ @{ } ], @"status": @{ @"description": @{ @"format": @"", @"parameters": @[ ] }, @"isError": @NO, @"refersTo": @"" }, @"uniquifier": @"" } };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/controller/debuggees/register"]
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}}/v2/controller/debuggees/register" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"debuggee\": {\n \"agentVersion\": \"\",\n \"canaryMode\": \"\",\n \"description\": \"\",\n \"extSourceContexts\": [\n {\n \"context\": {\n \"cloudRepo\": {\n \"aliasContext\": {\n \"kind\": \"\",\n \"name\": \"\"\n },\n \"aliasName\": \"\",\n \"repoId\": {\n \"projectRepoId\": {\n \"projectId\": \"\",\n \"repoName\": \"\"\n },\n \"uid\": \"\"\n },\n \"revisionId\": \"\"\n },\n \"cloudWorkspace\": {\n \"snapshotId\": \"\",\n \"workspaceId\": {\n \"name\": \"\",\n \"repoId\": {}\n }\n },\n \"gerrit\": {\n \"aliasContext\": {},\n \"aliasName\": \"\",\n \"gerritProject\": \"\",\n \"hostUri\": \"\",\n \"revisionId\": \"\"\n },\n \"git\": {\n \"revisionId\": \"\",\n \"url\": \"\"\n }\n },\n \"labels\": {}\n }\n ],\n \"id\": \"\",\n \"isDisabled\": false,\n \"isInactive\": false,\n \"labels\": {},\n \"project\": \"\",\n \"sourceContexts\": [\n {}\n ],\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"uniquifier\": \"\"\n }\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v2/controller/debuggees/register",
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([
'debuggee' => [
'agentVersion' => '',
'canaryMode' => '',
'description' => '',
'extSourceContexts' => [
[
'context' => [
'cloudRepo' => [
'aliasContext' => [
'kind' => '',
'name' => ''
],
'aliasName' => '',
'repoId' => [
'projectRepoId' => [
'projectId' => '',
'repoName' => ''
],
'uid' => ''
],
'revisionId' => ''
],
'cloudWorkspace' => [
'snapshotId' => '',
'workspaceId' => [
'name' => '',
'repoId' => [
]
]
],
'gerrit' => [
'aliasContext' => [
],
'aliasName' => '',
'gerritProject' => '',
'hostUri' => '',
'revisionId' => ''
],
'git' => [
'revisionId' => '',
'url' => ''
]
],
'labels' => [
]
]
],
'id' => '',
'isDisabled' => null,
'isInactive' => null,
'labels' => [
],
'project' => '',
'sourceContexts' => [
[
]
],
'status' => [
'description' => [
'format' => '',
'parameters' => [
]
],
'isError' => null,
'refersTo' => ''
],
'uniquifier' => ''
]
]),
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}}/v2/controller/debuggees/register', [
'body' => '{
"debuggee": {
"agentVersion": "",
"canaryMode": "",
"description": "",
"extSourceContexts": [
{
"context": {
"cloudRepo": {
"aliasContext": {
"kind": "",
"name": ""
},
"aliasName": "",
"repoId": {
"projectRepoId": {
"projectId": "",
"repoName": ""
},
"uid": ""
},
"revisionId": ""
},
"cloudWorkspace": {
"snapshotId": "",
"workspaceId": {
"name": "",
"repoId": {}
}
},
"gerrit": {
"aliasContext": {},
"aliasName": "",
"gerritProject": "",
"hostUri": "",
"revisionId": ""
},
"git": {
"revisionId": "",
"url": ""
}
},
"labels": {}
}
],
"id": "",
"isDisabled": false,
"isInactive": false,
"labels": {},
"project": "",
"sourceContexts": [
{}
],
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"uniquifier": ""
}
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v2/controller/debuggees/register');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'debuggee' => [
'agentVersion' => '',
'canaryMode' => '',
'description' => '',
'extSourceContexts' => [
[
'context' => [
'cloudRepo' => [
'aliasContext' => [
'kind' => '',
'name' => ''
],
'aliasName' => '',
'repoId' => [
'projectRepoId' => [
'projectId' => '',
'repoName' => ''
],
'uid' => ''
],
'revisionId' => ''
],
'cloudWorkspace' => [
'snapshotId' => '',
'workspaceId' => [
'name' => '',
'repoId' => [
]
]
],
'gerrit' => [
'aliasContext' => [
],
'aliasName' => '',
'gerritProject' => '',
'hostUri' => '',
'revisionId' => ''
],
'git' => [
'revisionId' => '',
'url' => ''
]
],
'labels' => [
]
]
],
'id' => '',
'isDisabled' => null,
'isInactive' => null,
'labels' => [
],
'project' => '',
'sourceContexts' => [
[
]
],
'status' => [
'description' => [
'format' => '',
'parameters' => [
]
],
'isError' => null,
'refersTo' => ''
],
'uniquifier' => ''
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'debuggee' => [
'agentVersion' => '',
'canaryMode' => '',
'description' => '',
'extSourceContexts' => [
[
'context' => [
'cloudRepo' => [
'aliasContext' => [
'kind' => '',
'name' => ''
],
'aliasName' => '',
'repoId' => [
'projectRepoId' => [
'projectId' => '',
'repoName' => ''
],
'uid' => ''
],
'revisionId' => ''
],
'cloudWorkspace' => [
'snapshotId' => '',
'workspaceId' => [
'name' => '',
'repoId' => [
]
]
],
'gerrit' => [
'aliasContext' => [
],
'aliasName' => '',
'gerritProject' => '',
'hostUri' => '',
'revisionId' => ''
],
'git' => [
'revisionId' => '',
'url' => ''
]
],
'labels' => [
]
]
],
'id' => '',
'isDisabled' => null,
'isInactive' => null,
'labels' => [
],
'project' => '',
'sourceContexts' => [
[
]
],
'status' => [
'description' => [
'format' => '',
'parameters' => [
]
],
'isError' => null,
'refersTo' => ''
],
'uniquifier' => ''
]
]));
$request->setRequestUrl('{{baseUrl}}/v2/controller/debuggees/register');
$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}}/v2/controller/debuggees/register' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"debuggee": {
"agentVersion": "",
"canaryMode": "",
"description": "",
"extSourceContexts": [
{
"context": {
"cloudRepo": {
"aliasContext": {
"kind": "",
"name": ""
},
"aliasName": "",
"repoId": {
"projectRepoId": {
"projectId": "",
"repoName": ""
},
"uid": ""
},
"revisionId": ""
},
"cloudWorkspace": {
"snapshotId": "",
"workspaceId": {
"name": "",
"repoId": {}
}
},
"gerrit": {
"aliasContext": {},
"aliasName": "",
"gerritProject": "",
"hostUri": "",
"revisionId": ""
},
"git": {
"revisionId": "",
"url": ""
}
},
"labels": {}
}
],
"id": "",
"isDisabled": false,
"isInactive": false,
"labels": {},
"project": "",
"sourceContexts": [
{}
],
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"uniquifier": ""
}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/controller/debuggees/register' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"debuggee": {
"agentVersion": "",
"canaryMode": "",
"description": "",
"extSourceContexts": [
{
"context": {
"cloudRepo": {
"aliasContext": {
"kind": "",
"name": ""
},
"aliasName": "",
"repoId": {
"projectRepoId": {
"projectId": "",
"repoName": ""
},
"uid": ""
},
"revisionId": ""
},
"cloudWorkspace": {
"snapshotId": "",
"workspaceId": {
"name": "",
"repoId": {}
}
},
"gerrit": {
"aliasContext": {},
"aliasName": "",
"gerritProject": "",
"hostUri": "",
"revisionId": ""
},
"git": {
"revisionId": "",
"url": ""
}
},
"labels": {}
}
],
"id": "",
"isDisabled": false,
"isInactive": false,
"labels": {},
"project": "",
"sourceContexts": [
{}
],
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"uniquifier": ""
}
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"debuggee\": {\n \"agentVersion\": \"\",\n \"canaryMode\": \"\",\n \"description\": \"\",\n \"extSourceContexts\": [\n {\n \"context\": {\n \"cloudRepo\": {\n \"aliasContext\": {\n \"kind\": \"\",\n \"name\": \"\"\n },\n \"aliasName\": \"\",\n \"repoId\": {\n \"projectRepoId\": {\n \"projectId\": \"\",\n \"repoName\": \"\"\n },\n \"uid\": \"\"\n },\n \"revisionId\": \"\"\n },\n \"cloudWorkspace\": {\n \"snapshotId\": \"\",\n \"workspaceId\": {\n \"name\": \"\",\n \"repoId\": {}\n }\n },\n \"gerrit\": {\n \"aliasContext\": {},\n \"aliasName\": \"\",\n \"gerritProject\": \"\",\n \"hostUri\": \"\",\n \"revisionId\": \"\"\n },\n \"git\": {\n \"revisionId\": \"\",\n \"url\": \"\"\n }\n },\n \"labels\": {}\n }\n ],\n \"id\": \"\",\n \"isDisabled\": false,\n \"isInactive\": false,\n \"labels\": {},\n \"project\": \"\",\n \"sourceContexts\": [\n {}\n ],\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"uniquifier\": \"\"\n }\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v2/controller/debuggees/register", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v2/controller/debuggees/register"
payload = { "debuggee": {
"agentVersion": "",
"canaryMode": "",
"description": "",
"extSourceContexts": [
{
"context": {
"cloudRepo": {
"aliasContext": {
"kind": "",
"name": ""
},
"aliasName": "",
"repoId": {
"projectRepoId": {
"projectId": "",
"repoName": ""
},
"uid": ""
},
"revisionId": ""
},
"cloudWorkspace": {
"snapshotId": "",
"workspaceId": {
"name": "",
"repoId": {}
}
},
"gerrit": {
"aliasContext": {},
"aliasName": "",
"gerritProject": "",
"hostUri": "",
"revisionId": ""
},
"git": {
"revisionId": "",
"url": ""
}
},
"labels": {}
}
],
"id": "",
"isDisabled": False,
"isInactive": False,
"labels": {},
"project": "",
"sourceContexts": [{}],
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": False,
"refersTo": ""
},
"uniquifier": ""
} }
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v2/controller/debuggees/register"
payload <- "{\n \"debuggee\": {\n \"agentVersion\": \"\",\n \"canaryMode\": \"\",\n \"description\": \"\",\n \"extSourceContexts\": [\n {\n \"context\": {\n \"cloudRepo\": {\n \"aliasContext\": {\n \"kind\": \"\",\n \"name\": \"\"\n },\n \"aliasName\": \"\",\n \"repoId\": {\n \"projectRepoId\": {\n \"projectId\": \"\",\n \"repoName\": \"\"\n },\n \"uid\": \"\"\n },\n \"revisionId\": \"\"\n },\n \"cloudWorkspace\": {\n \"snapshotId\": \"\",\n \"workspaceId\": {\n \"name\": \"\",\n \"repoId\": {}\n }\n },\n \"gerrit\": {\n \"aliasContext\": {},\n \"aliasName\": \"\",\n \"gerritProject\": \"\",\n \"hostUri\": \"\",\n \"revisionId\": \"\"\n },\n \"git\": {\n \"revisionId\": \"\",\n \"url\": \"\"\n }\n },\n \"labels\": {}\n }\n ],\n \"id\": \"\",\n \"isDisabled\": false,\n \"isInactive\": false,\n \"labels\": {},\n \"project\": \"\",\n \"sourceContexts\": [\n {}\n ],\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"uniquifier\": \"\"\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}}/v2/controller/debuggees/register")
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 \"debuggee\": {\n \"agentVersion\": \"\",\n \"canaryMode\": \"\",\n \"description\": \"\",\n \"extSourceContexts\": [\n {\n \"context\": {\n \"cloudRepo\": {\n \"aliasContext\": {\n \"kind\": \"\",\n \"name\": \"\"\n },\n \"aliasName\": \"\",\n \"repoId\": {\n \"projectRepoId\": {\n \"projectId\": \"\",\n \"repoName\": \"\"\n },\n \"uid\": \"\"\n },\n \"revisionId\": \"\"\n },\n \"cloudWorkspace\": {\n \"snapshotId\": \"\",\n \"workspaceId\": {\n \"name\": \"\",\n \"repoId\": {}\n }\n },\n \"gerrit\": {\n \"aliasContext\": {},\n \"aliasName\": \"\",\n \"gerritProject\": \"\",\n \"hostUri\": \"\",\n \"revisionId\": \"\"\n },\n \"git\": {\n \"revisionId\": \"\",\n \"url\": \"\"\n }\n },\n \"labels\": {}\n }\n ],\n \"id\": \"\",\n \"isDisabled\": false,\n \"isInactive\": false,\n \"labels\": {},\n \"project\": \"\",\n \"sourceContexts\": [\n {}\n ],\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"uniquifier\": \"\"\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/v2/controller/debuggees/register') do |req|
req.body = "{\n \"debuggee\": {\n \"agentVersion\": \"\",\n \"canaryMode\": \"\",\n \"description\": \"\",\n \"extSourceContexts\": [\n {\n \"context\": {\n \"cloudRepo\": {\n \"aliasContext\": {\n \"kind\": \"\",\n \"name\": \"\"\n },\n \"aliasName\": \"\",\n \"repoId\": {\n \"projectRepoId\": {\n \"projectId\": \"\",\n \"repoName\": \"\"\n },\n \"uid\": \"\"\n },\n \"revisionId\": \"\"\n },\n \"cloudWorkspace\": {\n \"snapshotId\": \"\",\n \"workspaceId\": {\n \"name\": \"\",\n \"repoId\": {}\n }\n },\n \"gerrit\": {\n \"aliasContext\": {},\n \"aliasName\": \"\",\n \"gerritProject\": \"\",\n \"hostUri\": \"\",\n \"revisionId\": \"\"\n },\n \"git\": {\n \"revisionId\": \"\",\n \"url\": \"\"\n }\n },\n \"labels\": {}\n }\n ],\n \"id\": \"\",\n \"isDisabled\": false,\n \"isInactive\": false,\n \"labels\": {},\n \"project\": \"\",\n \"sourceContexts\": [\n {}\n ],\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"uniquifier\": \"\"\n }\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v2/controller/debuggees/register";
let payload = json!({"debuggee": json!({
"agentVersion": "",
"canaryMode": "",
"description": "",
"extSourceContexts": (
json!({
"context": json!({
"cloudRepo": json!({
"aliasContext": json!({
"kind": "",
"name": ""
}),
"aliasName": "",
"repoId": json!({
"projectRepoId": json!({
"projectId": "",
"repoName": ""
}),
"uid": ""
}),
"revisionId": ""
}),
"cloudWorkspace": json!({
"snapshotId": "",
"workspaceId": json!({
"name": "",
"repoId": json!({})
})
}),
"gerrit": json!({
"aliasContext": json!({}),
"aliasName": "",
"gerritProject": "",
"hostUri": "",
"revisionId": ""
}),
"git": json!({
"revisionId": "",
"url": ""
})
}),
"labels": json!({})
})
),
"id": "",
"isDisabled": false,
"isInactive": false,
"labels": json!({}),
"project": "",
"sourceContexts": (json!({})),
"status": json!({
"description": json!({
"format": "",
"parameters": ()
}),
"isError": false,
"refersTo": ""
}),
"uniquifier": ""
})});
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}}/v2/controller/debuggees/register \
--header 'content-type: application/json' \
--data '{
"debuggee": {
"agentVersion": "",
"canaryMode": "",
"description": "",
"extSourceContexts": [
{
"context": {
"cloudRepo": {
"aliasContext": {
"kind": "",
"name": ""
},
"aliasName": "",
"repoId": {
"projectRepoId": {
"projectId": "",
"repoName": ""
},
"uid": ""
},
"revisionId": ""
},
"cloudWorkspace": {
"snapshotId": "",
"workspaceId": {
"name": "",
"repoId": {}
}
},
"gerrit": {
"aliasContext": {},
"aliasName": "",
"gerritProject": "",
"hostUri": "",
"revisionId": ""
},
"git": {
"revisionId": "",
"url": ""
}
},
"labels": {}
}
],
"id": "",
"isDisabled": false,
"isInactive": false,
"labels": {},
"project": "",
"sourceContexts": [
{}
],
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"uniquifier": ""
}
}'
echo '{
"debuggee": {
"agentVersion": "",
"canaryMode": "",
"description": "",
"extSourceContexts": [
{
"context": {
"cloudRepo": {
"aliasContext": {
"kind": "",
"name": ""
},
"aliasName": "",
"repoId": {
"projectRepoId": {
"projectId": "",
"repoName": ""
},
"uid": ""
},
"revisionId": ""
},
"cloudWorkspace": {
"snapshotId": "",
"workspaceId": {
"name": "",
"repoId": {}
}
},
"gerrit": {
"aliasContext": {},
"aliasName": "",
"gerritProject": "",
"hostUri": "",
"revisionId": ""
},
"git": {
"revisionId": "",
"url": ""
}
},
"labels": {}
}
],
"id": "",
"isDisabled": false,
"isInactive": false,
"labels": {},
"project": "",
"sourceContexts": [
{}
],
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"uniquifier": ""
}
}' | \
http POST {{baseUrl}}/v2/controller/debuggees/register \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "debuggee": {\n "agentVersion": "",\n "canaryMode": "",\n "description": "",\n "extSourceContexts": [\n {\n "context": {\n "cloudRepo": {\n "aliasContext": {\n "kind": "",\n "name": ""\n },\n "aliasName": "",\n "repoId": {\n "projectRepoId": {\n "projectId": "",\n "repoName": ""\n },\n "uid": ""\n },\n "revisionId": ""\n },\n "cloudWorkspace": {\n "snapshotId": "",\n "workspaceId": {\n "name": "",\n "repoId": {}\n }\n },\n "gerrit": {\n "aliasContext": {},\n "aliasName": "",\n "gerritProject": "",\n "hostUri": "",\n "revisionId": ""\n },\n "git": {\n "revisionId": "",\n "url": ""\n }\n },\n "labels": {}\n }\n ],\n "id": "",\n "isDisabled": false,\n "isInactive": false,\n "labels": {},\n "project": "",\n "sourceContexts": [\n {}\n ],\n "status": {\n "description": {\n "format": "",\n "parameters": []\n },\n "isError": false,\n "refersTo": ""\n },\n "uniquifier": ""\n }\n}' \
--output-document \
- {{baseUrl}}/v2/controller/debuggees/register
import Foundation
let headers = ["content-type": "application/json"]
let parameters = ["debuggee": [
"agentVersion": "",
"canaryMode": "",
"description": "",
"extSourceContexts": [
[
"context": [
"cloudRepo": [
"aliasContext": [
"kind": "",
"name": ""
],
"aliasName": "",
"repoId": [
"projectRepoId": [
"projectId": "",
"repoName": ""
],
"uid": ""
],
"revisionId": ""
],
"cloudWorkspace": [
"snapshotId": "",
"workspaceId": [
"name": "",
"repoId": []
]
],
"gerrit": [
"aliasContext": [],
"aliasName": "",
"gerritProject": "",
"hostUri": "",
"revisionId": ""
],
"git": [
"revisionId": "",
"url": ""
]
],
"labels": []
]
],
"id": "",
"isDisabled": false,
"isInactive": false,
"labels": [],
"project": "",
"sourceContexts": [[]],
"status": [
"description": [
"format": "",
"parameters": []
],
"isError": false,
"refersTo": ""
],
"uniquifier": ""
]] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/controller/debuggees/register")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
clouddebugger.debugger.debuggees.breakpoints.delete
{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId
QUERY PARAMS
debuggeeId
breakpointId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId")
require "http/client"
url = "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId"
response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId"))
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId")
.delete(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId';
const options = {method: 'DELETE'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId',
method: 'DELETE',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId")
.delete(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId';
const options = {method: 'DELETE'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId" in
Client.call `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId');
echo $response->getBody();
setUrl('{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId');
$request->setMethod(HTTP_METH_DELETE);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId' -Method DELETE
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId' -Method DELETE
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("DELETE", "/baseUrl/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId"
response = requests.delete(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId"
response <- VERB("DELETE", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId";
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId
http DELETE {{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId
wget --quiet \
--method DELETE \
--output-document \
- {{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
clouddebugger.debugger.debuggees.breakpoints.get
{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId
QUERY PARAMS
debuggeeId
breakpointId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId")
require "http/client"
url = "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId');
echo $response->getBody();
setUrl('{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId
http GET {{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/:breakpointId")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
clouddebugger.debugger.debuggees.breakpoints.list
{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints
QUERY PARAMS
debuggeeId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints")
require "http/client"
url = "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v2/debugger/debuggees/:debuggeeId/breakpoints HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v2/debugger/debuggees/:debuggeeId/breakpoints',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints');
echo $response->getBody();
setUrl('{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v2/debugger/debuggees/:debuggeeId/breakpoints")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v2/debugger/debuggees/:debuggeeId/breakpoints') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints
http GET {{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
clouddebugger.debugger.debuggees.breakpoints.set
{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set
QUERY PARAMS
debuggeeId
BODY json
{
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": [
{
"members": [],
"name": "",
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"type": "",
"value": "",
"varTableIndex": 0
}
],
"expressions": [],
"finalTime": "",
"id": "",
"isFinalState": false,
"labels": {},
"location": {
"column": 0,
"line": 0,
"path": ""
},
"logLevel": "",
"logMessageFormat": "",
"stackFrames": [
{
"arguments": [
{}
],
"function": "",
"locals": [
{}
],
"location": {}
}
],
"state": "",
"status": {},
"userEmail": "",
"variableTable": [
{}
]
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set");
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 \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set" {:content-type :json
:form-params {:action ""
:canaryExpireTime ""
:condition ""
:createTime ""
:evaluatedExpressions [{:members []
:name ""
:status {:description {:format ""
:parameters []}
:isError false
:refersTo ""}
:type ""
:value ""
:varTableIndex 0}]
:expressions []
:finalTime ""
:id ""
:isFinalState false
:labels {}
:location {:column 0
:line 0
:path ""}
:logLevel ""
:logMessageFormat ""
:stackFrames [{:arguments [{}]
:function ""
:locals [{}]
:location {}}]
:state ""
:status {}
:userEmail ""
:variableTable [{}]}})
require "http/client"
url = "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set"),
Content = new StringContent("{\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set"
payload := strings.NewReader("{\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/v2/debugger/debuggees/:debuggeeId/breakpoints/set HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 838
{
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": [
{
"members": [],
"name": "",
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"type": "",
"value": "",
"varTableIndex": 0
}
],
"expressions": [],
"finalTime": "",
"id": "",
"isFinalState": false,
"labels": {},
"location": {
"column": 0,
"line": 0,
"path": ""
},
"logLevel": "",
"logMessageFormat": "",
"stackFrames": [
{
"arguments": [
{}
],
"function": "",
"locals": [
{}
],
"location": {}
}
],
"state": "",
"status": {},
"userEmail": "",
"variableTable": [
{}
]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set")
.setHeader("content-type", "application/json")
.setBody("{\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set")
.header("content-type", "application/json")
.body("{\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n}")
.asString();
const data = JSON.stringify({
action: '',
canaryExpireTime: '',
condition: '',
createTime: '',
evaluatedExpressions: [
{
members: [],
name: '',
status: {
description: {
format: '',
parameters: []
},
isError: false,
refersTo: ''
},
type: '',
value: '',
varTableIndex: 0
}
],
expressions: [],
finalTime: '',
id: '',
isFinalState: false,
labels: {},
location: {
column: 0,
line: 0,
path: ''
},
logLevel: '',
logMessageFormat: '',
stackFrames: [
{
arguments: [
{}
],
function: '',
locals: [
{}
],
location: {}
}
],
state: '',
status: {},
userEmail: '',
variableTable: [
{}
]
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set',
headers: {'content-type': 'application/json'},
data: {
action: '',
canaryExpireTime: '',
condition: '',
createTime: '',
evaluatedExpressions: [
{
members: [],
name: '',
status: {description: {format: '', parameters: []}, isError: false, refersTo: ''},
type: '',
value: '',
varTableIndex: 0
}
],
expressions: [],
finalTime: '',
id: '',
isFinalState: false,
labels: {},
location: {column: 0, line: 0, path: ''},
logLevel: '',
logMessageFormat: '',
stackFrames: [{arguments: [{}], function: '', locals: [{}], location: {}}],
state: '',
status: {},
userEmail: '',
variableTable: [{}]
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"action":"","canaryExpireTime":"","condition":"","createTime":"","evaluatedExpressions":[{"members":[],"name":"","status":{"description":{"format":"","parameters":[]},"isError":false,"refersTo":""},"type":"","value":"","varTableIndex":0}],"expressions":[],"finalTime":"","id":"","isFinalState":false,"labels":{},"location":{"column":0,"line":0,"path":""},"logLevel":"","logMessageFormat":"","stackFrames":[{"arguments":[{}],"function":"","locals":[{}],"location":{}}],"state":"","status":{},"userEmail":"","variableTable":[{}]}'
};
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}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "action": "",\n "canaryExpireTime": "",\n "condition": "",\n "createTime": "",\n "evaluatedExpressions": [\n {\n "members": [],\n "name": "",\n "status": {\n "description": {\n "format": "",\n "parameters": []\n },\n "isError": false,\n "refersTo": ""\n },\n "type": "",\n "value": "",\n "varTableIndex": 0\n }\n ],\n "expressions": [],\n "finalTime": "",\n "id": "",\n "isFinalState": false,\n "labels": {},\n "location": {\n "column": 0,\n "line": 0,\n "path": ""\n },\n "logLevel": "",\n "logMessageFormat": "",\n "stackFrames": [\n {\n "arguments": [\n {}\n ],\n "function": "",\n "locals": [\n {}\n ],\n "location": {}\n }\n ],\n "state": "",\n "status": {},\n "userEmail": "",\n "variableTable": [\n {}\n ]\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n}")
val request = Request.Builder()
.url("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set")
.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/v2/debugger/debuggees/:debuggeeId/breakpoints/set',
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({
action: '',
canaryExpireTime: '',
condition: '',
createTime: '',
evaluatedExpressions: [
{
members: [],
name: '',
status: {description: {format: '', parameters: []}, isError: false, refersTo: ''},
type: '',
value: '',
varTableIndex: 0
}
],
expressions: [],
finalTime: '',
id: '',
isFinalState: false,
labels: {},
location: {column: 0, line: 0, path: ''},
logLevel: '',
logMessageFormat: '',
stackFrames: [{arguments: [{}], function: '', locals: [{}], location: {}}],
state: '',
status: {},
userEmail: '',
variableTable: [{}]
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set',
headers: {'content-type': 'application/json'},
body: {
action: '',
canaryExpireTime: '',
condition: '',
createTime: '',
evaluatedExpressions: [
{
members: [],
name: '',
status: {description: {format: '', parameters: []}, isError: false, refersTo: ''},
type: '',
value: '',
varTableIndex: 0
}
],
expressions: [],
finalTime: '',
id: '',
isFinalState: false,
labels: {},
location: {column: 0, line: 0, path: ''},
logLevel: '',
logMessageFormat: '',
stackFrames: [{arguments: [{}], function: '', locals: [{}], location: {}}],
state: '',
status: {},
userEmail: '',
variableTable: [{}]
},
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}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
action: '',
canaryExpireTime: '',
condition: '',
createTime: '',
evaluatedExpressions: [
{
members: [],
name: '',
status: {
description: {
format: '',
parameters: []
},
isError: false,
refersTo: ''
},
type: '',
value: '',
varTableIndex: 0
}
],
expressions: [],
finalTime: '',
id: '',
isFinalState: false,
labels: {},
location: {
column: 0,
line: 0,
path: ''
},
logLevel: '',
logMessageFormat: '',
stackFrames: [
{
arguments: [
{}
],
function: '',
locals: [
{}
],
location: {}
}
],
state: '',
status: {},
userEmail: '',
variableTable: [
{}
]
});
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}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set',
headers: {'content-type': 'application/json'},
data: {
action: '',
canaryExpireTime: '',
condition: '',
createTime: '',
evaluatedExpressions: [
{
members: [],
name: '',
status: {description: {format: '', parameters: []}, isError: false, refersTo: ''},
type: '',
value: '',
varTableIndex: 0
}
],
expressions: [],
finalTime: '',
id: '',
isFinalState: false,
labels: {},
location: {column: 0, line: 0, path: ''},
logLevel: '',
logMessageFormat: '',
stackFrames: [{arguments: [{}], function: '', locals: [{}], location: {}}],
state: '',
status: {},
userEmail: '',
variableTable: [{}]
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"action":"","canaryExpireTime":"","condition":"","createTime":"","evaluatedExpressions":[{"members":[],"name":"","status":{"description":{"format":"","parameters":[]},"isError":false,"refersTo":""},"type":"","value":"","varTableIndex":0}],"expressions":[],"finalTime":"","id":"","isFinalState":false,"labels":{},"location":{"column":0,"line":0,"path":""},"logLevel":"","logMessageFormat":"","stackFrames":[{"arguments":[{}],"function":"","locals":[{}],"location":{}}],"state":"","status":{},"userEmail":"","variableTable":[{}]}'
};
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 = @{ @"action": @"",
@"canaryExpireTime": @"",
@"condition": @"",
@"createTime": @"",
@"evaluatedExpressions": @[ @{ @"members": @[ ], @"name": @"", @"status": @{ @"description": @{ @"format": @"", @"parameters": @[ ] }, @"isError": @NO, @"refersTo": @"" }, @"type": @"", @"value": @"", @"varTableIndex": @0 } ],
@"expressions": @[ ],
@"finalTime": @"",
@"id": @"",
@"isFinalState": @NO,
@"labels": @{ },
@"location": @{ @"column": @0, @"line": @0, @"path": @"" },
@"logLevel": @"",
@"logMessageFormat": @"",
@"stackFrames": @[ @{ @"arguments": @[ @{ } ], @"function": @"", @"locals": @[ @{ } ], @"location": @{ } } ],
@"state": @"",
@"status": @{ },
@"userEmail": @"",
@"variableTable": @[ @{ } ] };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set"]
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}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set",
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([
'action' => '',
'canaryExpireTime' => '',
'condition' => '',
'createTime' => '',
'evaluatedExpressions' => [
[
'members' => [
],
'name' => '',
'status' => [
'description' => [
'format' => '',
'parameters' => [
]
],
'isError' => null,
'refersTo' => ''
],
'type' => '',
'value' => '',
'varTableIndex' => 0
]
],
'expressions' => [
],
'finalTime' => '',
'id' => '',
'isFinalState' => null,
'labels' => [
],
'location' => [
'column' => 0,
'line' => 0,
'path' => ''
],
'logLevel' => '',
'logMessageFormat' => '',
'stackFrames' => [
[
'arguments' => [
[
]
],
'function' => '',
'locals' => [
[
]
],
'location' => [
]
]
],
'state' => '',
'status' => [
],
'userEmail' => '',
'variableTable' => [
[
]
]
]),
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}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set', [
'body' => '{
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": [
{
"members": [],
"name": "",
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"type": "",
"value": "",
"varTableIndex": 0
}
],
"expressions": [],
"finalTime": "",
"id": "",
"isFinalState": false,
"labels": {},
"location": {
"column": 0,
"line": 0,
"path": ""
},
"logLevel": "",
"logMessageFormat": "",
"stackFrames": [
{
"arguments": [
{}
],
"function": "",
"locals": [
{}
],
"location": {}
}
],
"state": "",
"status": {},
"userEmail": "",
"variableTable": [
{}
]
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'action' => '',
'canaryExpireTime' => '',
'condition' => '',
'createTime' => '',
'evaluatedExpressions' => [
[
'members' => [
],
'name' => '',
'status' => [
'description' => [
'format' => '',
'parameters' => [
]
],
'isError' => null,
'refersTo' => ''
],
'type' => '',
'value' => '',
'varTableIndex' => 0
]
],
'expressions' => [
],
'finalTime' => '',
'id' => '',
'isFinalState' => null,
'labels' => [
],
'location' => [
'column' => 0,
'line' => 0,
'path' => ''
],
'logLevel' => '',
'logMessageFormat' => '',
'stackFrames' => [
[
'arguments' => [
[
]
],
'function' => '',
'locals' => [
[
]
],
'location' => [
]
]
],
'state' => '',
'status' => [
],
'userEmail' => '',
'variableTable' => [
[
]
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'action' => '',
'canaryExpireTime' => '',
'condition' => '',
'createTime' => '',
'evaluatedExpressions' => [
[
'members' => [
],
'name' => '',
'status' => [
'description' => [
'format' => '',
'parameters' => [
]
],
'isError' => null,
'refersTo' => ''
],
'type' => '',
'value' => '',
'varTableIndex' => 0
]
],
'expressions' => [
],
'finalTime' => '',
'id' => '',
'isFinalState' => null,
'labels' => [
],
'location' => [
'column' => 0,
'line' => 0,
'path' => ''
],
'logLevel' => '',
'logMessageFormat' => '',
'stackFrames' => [
[
'arguments' => [
[
]
],
'function' => '',
'locals' => [
[
]
],
'location' => [
]
]
],
'state' => '',
'status' => [
],
'userEmail' => '',
'variableTable' => [
[
]
]
]));
$request->setRequestUrl('{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set');
$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}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": [
{
"members": [],
"name": "",
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"type": "",
"value": "",
"varTableIndex": 0
}
],
"expressions": [],
"finalTime": "",
"id": "",
"isFinalState": false,
"labels": {},
"location": {
"column": 0,
"line": 0,
"path": ""
},
"logLevel": "",
"logMessageFormat": "",
"stackFrames": [
{
"arguments": [
{}
],
"function": "",
"locals": [
{}
],
"location": {}
}
],
"state": "",
"status": {},
"userEmail": "",
"variableTable": [
{}
]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": [
{
"members": [],
"name": "",
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"type": "",
"value": "",
"varTableIndex": 0
}
],
"expressions": [],
"finalTime": "",
"id": "",
"isFinalState": false,
"labels": {},
"location": {
"column": 0,
"line": 0,
"path": ""
},
"logLevel": "",
"logMessageFormat": "",
"stackFrames": [
{
"arguments": [
{}
],
"function": "",
"locals": [
{}
],
"location": {}
}
],
"state": "",
"status": {},
"userEmail": "",
"variableTable": [
{}
]
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/v2/debugger/debuggees/:debuggeeId/breakpoints/set", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set"
payload = {
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": [
{
"members": [],
"name": "",
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": False,
"refersTo": ""
},
"type": "",
"value": "",
"varTableIndex": 0
}
],
"expressions": [],
"finalTime": "",
"id": "",
"isFinalState": False,
"labels": {},
"location": {
"column": 0,
"line": 0,
"path": ""
},
"logLevel": "",
"logMessageFormat": "",
"stackFrames": [
{
"arguments": [{}],
"function": "",
"locals": [{}],
"location": {}
}
],
"state": "",
"status": {},
"userEmail": "",
"variableTable": [{}]
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set"
payload <- "{\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set")
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 \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/v2/debugger/debuggees/:debuggeeId/breakpoints/set') do |req|
req.body = "{\n \"action\": \"\",\n \"canaryExpireTime\": \"\",\n \"condition\": \"\",\n \"createTime\": \"\",\n \"evaluatedExpressions\": [\n {\n \"members\": [],\n \"name\": \"\",\n \"status\": {\n \"description\": {\n \"format\": \"\",\n \"parameters\": []\n },\n \"isError\": false,\n \"refersTo\": \"\"\n },\n \"type\": \"\",\n \"value\": \"\",\n \"varTableIndex\": 0\n }\n ],\n \"expressions\": [],\n \"finalTime\": \"\",\n \"id\": \"\",\n \"isFinalState\": false,\n \"labels\": {},\n \"location\": {\n \"column\": 0,\n \"line\": 0,\n \"path\": \"\"\n },\n \"logLevel\": \"\",\n \"logMessageFormat\": \"\",\n \"stackFrames\": [\n {\n \"arguments\": [\n {}\n ],\n \"function\": \"\",\n \"locals\": [\n {}\n ],\n \"location\": {}\n }\n ],\n \"state\": \"\",\n \"status\": {},\n \"userEmail\": \"\",\n \"variableTable\": [\n {}\n ]\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set";
let payload = json!({
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": (
json!({
"members": (),
"name": "",
"status": json!({
"description": json!({
"format": "",
"parameters": ()
}),
"isError": false,
"refersTo": ""
}),
"type": "",
"value": "",
"varTableIndex": 0
})
),
"expressions": (),
"finalTime": "",
"id": "",
"isFinalState": false,
"labels": json!({}),
"location": json!({
"column": 0,
"line": 0,
"path": ""
}),
"logLevel": "",
"logMessageFormat": "",
"stackFrames": (
json!({
"arguments": (json!({})),
"function": "",
"locals": (json!({})),
"location": json!({})
})
),
"state": "",
"status": json!({}),
"userEmail": "",
"variableTable": (json!({}))
});
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}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set \
--header 'content-type: application/json' \
--data '{
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": [
{
"members": [],
"name": "",
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"type": "",
"value": "",
"varTableIndex": 0
}
],
"expressions": [],
"finalTime": "",
"id": "",
"isFinalState": false,
"labels": {},
"location": {
"column": 0,
"line": 0,
"path": ""
},
"logLevel": "",
"logMessageFormat": "",
"stackFrames": [
{
"arguments": [
{}
],
"function": "",
"locals": [
{}
],
"location": {}
}
],
"state": "",
"status": {},
"userEmail": "",
"variableTable": [
{}
]
}'
echo '{
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": [
{
"members": [],
"name": "",
"status": {
"description": {
"format": "",
"parameters": []
},
"isError": false,
"refersTo": ""
},
"type": "",
"value": "",
"varTableIndex": 0
}
],
"expressions": [],
"finalTime": "",
"id": "",
"isFinalState": false,
"labels": {},
"location": {
"column": 0,
"line": 0,
"path": ""
},
"logLevel": "",
"logMessageFormat": "",
"stackFrames": [
{
"arguments": [
{}
],
"function": "",
"locals": [
{}
],
"location": {}
}
],
"state": "",
"status": {},
"userEmail": "",
"variableTable": [
{}
]
}' | \
http POST {{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "action": "",\n "canaryExpireTime": "",\n "condition": "",\n "createTime": "",\n "evaluatedExpressions": [\n {\n "members": [],\n "name": "",\n "status": {\n "description": {\n "format": "",\n "parameters": []\n },\n "isError": false,\n "refersTo": ""\n },\n "type": "",\n "value": "",\n "varTableIndex": 0\n }\n ],\n "expressions": [],\n "finalTime": "",\n "id": "",\n "isFinalState": false,\n "labels": {},\n "location": {\n "column": 0,\n "line": 0,\n "path": ""\n },\n "logLevel": "",\n "logMessageFormat": "",\n "stackFrames": [\n {\n "arguments": [\n {}\n ],\n "function": "",\n "locals": [\n {}\n ],\n "location": {}\n }\n ],\n "state": "",\n "status": {},\n "userEmail": "",\n "variableTable": [\n {}\n ]\n}' \
--output-document \
- {{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"action": "",
"canaryExpireTime": "",
"condition": "",
"createTime": "",
"evaluatedExpressions": [
[
"members": [],
"name": "",
"status": [
"description": [
"format": "",
"parameters": []
],
"isError": false,
"refersTo": ""
],
"type": "",
"value": "",
"varTableIndex": 0
]
],
"expressions": [],
"finalTime": "",
"id": "",
"isFinalState": false,
"labels": [],
"location": [
"column": 0,
"line": 0,
"path": ""
],
"logLevel": "",
"logMessageFormat": "",
"stackFrames": [
[
"arguments": [[]],
"function": "",
"locals": [[]],
"location": []
]
],
"state": "",
"status": [],
"userEmail": "",
"variableTable": [[]]
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/debugger/debuggees/:debuggeeId/breakpoints/set")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
clouddebugger.debugger.debuggees.list
{{baseUrl}}/v2/debugger/debuggees
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/debugger/debuggees");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/v2/debugger/debuggees")
require "http/client"
url = "{{baseUrl}}/v2/debugger/debuggees"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/v2/debugger/debuggees"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/debugger/debuggees");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/v2/debugger/debuggees"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/v2/debugger/debuggees HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/debugger/debuggees")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/v2/debugger/debuggees"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/v2/debugger/debuggees")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/debugger/debuggees")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/v2/debugger/debuggees');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/v2/debugger/debuggees'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/v2/debugger/debuggees';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/v2/debugger/debuggees',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/v2/debugger/debuggees")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/v2/debugger/debuggees',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/v2/debugger/debuggees'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/v2/debugger/debuggees');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/v2/debugger/debuggees'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/v2/debugger/debuggees';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/debugger/debuggees"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/v2/debugger/debuggees" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/v2/debugger/debuggees",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/v2/debugger/debuggees');
echo $response->getBody();
setUrl('{{baseUrl}}/v2/debugger/debuggees');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/debugger/debuggees');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/debugger/debuggees' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/debugger/debuggees' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/v2/debugger/debuggees")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/v2/debugger/debuggees"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/v2/debugger/debuggees"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/v2/debugger/debuggees")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/v2/debugger/debuggees') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/v2/debugger/debuggees";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/v2/debugger/debuggees
http GET {{baseUrl}}/v2/debugger/debuggees
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/v2/debugger/debuggees
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/debugger/debuggees")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()