AWS Glue DataBrew
POST
BatchDeleteRecipeVersion
{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion
QUERY PARAMS
name
BODY json
{
"RecipeVersions": []
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion");
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 \"RecipeVersions\": []\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion" {:content-type :json
:form-params {:RecipeVersions []}})
require "http/client"
url = "{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"RecipeVersions\": []\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}}/recipes/:name/batchDeleteRecipeVersion"),
Content = new StringContent("{\n \"RecipeVersions\": []\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}}/recipes/:name/batchDeleteRecipeVersion");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"RecipeVersions\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion"
payload := strings.NewReader("{\n \"RecipeVersions\": []\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/recipes/:name/batchDeleteRecipeVersion HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 26
{
"RecipeVersions": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion")
.setHeader("content-type", "application/json")
.setBody("{\n \"RecipeVersions\": []\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"RecipeVersions\": []\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 \"RecipeVersions\": []\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion")
.header("content-type", "application/json")
.body("{\n \"RecipeVersions\": []\n}")
.asString();
const data = JSON.stringify({
RecipeVersions: []
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion',
headers: {'content-type': 'application/json'},
data: {RecipeVersions: []}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"RecipeVersions":[]}'
};
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}}/recipes/:name/batchDeleteRecipeVersion',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "RecipeVersions": []\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"RecipeVersions\": []\n}")
val request = Request.Builder()
.url("{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion")
.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/recipes/:name/batchDeleteRecipeVersion',
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({RecipeVersions: []}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion',
headers: {'content-type': 'application/json'},
body: {RecipeVersions: []},
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}}/recipes/:name/batchDeleteRecipeVersion');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
RecipeVersions: []
});
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}}/recipes/:name/batchDeleteRecipeVersion',
headers: {'content-type': 'application/json'},
data: {RecipeVersions: []}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"RecipeVersions":[]}'
};
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 = @{ @"RecipeVersions": @[ ] };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion"]
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}}/recipes/:name/batchDeleteRecipeVersion" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"RecipeVersions\": []\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion",
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([
'RecipeVersions' => [
]
]),
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}}/recipes/:name/batchDeleteRecipeVersion', [
'body' => '{
"RecipeVersions": []
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'RecipeVersions' => [
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'RecipeVersions' => [
]
]));
$request->setRequestUrl('{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion');
$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}}/recipes/:name/batchDeleteRecipeVersion' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"RecipeVersions": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"RecipeVersions": []
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"RecipeVersions\": []\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/recipes/:name/batchDeleteRecipeVersion", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion"
payload = { "RecipeVersions": [] }
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion"
payload <- "{\n \"RecipeVersions\": []\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}}/recipes/:name/batchDeleteRecipeVersion")
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 \"RecipeVersions\": []\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/recipes/:name/batchDeleteRecipeVersion') do |req|
req.body = "{\n \"RecipeVersions\": []\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion";
let payload = json!({"RecipeVersions": ()});
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}}/recipes/:name/batchDeleteRecipeVersion \
--header 'content-type: application/json' \
--data '{
"RecipeVersions": []
}'
echo '{
"RecipeVersions": []
}' | \
http POST {{baseUrl}}/recipes/:name/batchDeleteRecipeVersion \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "RecipeVersions": []\n}' \
--output-document \
- {{baseUrl}}/recipes/:name/batchDeleteRecipeVersion
import Foundation
let headers = ["content-type": "application/json"]
let parameters = ["RecipeVersions": []] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/recipes/:name/batchDeleteRecipeVersion")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
CreateDataset
{{baseUrl}}/datasets
BODY json
{
"Name": "",
"Format": "",
"FormatOptions": {
"Json": "",
"Excel": "",
"Csv": ""
},
"Input": {
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
},
"PathOptions": {
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
},
"Tags": {}
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/datasets");
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 \"Name\": \"\",\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n },\n \"Tags\": {}\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/datasets" {:content-type :json
:form-params {:Name ""
:Format ""
:FormatOptions {:Json ""
:Excel ""
:Csv ""}
:Input {:S3InputDefinition ""
:DataCatalogInputDefinition ""
:DatabaseInputDefinition ""
:Metadata ""}
:PathOptions {:LastModifiedDateCondition ""
:FilesLimit ""
:Parameters ""}
:Tags {}}})
require "http/client"
url = "{{baseUrl}}/datasets"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"Name\": \"\",\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n },\n \"Tags\": {}\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}}/datasets"),
Content = new StringContent("{\n \"Name\": \"\",\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n },\n \"Tags\": {}\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}}/datasets");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"Name\": \"\",\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n },\n \"Tags\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/datasets"
payload := strings.NewReader("{\n \"Name\": \"\",\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n },\n \"Tags\": {}\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/datasets HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 362
{
"Name": "",
"Format": "",
"FormatOptions": {
"Json": "",
"Excel": "",
"Csv": ""
},
"Input": {
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
},
"PathOptions": {
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
},
"Tags": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/datasets")
.setHeader("content-type", "application/json")
.setBody("{\n \"Name\": \"\",\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n },\n \"Tags\": {}\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/datasets"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"Name\": \"\",\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n },\n \"Tags\": {}\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 \"Name\": \"\",\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n },\n \"Tags\": {}\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/datasets")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/datasets")
.header("content-type", "application/json")
.body("{\n \"Name\": \"\",\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n },\n \"Tags\": {}\n}")
.asString();
const data = JSON.stringify({
Name: '',
Format: '',
FormatOptions: {
Json: '',
Excel: '',
Csv: ''
},
Input: {
S3InputDefinition: '',
DataCatalogInputDefinition: '',
DatabaseInputDefinition: '',
Metadata: ''
},
PathOptions: {
LastModifiedDateCondition: '',
FilesLimit: '',
Parameters: ''
},
Tags: {}
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/datasets');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/datasets',
headers: {'content-type': 'application/json'},
data: {
Name: '',
Format: '',
FormatOptions: {Json: '', Excel: '', Csv: ''},
Input: {
S3InputDefinition: '',
DataCatalogInputDefinition: '',
DatabaseInputDefinition: '',
Metadata: ''
},
PathOptions: {LastModifiedDateCondition: '', FilesLimit: '', Parameters: ''},
Tags: {}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/datasets';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"Name":"","Format":"","FormatOptions":{"Json":"","Excel":"","Csv":""},"Input":{"S3InputDefinition":"","DataCatalogInputDefinition":"","DatabaseInputDefinition":"","Metadata":""},"PathOptions":{"LastModifiedDateCondition":"","FilesLimit":"","Parameters":""},"Tags":{}}'
};
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}}/datasets',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "Name": "",\n "Format": "",\n "FormatOptions": {\n "Json": "",\n "Excel": "",\n "Csv": ""\n },\n "Input": {\n "S3InputDefinition": "",\n "DataCatalogInputDefinition": "",\n "DatabaseInputDefinition": "",\n "Metadata": ""\n },\n "PathOptions": {\n "LastModifiedDateCondition": "",\n "FilesLimit": "",\n "Parameters": ""\n },\n "Tags": {}\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"Name\": \"\",\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n },\n \"Tags\": {}\n}")
val request = Request.Builder()
.url("{{baseUrl}}/datasets")
.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/datasets',
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({
Name: '',
Format: '',
FormatOptions: {Json: '', Excel: '', Csv: ''},
Input: {
S3InputDefinition: '',
DataCatalogInputDefinition: '',
DatabaseInputDefinition: '',
Metadata: ''
},
PathOptions: {LastModifiedDateCondition: '', FilesLimit: '', Parameters: ''},
Tags: {}
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/datasets',
headers: {'content-type': 'application/json'},
body: {
Name: '',
Format: '',
FormatOptions: {Json: '', Excel: '', Csv: ''},
Input: {
S3InputDefinition: '',
DataCatalogInputDefinition: '',
DatabaseInputDefinition: '',
Metadata: ''
},
PathOptions: {LastModifiedDateCondition: '', FilesLimit: '', Parameters: ''},
Tags: {}
},
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}}/datasets');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
Name: '',
Format: '',
FormatOptions: {
Json: '',
Excel: '',
Csv: ''
},
Input: {
S3InputDefinition: '',
DataCatalogInputDefinition: '',
DatabaseInputDefinition: '',
Metadata: ''
},
PathOptions: {
LastModifiedDateCondition: '',
FilesLimit: '',
Parameters: ''
},
Tags: {}
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/datasets',
headers: {'content-type': 'application/json'},
data: {
Name: '',
Format: '',
FormatOptions: {Json: '', Excel: '', Csv: ''},
Input: {
S3InputDefinition: '',
DataCatalogInputDefinition: '',
DatabaseInputDefinition: '',
Metadata: ''
},
PathOptions: {LastModifiedDateCondition: '', FilesLimit: '', Parameters: ''},
Tags: {}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/datasets';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"Name":"","Format":"","FormatOptions":{"Json":"","Excel":"","Csv":""},"Input":{"S3InputDefinition":"","DataCatalogInputDefinition":"","DatabaseInputDefinition":"","Metadata":""},"PathOptions":{"LastModifiedDateCondition":"","FilesLimit":"","Parameters":""},"Tags":{}}'
};
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 = @{ @"Name": @"",
@"Format": @"",
@"FormatOptions": @{ @"Json": @"", @"Excel": @"", @"Csv": @"" },
@"Input": @{ @"S3InputDefinition": @"", @"DataCatalogInputDefinition": @"", @"DatabaseInputDefinition": @"", @"Metadata": @"" },
@"PathOptions": @{ @"LastModifiedDateCondition": @"", @"FilesLimit": @"", @"Parameters": @"" },
@"Tags": @{ } };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/datasets"]
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}}/datasets" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"Name\": \"\",\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n },\n \"Tags\": {}\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/datasets",
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([
'Name' => '',
'Format' => '',
'FormatOptions' => [
'Json' => '',
'Excel' => '',
'Csv' => ''
],
'Input' => [
'S3InputDefinition' => '',
'DataCatalogInputDefinition' => '',
'DatabaseInputDefinition' => '',
'Metadata' => ''
],
'PathOptions' => [
'LastModifiedDateCondition' => '',
'FilesLimit' => '',
'Parameters' => ''
],
'Tags' => [
]
]),
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}}/datasets', [
'body' => '{
"Name": "",
"Format": "",
"FormatOptions": {
"Json": "",
"Excel": "",
"Csv": ""
},
"Input": {
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
},
"PathOptions": {
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
},
"Tags": {}
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/datasets');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'Name' => '',
'Format' => '',
'FormatOptions' => [
'Json' => '',
'Excel' => '',
'Csv' => ''
],
'Input' => [
'S3InputDefinition' => '',
'DataCatalogInputDefinition' => '',
'DatabaseInputDefinition' => '',
'Metadata' => ''
],
'PathOptions' => [
'LastModifiedDateCondition' => '',
'FilesLimit' => '',
'Parameters' => ''
],
'Tags' => [
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'Name' => '',
'Format' => '',
'FormatOptions' => [
'Json' => '',
'Excel' => '',
'Csv' => ''
],
'Input' => [
'S3InputDefinition' => '',
'DataCatalogInputDefinition' => '',
'DatabaseInputDefinition' => '',
'Metadata' => ''
],
'PathOptions' => [
'LastModifiedDateCondition' => '',
'FilesLimit' => '',
'Parameters' => ''
],
'Tags' => [
]
]));
$request->setRequestUrl('{{baseUrl}}/datasets');
$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}}/datasets' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"Name": "",
"Format": "",
"FormatOptions": {
"Json": "",
"Excel": "",
"Csv": ""
},
"Input": {
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
},
"PathOptions": {
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
},
"Tags": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/datasets' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"Name": "",
"Format": "",
"FormatOptions": {
"Json": "",
"Excel": "",
"Csv": ""
},
"Input": {
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
},
"PathOptions": {
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
},
"Tags": {}
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"Name\": \"\",\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n },\n \"Tags\": {}\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/datasets", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/datasets"
payload = {
"Name": "",
"Format": "",
"FormatOptions": {
"Json": "",
"Excel": "",
"Csv": ""
},
"Input": {
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
},
"PathOptions": {
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
},
"Tags": {}
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/datasets"
payload <- "{\n \"Name\": \"\",\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n },\n \"Tags\": {}\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}}/datasets")
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 \"Name\": \"\",\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n },\n \"Tags\": {}\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/datasets') do |req|
req.body = "{\n \"Name\": \"\",\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n },\n \"Tags\": {}\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/datasets";
let payload = json!({
"Name": "",
"Format": "",
"FormatOptions": json!({
"Json": "",
"Excel": "",
"Csv": ""
}),
"Input": json!({
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
}),
"PathOptions": json!({
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
}),
"Tags": 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}}/datasets \
--header 'content-type: application/json' \
--data '{
"Name": "",
"Format": "",
"FormatOptions": {
"Json": "",
"Excel": "",
"Csv": ""
},
"Input": {
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
},
"PathOptions": {
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
},
"Tags": {}
}'
echo '{
"Name": "",
"Format": "",
"FormatOptions": {
"Json": "",
"Excel": "",
"Csv": ""
},
"Input": {
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
},
"PathOptions": {
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
},
"Tags": {}
}' | \
http POST {{baseUrl}}/datasets \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "Name": "",\n "Format": "",\n "FormatOptions": {\n "Json": "",\n "Excel": "",\n "Csv": ""\n },\n "Input": {\n "S3InputDefinition": "",\n "DataCatalogInputDefinition": "",\n "DatabaseInputDefinition": "",\n "Metadata": ""\n },\n "PathOptions": {\n "LastModifiedDateCondition": "",\n "FilesLimit": "",\n "Parameters": ""\n },\n "Tags": {}\n}' \
--output-document \
- {{baseUrl}}/datasets
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"Name": "",
"Format": "",
"FormatOptions": [
"Json": "",
"Excel": "",
"Csv": ""
],
"Input": [
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
],
"PathOptions": [
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
],
"Tags": []
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/datasets")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
CreateProfileJob
{{baseUrl}}/profileJobs
BODY json
{
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": {
"Bucket": "",
"Key": "",
"BucketOwner": ""
},
"Configuration": {
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
},
"ValidationConfigurations": [
{
"RulesetArn": "",
"ValidationMode": ""
}
],
"RoleArn": "",
"Tags": {},
"Timeout": 0,
"JobSample": {
"Mode": "",
"Size": ""
}
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/profileJobs");
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 \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\n }\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/profileJobs" {:content-type :json
:form-params {:DatasetName ""
:EncryptionKeyArn ""
:EncryptionMode ""
:Name ""
:LogSubscription ""
:MaxCapacity 0
:MaxRetries 0
:OutputLocation {:Bucket ""
:Key ""
:BucketOwner ""}
:Configuration {:DatasetStatisticsConfiguration ""
:ProfileColumns ""
:ColumnStatisticsConfigurations ""
:EntityDetectorConfiguration ""}
:ValidationConfigurations [{:RulesetArn ""
:ValidationMode ""}]
:RoleArn ""
:Tags {}
:Timeout 0
:JobSample {:Mode ""
:Size ""}}})
require "http/client"
url = "{{baseUrl}}/profileJobs"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\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}}/profileJobs"),
Content = new StringContent("{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\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}}/profileJobs");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\n }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/profileJobs"
payload := strings.NewReader("{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\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/profileJobs HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 607
{
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": {
"Bucket": "",
"Key": "",
"BucketOwner": ""
},
"Configuration": {
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
},
"ValidationConfigurations": [
{
"RulesetArn": "",
"ValidationMode": ""
}
],
"RoleArn": "",
"Tags": {},
"Timeout": 0,
"JobSample": {
"Mode": "",
"Size": ""
}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/profileJobs")
.setHeader("content-type", "application/json")
.setBody("{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\n }\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/profileJobs"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\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 \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\n }\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/profileJobs")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/profileJobs")
.header("content-type", "application/json")
.body("{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\n }\n}")
.asString();
const data = JSON.stringify({
DatasetName: '',
EncryptionKeyArn: '',
EncryptionMode: '',
Name: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
OutputLocation: {
Bucket: '',
Key: '',
BucketOwner: ''
},
Configuration: {
DatasetStatisticsConfiguration: '',
ProfileColumns: '',
ColumnStatisticsConfigurations: '',
EntityDetectorConfiguration: ''
},
ValidationConfigurations: [
{
RulesetArn: '',
ValidationMode: ''
}
],
RoleArn: '',
Tags: {},
Timeout: 0,
JobSample: {
Mode: '',
Size: ''
}
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/profileJobs');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/profileJobs',
headers: {'content-type': 'application/json'},
data: {
DatasetName: '',
EncryptionKeyArn: '',
EncryptionMode: '',
Name: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
OutputLocation: {Bucket: '', Key: '', BucketOwner: ''},
Configuration: {
DatasetStatisticsConfiguration: '',
ProfileColumns: '',
ColumnStatisticsConfigurations: '',
EntityDetectorConfiguration: ''
},
ValidationConfigurations: [{RulesetArn: '', ValidationMode: ''}],
RoleArn: '',
Tags: {},
Timeout: 0,
JobSample: {Mode: '', Size: ''}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/profileJobs';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"DatasetName":"","EncryptionKeyArn":"","EncryptionMode":"","Name":"","LogSubscription":"","MaxCapacity":0,"MaxRetries":0,"OutputLocation":{"Bucket":"","Key":"","BucketOwner":""},"Configuration":{"DatasetStatisticsConfiguration":"","ProfileColumns":"","ColumnStatisticsConfigurations":"","EntityDetectorConfiguration":""},"ValidationConfigurations":[{"RulesetArn":"","ValidationMode":""}],"RoleArn":"","Tags":{},"Timeout":0,"JobSample":{"Mode":"","Size":""}}'
};
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}}/profileJobs',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "DatasetName": "",\n "EncryptionKeyArn": "",\n "EncryptionMode": "",\n "Name": "",\n "LogSubscription": "",\n "MaxCapacity": 0,\n "MaxRetries": 0,\n "OutputLocation": {\n "Bucket": "",\n "Key": "",\n "BucketOwner": ""\n },\n "Configuration": {\n "DatasetStatisticsConfiguration": "",\n "ProfileColumns": "",\n "ColumnStatisticsConfigurations": "",\n "EntityDetectorConfiguration": ""\n },\n "ValidationConfigurations": [\n {\n "RulesetArn": "",\n "ValidationMode": ""\n }\n ],\n "RoleArn": "",\n "Tags": {},\n "Timeout": 0,\n "JobSample": {\n "Mode": "",\n "Size": ""\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 \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\n }\n}")
val request = Request.Builder()
.url("{{baseUrl}}/profileJobs")
.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/profileJobs',
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({
DatasetName: '',
EncryptionKeyArn: '',
EncryptionMode: '',
Name: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
OutputLocation: {Bucket: '', Key: '', BucketOwner: ''},
Configuration: {
DatasetStatisticsConfiguration: '',
ProfileColumns: '',
ColumnStatisticsConfigurations: '',
EntityDetectorConfiguration: ''
},
ValidationConfigurations: [{RulesetArn: '', ValidationMode: ''}],
RoleArn: '',
Tags: {},
Timeout: 0,
JobSample: {Mode: '', Size: ''}
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/profileJobs',
headers: {'content-type': 'application/json'},
body: {
DatasetName: '',
EncryptionKeyArn: '',
EncryptionMode: '',
Name: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
OutputLocation: {Bucket: '', Key: '', BucketOwner: ''},
Configuration: {
DatasetStatisticsConfiguration: '',
ProfileColumns: '',
ColumnStatisticsConfigurations: '',
EntityDetectorConfiguration: ''
},
ValidationConfigurations: [{RulesetArn: '', ValidationMode: ''}],
RoleArn: '',
Tags: {},
Timeout: 0,
JobSample: {Mode: '', Size: ''}
},
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}}/profileJobs');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
DatasetName: '',
EncryptionKeyArn: '',
EncryptionMode: '',
Name: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
OutputLocation: {
Bucket: '',
Key: '',
BucketOwner: ''
},
Configuration: {
DatasetStatisticsConfiguration: '',
ProfileColumns: '',
ColumnStatisticsConfigurations: '',
EntityDetectorConfiguration: ''
},
ValidationConfigurations: [
{
RulesetArn: '',
ValidationMode: ''
}
],
RoleArn: '',
Tags: {},
Timeout: 0,
JobSample: {
Mode: '',
Size: ''
}
});
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}}/profileJobs',
headers: {'content-type': 'application/json'},
data: {
DatasetName: '',
EncryptionKeyArn: '',
EncryptionMode: '',
Name: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
OutputLocation: {Bucket: '', Key: '', BucketOwner: ''},
Configuration: {
DatasetStatisticsConfiguration: '',
ProfileColumns: '',
ColumnStatisticsConfigurations: '',
EntityDetectorConfiguration: ''
},
ValidationConfigurations: [{RulesetArn: '', ValidationMode: ''}],
RoleArn: '',
Tags: {},
Timeout: 0,
JobSample: {Mode: '', Size: ''}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/profileJobs';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"DatasetName":"","EncryptionKeyArn":"","EncryptionMode":"","Name":"","LogSubscription":"","MaxCapacity":0,"MaxRetries":0,"OutputLocation":{"Bucket":"","Key":"","BucketOwner":""},"Configuration":{"DatasetStatisticsConfiguration":"","ProfileColumns":"","ColumnStatisticsConfigurations":"","EntityDetectorConfiguration":""},"ValidationConfigurations":[{"RulesetArn":"","ValidationMode":""}],"RoleArn":"","Tags":{},"Timeout":0,"JobSample":{"Mode":"","Size":""}}'
};
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 = @{ @"DatasetName": @"",
@"EncryptionKeyArn": @"",
@"EncryptionMode": @"",
@"Name": @"",
@"LogSubscription": @"",
@"MaxCapacity": @0,
@"MaxRetries": @0,
@"OutputLocation": @{ @"Bucket": @"", @"Key": @"", @"BucketOwner": @"" },
@"Configuration": @{ @"DatasetStatisticsConfiguration": @"", @"ProfileColumns": @"", @"ColumnStatisticsConfigurations": @"", @"EntityDetectorConfiguration": @"" },
@"ValidationConfigurations": @[ @{ @"RulesetArn": @"", @"ValidationMode": @"" } ],
@"RoleArn": @"",
@"Tags": @{ },
@"Timeout": @0,
@"JobSample": @{ @"Mode": @"", @"Size": @"" } };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/profileJobs"]
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}}/profileJobs" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\n }\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/profileJobs",
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([
'DatasetName' => '',
'EncryptionKeyArn' => '',
'EncryptionMode' => '',
'Name' => '',
'LogSubscription' => '',
'MaxCapacity' => 0,
'MaxRetries' => 0,
'OutputLocation' => [
'Bucket' => '',
'Key' => '',
'BucketOwner' => ''
],
'Configuration' => [
'DatasetStatisticsConfiguration' => '',
'ProfileColumns' => '',
'ColumnStatisticsConfigurations' => '',
'EntityDetectorConfiguration' => ''
],
'ValidationConfigurations' => [
[
'RulesetArn' => '',
'ValidationMode' => ''
]
],
'RoleArn' => '',
'Tags' => [
],
'Timeout' => 0,
'JobSample' => [
'Mode' => '',
'Size' => ''
]
]),
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}}/profileJobs', [
'body' => '{
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": {
"Bucket": "",
"Key": "",
"BucketOwner": ""
},
"Configuration": {
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
},
"ValidationConfigurations": [
{
"RulesetArn": "",
"ValidationMode": ""
}
],
"RoleArn": "",
"Tags": {},
"Timeout": 0,
"JobSample": {
"Mode": "",
"Size": ""
}
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/profileJobs');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'DatasetName' => '',
'EncryptionKeyArn' => '',
'EncryptionMode' => '',
'Name' => '',
'LogSubscription' => '',
'MaxCapacity' => 0,
'MaxRetries' => 0,
'OutputLocation' => [
'Bucket' => '',
'Key' => '',
'BucketOwner' => ''
],
'Configuration' => [
'DatasetStatisticsConfiguration' => '',
'ProfileColumns' => '',
'ColumnStatisticsConfigurations' => '',
'EntityDetectorConfiguration' => ''
],
'ValidationConfigurations' => [
[
'RulesetArn' => '',
'ValidationMode' => ''
]
],
'RoleArn' => '',
'Tags' => [
],
'Timeout' => 0,
'JobSample' => [
'Mode' => '',
'Size' => ''
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'DatasetName' => '',
'EncryptionKeyArn' => '',
'EncryptionMode' => '',
'Name' => '',
'LogSubscription' => '',
'MaxCapacity' => 0,
'MaxRetries' => 0,
'OutputLocation' => [
'Bucket' => '',
'Key' => '',
'BucketOwner' => ''
],
'Configuration' => [
'DatasetStatisticsConfiguration' => '',
'ProfileColumns' => '',
'ColumnStatisticsConfigurations' => '',
'EntityDetectorConfiguration' => ''
],
'ValidationConfigurations' => [
[
'RulesetArn' => '',
'ValidationMode' => ''
]
],
'RoleArn' => '',
'Tags' => [
],
'Timeout' => 0,
'JobSample' => [
'Mode' => '',
'Size' => ''
]
]));
$request->setRequestUrl('{{baseUrl}}/profileJobs');
$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}}/profileJobs' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": {
"Bucket": "",
"Key": "",
"BucketOwner": ""
},
"Configuration": {
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
},
"ValidationConfigurations": [
{
"RulesetArn": "",
"ValidationMode": ""
}
],
"RoleArn": "",
"Tags": {},
"Timeout": 0,
"JobSample": {
"Mode": "",
"Size": ""
}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/profileJobs' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": {
"Bucket": "",
"Key": "",
"BucketOwner": ""
},
"Configuration": {
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
},
"ValidationConfigurations": [
{
"RulesetArn": "",
"ValidationMode": ""
}
],
"RoleArn": "",
"Tags": {},
"Timeout": 0,
"JobSample": {
"Mode": "",
"Size": ""
}
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\n }\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/profileJobs", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/profileJobs"
payload = {
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": {
"Bucket": "",
"Key": "",
"BucketOwner": ""
},
"Configuration": {
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
},
"ValidationConfigurations": [
{
"RulesetArn": "",
"ValidationMode": ""
}
],
"RoleArn": "",
"Tags": {},
"Timeout": 0,
"JobSample": {
"Mode": "",
"Size": ""
}
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/profileJobs"
payload <- "{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\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}}/profileJobs")
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 \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\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/profileJobs') do |req|
req.body = "{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\n }\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/profileJobs";
let payload = json!({
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": json!({
"Bucket": "",
"Key": "",
"BucketOwner": ""
}),
"Configuration": json!({
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
}),
"ValidationConfigurations": (
json!({
"RulesetArn": "",
"ValidationMode": ""
})
),
"RoleArn": "",
"Tags": json!({}),
"Timeout": 0,
"JobSample": json!({
"Mode": "",
"Size": ""
})
});
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}}/profileJobs \
--header 'content-type: application/json' \
--data '{
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": {
"Bucket": "",
"Key": "",
"BucketOwner": ""
},
"Configuration": {
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
},
"ValidationConfigurations": [
{
"RulesetArn": "",
"ValidationMode": ""
}
],
"RoleArn": "",
"Tags": {},
"Timeout": 0,
"JobSample": {
"Mode": "",
"Size": ""
}
}'
echo '{
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": {
"Bucket": "",
"Key": "",
"BucketOwner": ""
},
"Configuration": {
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
},
"ValidationConfigurations": [
{
"RulesetArn": "",
"ValidationMode": ""
}
],
"RoleArn": "",
"Tags": {},
"Timeout": 0,
"JobSample": {
"Mode": "",
"Size": ""
}
}' | \
http POST {{baseUrl}}/profileJobs \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "DatasetName": "",\n "EncryptionKeyArn": "",\n "EncryptionMode": "",\n "Name": "",\n "LogSubscription": "",\n "MaxCapacity": 0,\n "MaxRetries": 0,\n "OutputLocation": {\n "Bucket": "",\n "Key": "",\n "BucketOwner": ""\n },\n "Configuration": {\n "DatasetStatisticsConfiguration": "",\n "ProfileColumns": "",\n "ColumnStatisticsConfigurations": "",\n "EntityDetectorConfiguration": ""\n },\n "ValidationConfigurations": [\n {\n "RulesetArn": "",\n "ValidationMode": ""\n }\n ],\n "RoleArn": "",\n "Tags": {},\n "Timeout": 0,\n "JobSample": {\n "Mode": "",\n "Size": ""\n }\n}' \
--output-document \
- {{baseUrl}}/profileJobs
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": [
"Bucket": "",
"Key": "",
"BucketOwner": ""
],
"Configuration": [
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
],
"ValidationConfigurations": [
[
"RulesetArn": "",
"ValidationMode": ""
]
],
"RoleArn": "",
"Tags": [],
"Timeout": 0,
"JobSample": [
"Mode": "",
"Size": ""
]
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/profileJobs")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
CreateProject
{{baseUrl}}/projects
BODY json
{
"DatasetName": "",
"Name": "",
"RecipeName": "",
"Sample": {
"Size": "",
"Type": ""
},
"RoleArn": "",
"Tags": {}
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/projects");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"DatasetName\": \"\",\n \"Name\": \"\",\n \"RecipeName\": \"\",\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {}\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/projects" {:content-type :json
:form-params {:DatasetName ""
:Name ""
:RecipeName ""
:Sample {:Size ""
:Type ""}
:RoleArn ""
:Tags {}}})
require "http/client"
url = "{{baseUrl}}/projects"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"DatasetName\": \"\",\n \"Name\": \"\",\n \"RecipeName\": \"\",\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {}\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}}/projects"),
Content = new StringContent("{\n \"DatasetName\": \"\",\n \"Name\": \"\",\n \"RecipeName\": \"\",\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {}\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}}/projects");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"DatasetName\": \"\",\n \"Name\": \"\",\n \"RecipeName\": \"\",\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/projects"
payload := strings.NewReader("{\n \"DatasetName\": \"\",\n \"Name\": \"\",\n \"RecipeName\": \"\",\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {}\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/projects HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 138
{
"DatasetName": "",
"Name": "",
"RecipeName": "",
"Sample": {
"Size": "",
"Type": ""
},
"RoleArn": "",
"Tags": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/projects")
.setHeader("content-type", "application/json")
.setBody("{\n \"DatasetName\": \"\",\n \"Name\": \"\",\n \"RecipeName\": \"\",\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {}\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/projects"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"DatasetName\": \"\",\n \"Name\": \"\",\n \"RecipeName\": \"\",\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {}\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 \"DatasetName\": \"\",\n \"Name\": \"\",\n \"RecipeName\": \"\",\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {}\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/projects")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/projects")
.header("content-type", "application/json")
.body("{\n \"DatasetName\": \"\",\n \"Name\": \"\",\n \"RecipeName\": \"\",\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {}\n}")
.asString();
const data = JSON.stringify({
DatasetName: '',
Name: '',
RecipeName: '',
Sample: {
Size: '',
Type: ''
},
RoleArn: '',
Tags: {}
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/projects');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/projects',
headers: {'content-type': 'application/json'},
data: {
DatasetName: '',
Name: '',
RecipeName: '',
Sample: {Size: '', Type: ''},
RoleArn: '',
Tags: {}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/projects';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"DatasetName":"","Name":"","RecipeName":"","Sample":{"Size":"","Type":""},"RoleArn":"","Tags":{}}'
};
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}}/projects',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "DatasetName": "",\n "Name": "",\n "RecipeName": "",\n "Sample": {\n "Size": "",\n "Type": ""\n },\n "RoleArn": "",\n "Tags": {}\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"DatasetName\": \"\",\n \"Name\": \"\",\n \"RecipeName\": \"\",\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {}\n}")
val request = Request.Builder()
.url("{{baseUrl}}/projects")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/projects',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
DatasetName: '',
Name: '',
RecipeName: '',
Sample: {Size: '', Type: ''},
RoleArn: '',
Tags: {}
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/projects',
headers: {'content-type': 'application/json'},
body: {
DatasetName: '',
Name: '',
RecipeName: '',
Sample: {Size: '', Type: ''},
RoleArn: '',
Tags: {}
},
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}}/projects');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
DatasetName: '',
Name: '',
RecipeName: '',
Sample: {
Size: '',
Type: ''
},
RoleArn: '',
Tags: {}
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/projects',
headers: {'content-type': 'application/json'},
data: {
DatasetName: '',
Name: '',
RecipeName: '',
Sample: {Size: '', Type: ''},
RoleArn: '',
Tags: {}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/projects';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"DatasetName":"","Name":"","RecipeName":"","Sample":{"Size":"","Type":""},"RoleArn":"","Tags":{}}'
};
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 = @{ @"DatasetName": @"",
@"Name": @"",
@"RecipeName": @"",
@"Sample": @{ @"Size": @"", @"Type": @"" },
@"RoleArn": @"",
@"Tags": @{ } };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/projects"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/projects" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"DatasetName\": \"\",\n \"Name\": \"\",\n \"RecipeName\": \"\",\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {}\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/projects",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'DatasetName' => '',
'Name' => '',
'RecipeName' => '',
'Sample' => [
'Size' => '',
'Type' => ''
],
'RoleArn' => '',
'Tags' => [
]
]),
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}}/projects', [
'body' => '{
"DatasetName": "",
"Name": "",
"RecipeName": "",
"Sample": {
"Size": "",
"Type": ""
},
"RoleArn": "",
"Tags": {}
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/projects');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'DatasetName' => '',
'Name' => '',
'RecipeName' => '',
'Sample' => [
'Size' => '',
'Type' => ''
],
'RoleArn' => '',
'Tags' => [
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'DatasetName' => '',
'Name' => '',
'RecipeName' => '',
'Sample' => [
'Size' => '',
'Type' => ''
],
'RoleArn' => '',
'Tags' => [
]
]));
$request->setRequestUrl('{{baseUrl}}/projects');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/projects' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"DatasetName": "",
"Name": "",
"RecipeName": "",
"Sample": {
"Size": "",
"Type": ""
},
"RoleArn": "",
"Tags": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/projects' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"DatasetName": "",
"Name": "",
"RecipeName": "",
"Sample": {
"Size": "",
"Type": ""
},
"RoleArn": "",
"Tags": {}
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"DatasetName\": \"\",\n \"Name\": \"\",\n \"RecipeName\": \"\",\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {}\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/projects", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/projects"
payload = {
"DatasetName": "",
"Name": "",
"RecipeName": "",
"Sample": {
"Size": "",
"Type": ""
},
"RoleArn": "",
"Tags": {}
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/projects"
payload <- "{\n \"DatasetName\": \"\",\n \"Name\": \"\",\n \"RecipeName\": \"\",\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {}\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}}/projects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"DatasetName\": \"\",\n \"Name\": \"\",\n \"RecipeName\": \"\",\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {}\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/projects') do |req|
req.body = "{\n \"DatasetName\": \"\",\n \"Name\": \"\",\n \"RecipeName\": \"\",\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {}\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/projects";
let payload = json!({
"DatasetName": "",
"Name": "",
"RecipeName": "",
"Sample": json!({
"Size": "",
"Type": ""
}),
"RoleArn": "",
"Tags": 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}}/projects \
--header 'content-type: application/json' \
--data '{
"DatasetName": "",
"Name": "",
"RecipeName": "",
"Sample": {
"Size": "",
"Type": ""
},
"RoleArn": "",
"Tags": {}
}'
echo '{
"DatasetName": "",
"Name": "",
"RecipeName": "",
"Sample": {
"Size": "",
"Type": ""
},
"RoleArn": "",
"Tags": {}
}' | \
http POST {{baseUrl}}/projects \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "DatasetName": "",\n "Name": "",\n "RecipeName": "",\n "Sample": {\n "Size": "",\n "Type": ""\n },\n "RoleArn": "",\n "Tags": {}\n}' \
--output-document \
- {{baseUrl}}/projects
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"DatasetName": "",
"Name": "",
"RecipeName": "",
"Sample": [
"Size": "",
"Type": ""
],
"RoleArn": "",
"Tags": []
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/projects")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
CreateRecipe
{{baseUrl}}/recipes
BODY json
{
"Description": "",
"Name": "",
"Steps": [
{
"Action": "",
"ConditionExpressions": ""
}
],
"Tags": {}
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/recipes");
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 \"Description\": \"\",\n \"Name\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ],\n \"Tags\": {}\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/recipes" {:content-type :json
:form-params {:Description ""
:Name ""
:Steps [{:Action ""
:ConditionExpressions ""}]
:Tags {}}})
require "http/client"
url = "{{baseUrl}}/recipes"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"Description\": \"\",\n \"Name\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ],\n \"Tags\": {}\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}}/recipes"),
Content = new StringContent("{\n \"Description\": \"\",\n \"Name\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ],\n \"Tags\": {}\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}}/recipes");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"Description\": \"\",\n \"Name\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ],\n \"Tags\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/recipes"
payload := strings.NewReader("{\n \"Description\": \"\",\n \"Name\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ],\n \"Tags\": {}\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/recipes HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 134
{
"Description": "",
"Name": "",
"Steps": [
{
"Action": "",
"ConditionExpressions": ""
}
],
"Tags": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/recipes")
.setHeader("content-type", "application/json")
.setBody("{\n \"Description\": \"\",\n \"Name\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ],\n \"Tags\": {}\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/recipes"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"Description\": \"\",\n \"Name\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ],\n \"Tags\": {}\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"Description\": \"\",\n \"Name\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ],\n \"Tags\": {}\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/recipes")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/recipes")
.header("content-type", "application/json")
.body("{\n \"Description\": \"\",\n \"Name\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ],\n \"Tags\": {}\n}")
.asString();
const data = JSON.stringify({
Description: '',
Name: '',
Steps: [
{
Action: '',
ConditionExpressions: ''
}
],
Tags: {}
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/recipes');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/recipes',
headers: {'content-type': 'application/json'},
data: {
Description: '',
Name: '',
Steps: [{Action: '', ConditionExpressions: ''}],
Tags: {}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/recipes';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"Description":"","Name":"","Steps":[{"Action":"","ConditionExpressions":""}],"Tags":{}}'
};
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}}/recipes',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "Description": "",\n "Name": "",\n "Steps": [\n {\n "Action": "",\n "ConditionExpressions": ""\n }\n ],\n "Tags": {}\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"Description\": \"\",\n \"Name\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ],\n \"Tags\": {}\n}")
val request = Request.Builder()
.url("{{baseUrl}}/recipes")
.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/recipes',
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({
Description: '',
Name: '',
Steps: [{Action: '', ConditionExpressions: ''}],
Tags: {}
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/recipes',
headers: {'content-type': 'application/json'},
body: {
Description: '',
Name: '',
Steps: [{Action: '', ConditionExpressions: ''}],
Tags: {}
},
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}}/recipes');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
Description: '',
Name: '',
Steps: [
{
Action: '',
ConditionExpressions: ''
}
],
Tags: {}
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/recipes',
headers: {'content-type': 'application/json'},
data: {
Description: '',
Name: '',
Steps: [{Action: '', ConditionExpressions: ''}],
Tags: {}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/recipes';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"Description":"","Name":"","Steps":[{"Action":"","ConditionExpressions":""}],"Tags":{}}'
};
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 = @{ @"Description": @"",
@"Name": @"",
@"Steps": @[ @{ @"Action": @"", @"ConditionExpressions": @"" } ],
@"Tags": @{ } };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/recipes"]
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}}/recipes" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"Description\": \"\",\n \"Name\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ],\n \"Tags\": {}\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/recipes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'Description' => '',
'Name' => '',
'Steps' => [
[
'Action' => '',
'ConditionExpressions' => ''
]
],
'Tags' => [
]
]),
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}}/recipes', [
'body' => '{
"Description": "",
"Name": "",
"Steps": [
{
"Action": "",
"ConditionExpressions": ""
}
],
"Tags": {}
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/recipes');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'Description' => '',
'Name' => '',
'Steps' => [
[
'Action' => '',
'ConditionExpressions' => ''
]
],
'Tags' => [
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'Description' => '',
'Name' => '',
'Steps' => [
[
'Action' => '',
'ConditionExpressions' => ''
]
],
'Tags' => [
]
]));
$request->setRequestUrl('{{baseUrl}}/recipes');
$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}}/recipes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"Description": "",
"Name": "",
"Steps": [
{
"Action": "",
"ConditionExpressions": ""
}
],
"Tags": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/recipes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"Description": "",
"Name": "",
"Steps": [
{
"Action": "",
"ConditionExpressions": ""
}
],
"Tags": {}
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"Description\": \"\",\n \"Name\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ],\n \"Tags\": {}\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/recipes", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/recipes"
payload = {
"Description": "",
"Name": "",
"Steps": [
{
"Action": "",
"ConditionExpressions": ""
}
],
"Tags": {}
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/recipes"
payload <- "{\n \"Description\": \"\",\n \"Name\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ],\n \"Tags\": {}\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}}/recipes")
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 \"Description\": \"\",\n \"Name\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ],\n \"Tags\": {}\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/recipes') do |req|
req.body = "{\n \"Description\": \"\",\n \"Name\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ],\n \"Tags\": {}\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/recipes";
let payload = json!({
"Description": "",
"Name": "",
"Steps": (
json!({
"Action": "",
"ConditionExpressions": ""
})
),
"Tags": 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}}/recipes \
--header 'content-type: application/json' \
--data '{
"Description": "",
"Name": "",
"Steps": [
{
"Action": "",
"ConditionExpressions": ""
}
],
"Tags": {}
}'
echo '{
"Description": "",
"Name": "",
"Steps": [
{
"Action": "",
"ConditionExpressions": ""
}
],
"Tags": {}
}' | \
http POST {{baseUrl}}/recipes \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "Description": "",\n "Name": "",\n "Steps": [\n {\n "Action": "",\n "ConditionExpressions": ""\n }\n ],\n "Tags": {}\n}' \
--output-document \
- {{baseUrl}}/recipes
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"Description": "",
"Name": "",
"Steps": [
[
"Action": "",
"ConditionExpressions": ""
]
],
"Tags": []
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/recipes")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
CreateRecipeJob
{{baseUrl}}/recipeJobs
BODY json
{
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": [
{
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
}
],
"DataCatalogOutputs": [
{
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
}
],
"DatabaseOutputs": [
{
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
}
],
"ProjectName": "",
"RecipeReference": {
"Name": "",
"RecipeVersion": ""
},
"RoleArn": "",
"Tags": {},
"Timeout": 0
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/recipeJobs");
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 \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"ProjectName\": \"\",\n \"RecipeReference\": {\n \"Name\": \"\",\n \"RecipeVersion\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/recipeJobs" {:content-type :json
:form-params {:DatasetName ""
:EncryptionKeyArn ""
:EncryptionMode ""
:Name ""
:LogSubscription ""
:MaxCapacity 0
:MaxRetries 0
:Outputs [{:CompressionFormat ""
:Format ""
:PartitionColumns ""
:Location ""
:Overwrite ""
:FormatOptions ""
:MaxOutputFiles ""}]
:DataCatalogOutputs [{:CatalogId ""
:DatabaseName ""
:TableName ""
:S3Options ""
:DatabaseOptions ""
:Overwrite ""}]
:DatabaseOutputs [{:GlueConnectionName ""
:DatabaseOptions ""
:DatabaseOutputMode ""}]
:ProjectName ""
:RecipeReference {:Name ""
:RecipeVersion ""}
:RoleArn ""
:Tags {}
:Timeout 0}})
require "http/client"
url = "{{baseUrl}}/recipeJobs"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"ProjectName\": \"\",\n \"RecipeReference\": {\n \"Name\": \"\",\n \"RecipeVersion\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0\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}}/recipeJobs"),
Content = new StringContent("{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"ProjectName\": \"\",\n \"RecipeReference\": {\n \"Name\": \"\",\n \"RecipeVersion\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0\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}}/recipeJobs");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"ProjectName\": \"\",\n \"RecipeReference\": {\n \"Name\": \"\",\n \"RecipeVersion\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/recipeJobs"
payload := strings.NewReader("{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"ProjectName\": \"\",\n \"RecipeReference\": {\n \"Name\": \"\",\n \"RecipeVersion\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0\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/recipeJobs HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 820
{
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": [
{
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
}
],
"DataCatalogOutputs": [
{
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
}
],
"DatabaseOutputs": [
{
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
}
],
"ProjectName": "",
"RecipeReference": {
"Name": "",
"RecipeVersion": ""
},
"RoleArn": "",
"Tags": {},
"Timeout": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/recipeJobs")
.setHeader("content-type", "application/json")
.setBody("{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"ProjectName\": \"\",\n \"RecipeReference\": {\n \"Name\": \"\",\n \"RecipeVersion\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/recipeJobs"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"ProjectName\": \"\",\n \"RecipeReference\": {\n \"Name\": \"\",\n \"RecipeVersion\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0\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 \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"ProjectName\": \"\",\n \"RecipeReference\": {\n \"Name\": \"\",\n \"RecipeVersion\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/recipeJobs")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/recipeJobs")
.header("content-type", "application/json")
.body("{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"ProjectName\": \"\",\n \"RecipeReference\": {\n \"Name\": \"\",\n \"RecipeVersion\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0\n}")
.asString();
const data = JSON.stringify({
DatasetName: '',
EncryptionKeyArn: '',
EncryptionMode: '',
Name: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
Outputs: [
{
CompressionFormat: '',
Format: '',
PartitionColumns: '',
Location: '',
Overwrite: '',
FormatOptions: '',
MaxOutputFiles: ''
}
],
DataCatalogOutputs: [
{
CatalogId: '',
DatabaseName: '',
TableName: '',
S3Options: '',
DatabaseOptions: '',
Overwrite: ''
}
],
DatabaseOutputs: [
{
GlueConnectionName: '',
DatabaseOptions: '',
DatabaseOutputMode: ''
}
],
ProjectName: '',
RecipeReference: {
Name: '',
RecipeVersion: ''
},
RoleArn: '',
Tags: {},
Timeout: 0
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/recipeJobs');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/recipeJobs',
headers: {'content-type': 'application/json'},
data: {
DatasetName: '',
EncryptionKeyArn: '',
EncryptionMode: '',
Name: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
Outputs: [
{
CompressionFormat: '',
Format: '',
PartitionColumns: '',
Location: '',
Overwrite: '',
FormatOptions: '',
MaxOutputFiles: ''
}
],
DataCatalogOutputs: [
{
CatalogId: '',
DatabaseName: '',
TableName: '',
S3Options: '',
DatabaseOptions: '',
Overwrite: ''
}
],
DatabaseOutputs: [{GlueConnectionName: '', DatabaseOptions: '', DatabaseOutputMode: ''}],
ProjectName: '',
RecipeReference: {Name: '', RecipeVersion: ''},
RoleArn: '',
Tags: {},
Timeout: 0
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/recipeJobs';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"DatasetName":"","EncryptionKeyArn":"","EncryptionMode":"","Name":"","LogSubscription":"","MaxCapacity":0,"MaxRetries":0,"Outputs":[{"CompressionFormat":"","Format":"","PartitionColumns":"","Location":"","Overwrite":"","FormatOptions":"","MaxOutputFiles":""}],"DataCatalogOutputs":[{"CatalogId":"","DatabaseName":"","TableName":"","S3Options":"","DatabaseOptions":"","Overwrite":""}],"DatabaseOutputs":[{"GlueConnectionName":"","DatabaseOptions":"","DatabaseOutputMode":""}],"ProjectName":"","RecipeReference":{"Name":"","RecipeVersion":""},"RoleArn":"","Tags":{},"Timeout":0}'
};
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}}/recipeJobs',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "DatasetName": "",\n "EncryptionKeyArn": "",\n "EncryptionMode": "",\n "Name": "",\n "LogSubscription": "",\n "MaxCapacity": 0,\n "MaxRetries": 0,\n "Outputs": [\n {\n "CompressionFormat": "",\n "Format": "",\n "PartitionColumns": "",\n "Location": "",\n "Overwrite": "",\n "FormatOptions": "",\n "MaxOutputFiles": ""\n }\n ],\n "DataCatalogOutputs": [\n {\n "CatalogId": "",\n "DatabaseName": "",\n "TableName": "",\n "S3Options": "",\n "DatabaseOptions": "",\n "Overwrite": ""\n }\n ],\n "DatabaseOutputs": [\n {\n "GlueConnectionName": "",\n "DatabaseOptions": "",\n "DatabaseOutputMode": ""\n }\n ],\n "ProjectName": "",\n "RecipeReference": {\n "Name": "",\n "RecipeVersion": ""\n },\n "RoleArn": "",\n "Tags": {},\n "Timeout": 0\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"ProjectName\": \"\",\n \"RecipeReference\": {\n \"Name\": \"\",\n \"RecipeVersion\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0\n}")
val request = Request.Builder()
.url("{{baseUrl}}/recipeJobs")
.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/recipeJobs',
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({
DatasetName: '',
EncryptionKeyArn: '',
EncryptionMode: '',
Name: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
Outputs: [
{
CompressionFormat: '',
Format: '',
PartitionColumns: '',
Location: '',
Overwrite: '',
FormatOptions: '',
MaxOutputFiles: ''
}
],
DataCatalogOutputs: [
{
CatalogId: '',
DatabaseName: '',
TableName: '',
S3Options: '',
DatabaseOptions: '',
Overwrite: ''
}
],
DatabaseOutputs: [{GlueConnectionName: '', DatabaseOptions: '', DatabaseOutputMode: ''}],
ProjectName: '',
RecipeReference: {Name: '', RecipeVersion: ''},
RoleArn: '',
Tags: {},
Timeout: 0
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/recipeJobs',
headers: {'content-type': 'application/json'},
body: {
DatasetName: '',
EncryptionKeyArn: '',
EncryptionMode: '',
Name: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
Outputs: [
{
CompressionFormat: '',
Format: '',
PartitionColumns: '',
Location: '',
Overwrite: '',
FormatOptions: '',
MaxOutputFiles: ''
}
],
DataCatalogOutputs: [
{
CatalogId: '',
DatabaseName: '',
TableName: '',
S3Options: '',
DatabaseOptions: '',
Overwrite: ''
}
],
DatabaseOutputs: [{GlueConnectionName: '', DatabaseOptions: '', DatabaseOutputMode: ''}],
ProjectName: '',
RecipeReference: {Name: '', RecipeVersion: ''},
RoleArn: '',
Tags: {},
Timeout: 0
},
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}}/recipeJobs');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
DatasetName: '',
EncryptionKeyArn: '',
EncryptionMode: '',
Name: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
Outputs: [
{
CompressionFormat: '',
Format: '',
PartitionColumns: '',
Location: '',
Overwrite: '',
FormatOptions: '',
MaxOutputFiles: ''
}
],
DataCatalogOutputs: [
{
CatalogId: '',
DatabaseName: '',
TableName: '',
S3Options: '',
DatabaseOptions: '',
Overwrite: ''
}
],
DatabaseOutputs: [
{
GlueConnectionName: '',
DatabaseOptions: '',
DatabaseOutputMode: ''
}
],
ProjectName: '',
RecipeReference: {
Name: '',
RecipeVersion: ''
},
RoleArn: '',
Tags: {},
Timeout: 0
});
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}}/recipeJobs',
headers: {'content-type': 'application/json'},
data: {
DatasetName: '',
EncryptionKeyArn: '',
EncryptionMode: '',
Name: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
Outputs: [
{
CompressionFormat: '',
Format: '',
PartitionColumns: '',
Location: '',
Overwrite: '',
FormatOptions: '',
MaxOutputFiles: ''
}
],
DataCatalogOutputs: [
{
CatalogId: '',
DatabaseName: '',
TableName: '',
S3Options: '',
DatabaseOptions: '',
Overwrite: ''
}
],
DatabaseOutputs: [{GlueConnectionName: '', DatabaseOptions: '', DatabaseOutputMode: ''}],
ProjectName: '',
RecipeReference: {Name: '', RecipeVersion: ''},
RoleArn: '',
Tags: {},
Timeout: 0
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/recipeJobs';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"DatasetName":"","EncryptionKeyArn":"","EncryptionMode":"","Name":"","LogSubscription":"","MaxCapacity":0,"MaxRetries":0,"Outputs":[{"CompressionFormat":"","Format":"","PartitionColumns":"","Location":"","Overwrite":"","FormatOptions":"","MaxOutputFiles":""}],"DataCatalogOutputs":[{"CatalogId":"","DatabaseName":"","TableName":"","S3Options":"","DatabaseOptions":"","Overwrite":""}],"DatabaseOutputs":[{"GlueConnectionName":"","DatabaseOptions":"","DatabaseOutputMode":""}],"ProjectName":"","RecipeReference":{"Name":"","RecipeVersion":""},"RoleArn":"","Tags":{},"Timeout":0}'
};
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 = @{ @"DatasetName": @"",
@"EncryptionKeyArn": @"",
@"EncryptionMode": @"",
@"Name": @"",
@"LogSubscription": @"",
@"MaxCapacity": @0,
@"MaxRetries": @0,
@"Outputs": @[ @{ @"CompressionFormat": @"", @"Format": @"", @"PartitionColumns": @"", @"Location": @"", @"Overwrite": @"", @"FormatOptions": @"", @"MaxOutputFiles": @"" } ],
@"DataCatalogOutputs": @[ @{ @"CatalogId": @"", @"DatabaseName": @"", @"TableName": @"", @"S3Options": @"", @"DatabaseOptions": @"", @"Overwrite": @"" } ],
@"DatabaseOutputs": @[ @{ @"GlueConnectionName": @"", @"DatabaseOptions": @"", @"DatabaseOutputMode": @"" } ],
@"ProjectName": @"",
@"RecipeReference": @{ @"Name": @"", @"RecipeVersion": @"" },
@"RoleArn": @"",
@"Tags": @{ },
@"Timeout": @0 };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/recipeJobs"]
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}}/recipeJobs" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"ProjectName\": \"\",\n \"RecipeReference\": {\n \"Name\": \"\",\n \"RecipeVersion\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/recipeJobs",
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([
'DatasetName' => '',
'EncryptionKeyArn' => '',
'EncryptionMode' => '',
'Name' => '',
'LogSubscription' => '',
'MaxCapacity' => 0,
'MaxRetries' => 0,
'Outputs' => [
[
'CompressionFormat' => '',
'Format' => '',
'PartitionColumns' => '',
'Location' => '',
'Overwrite' => '',
'FormatOptions' => '',
'MaxOutputFiles' => ''
]
],
'DataCatalogOutputs' => [
[
'CatalogId' => '',
'DatabaseName' => '',
'TableName' => '',
'S3Options' => '',
'DatabaseOptions' => '',
'Overwrite' => ''
]
],
'DatabaseOutputs' => [
[
'GlueConnectionName' => '',
'DatabaseOptions' => '',
'DatabaseOutputMode' => ''
]
],
'ProjectName' => '',
'RecipeReference' => [
'Name' => '',
'RecipeVersion' => ''
],
'RoleArn' => '',
'Tags' => [
],
'Timeout' => 0
]),
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}}/recipeJobs', [
'body' => '{
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": [
{
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
}
],
"DataCatalogOutputs": [
{
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
}
],
"DatabaseOutputs": [
{
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
}
],
"ProjectName": "",
"RecipeReference": {
"Name": "",
"RecipeVersion": ""
},
"RoleArn": "",
"Tags": {},
"Timeout": 0
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/recipeJobs');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'DatasetName' => '',
'EncryptionKeyArn' => '',
'EncryptionMode' => '',
'Name' => '',
'LogSubscription' => '',
'MaxCapacity' => 0,
'MaxRetries' => 0,
'Outputs' => [
[
'CompressionFormat' => '',
'Format' => '',
'PartitionColumns' => '',
'Location' => '',
'Overwrite' => '',
'FormatOptions' => '',
'MaxOutputFiles' => ''
]
],
'DataCatalogOutputs' => [
[
'CatalogId' => '',
'DatabaseName' => '',
'TableName' => '',
'S3Options' => '',
'DatabaseOptions' => '',
'Overwrite' => ''
]
],
'DatabaseOutputs' => [
[
'GlueConnectionName' => '',
'DatabaseOptions' => '',
'DatabaseOutputMode' => ''
]
],
'ProjectName' => '',
'RecipeReference' => [
'Name' => '',
'RecipeVersion' => ''
],
'RoleArn' => '',
'Tags' => [
],
'Timeout' => 0
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'DatasetName' => '',
'EncryptionKeyArn' => '',
'EncryptionMode' => '',
'Name' => '',
'LogSubscription' => '',
'MaxCapacity' => 0,
'MaxRetries' => 0,
'Outputs' => [
[
'CompressionFormat' => '',
'Format' => '',
'PartitionColumns' => '',
'Location' => '',
'Overwrite' => '',
'FormatOptions' => '',
'MaxOutputFiles' => ''
]
],
'DataCatalogOutputs' => [
[
'CatalogId' => '',
'DatabaseName' => '',
'TableName' => '',
'S3Options' => '',
'DatabaseOptions' => '',
'Overwrite' => ''
]
],
'DatabaseOutputs' => [
[
'GlueConnectionName' => '',
'DatabaseOptions' => '',
'DatabaseOutputMode' => ''
]
],
'ProjectName' => '',
'RecipeReference' => [
'Name' => '',
'RecipeVersion' => ''
],
'RoleArn' => '',
'Tags' => [
],
'Timeout' => 0
]));
$request->setRequestUrl('{{baseUrl}}/recipeJobs');
$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}}/recipeJobs' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": [
{
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
}
],
"DataCatalogOutputs": [
{
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
}
],
"DatabaseOutputs": [
{
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
}
],
"ProjectName": "",
"RecipeReference": {
"Name": "",
"RecipeVersion": ""
},
"RoleArn": "",
"Tags": {},
"Timeout": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/recipeJobs' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": [
{
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
}
],
"DataCatalogOutputs": [
{
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
}
],
"DatabaseOutputs": [
{
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
}
],
"ProjectName": "",
"RecipeReference": {
"Name": "",
"RecipeVersion": ""
},
"RoleArn": "",
"Tags": {},
"Timeout": 0
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"ProjectName\": \"\",\n \"RecipeReference\": {\n \"Name\": \"\",\n \"RecipeVersion\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/recipeJobs", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/recipeJobs"
payload = {
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": [
{
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
}
],
"DataCatalogOutputs": [
{
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
}
],
"DatabaseOutputs": [
{
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
}
],
"ProjectName": "",
"RecipeReference": {
"Name": "",
"RecipeVersion": ""
},
"RoleArn": "",
"Tags": {},
"Timeout": 0
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/recipeJobs"
payload <- "{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"ProjectName\": \"\",\n \"RecipeReference\": {\n \"Name\": \"\",\n \"RecipeVersion\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0\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}}/recipeJobs")
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 \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"ProjectName\": \"\",\n \"RecipeReference\": {\n \"Name\": \"\",\n \"RecipeVersion\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0\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/recipeJobs') do |req|
req.body = "{\n \"DatasetName\": \"\",\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"Name\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"ProjectName\": \"\",\n \"RecipeReference\": {\n \"Name\": \"\",\n \"RecipeVersion\": \"\"\n },\n \"RoleArn\": \"\",\n \"Tags\": {},\n \"Timeout\": 0\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/recipeJobs";
let payload = json!({
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": (
json!({
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
})
),
"DataCatalogOutputs": (
json!({
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
})
),
"DatabaseOutputs": (
json!({
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
})
),
"ProjectName": "",
"RecipeReference": json!({
"Name": "",
"RecipeVersion": ""
}),
"RoleArn": "",
"Tags": json!({}),
"Timeout": 0
});
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}}/recipeJobs \
--header 'content-type: application/json' \
--data '{
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": [
{
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
}
],
"DataCatalogOutputs": [
{
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
}
],
"DatabaseOutputs": [
{
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
}
],
"ProjectName": "",
"RecipeReference": {
"Name": "",
"RecipeVersion": ""
},
"RoleArn": "",
"Tags": {},
"Timeout": 0
}'
echo '{
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": [
{
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
}
],
"DataCatalogOutputs": [
{
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
}
],
"DatabaseOutputs": [
{
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
}
],
"ProjectName": "",
"RecipeReference": {
"Name": "",
"RecipeVersion": ""
},
"RoleArn": "",
"Tags": {},
"Timeout": 0
}' | \
http POST {{baseUrl}}/recipeJobs \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "DatasetName": "",\n "EncryptionKeyArn": "",\n "EncryptionMode": "",\n "Name": "",\n "LogSubscription": "",\n "MaxCapacity": 0,\n "MaxRetries": 0,\n "Outputs": [\n {\n "CompressionFormat": "",\n "Format": "",\n "PartitionColumns": "",\n "Location": "",\n "Overwrite": "",\n "FormatOptions": "",\n "MaxOutputFiles": ""\n }\n ],\n "DataCatalogOutputs": [\n {\n "CatalogId": "",\n "DatabaseName": "",\n "TableName": "",\n "S3Options": "",\n "DatabaseOptions": "",\n "Overwrite": ""\n }\n ],\n "DatabaseOutputs": [\n {\n "GlueConnectionName": "",\n "DatabaseOptions": "",\n "DatabaseOutputMode": ""\n }\n ],\n "ProjectName": "",\n "RecipeReference": {\n "Name": "",\n "RecipeVersion": ""\n },\n "RoleArn": "",\n "Tags": {},\n "Timeout": 0\n}' \
--output-document \
- {{baseUrl}}/recipeJobs
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"DatasetName": "",
"EncryptionKeyArn": "",
"EncryptionMode": "",
"Name": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": [
[
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
]
],
"DataCatalogOutputs": [
[
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
]
],
"DatabaseOutputs": [
[
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
]
],
"ProjectName": "",
"RecipeReference": [
"Name": "",
"RecipeVersion": ""
],
"RoleArn": "",
"Tags": [],
"Timeout": 0
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/recipeJobs")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
CreateRuleset
{{baseUrl}}/rulesets
BODY json
{
"Name": "",
"Description": "",
"TargetArn": "",
"Rules": [
{
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
}
],
"Tags": {}
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/rulesets");
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 \"Name\": \"\",\n \"Description\": \"\",\n \"TargetArn\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ],\n \"Tags\": {}\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/rulesets" {:content-type :json
:form-params {:Name ""
:Description ""
:TargetArn ""
:Rules [{:Name ""
:Disabled ""
:CheckExpression ""
:SubstitutionMap ""
:Threshold ""
:ColumnSelectors ""}]
:Tags {}}})
require "http/client"
url = "{{baseUrl}}/rulesets"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"Name\": \"\",\n \"Description\": \"\",\n \"TargetArn\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ],\n \"Tags\": {}\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}}/rulesets"),
Content = new StringContent("{\n \"Name\": \"\",\n \"Description\": \"\",\n \"TargetArn\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ],\n \"Tags\": {}\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}}/rulesets");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"Name\": \"\",\n \"Description\": \"\",\n \"TargetArn\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ],\n \"Tags\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/rulesets"
payload := strings.NewReader("{\n \"Name\": \"\",\n \"Description\": \"\",\n \"TargetArn\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ],\n \"Tags\": {}\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/rulesets HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 249
{
"Name": "",
"Description": "",
"TargetArn": "",
"Rules": [
{
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
}
],
"Tags": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/rulesets")
.setHeader("content-type", "application/json")
.setBody("{\n \"Name\": \"\",\n \"Description\": \"\",\n \"TargetArn\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ],\n \"Tags\": {}\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/rulesets"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"Name\": \"\",\n \"Description\": \"\",\n \"TargetArn\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ],\n \"Tags\": {}\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 \"Name\": \"\",\n \"Description\": \"\",\n \"TargetArn\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ],\n \"Tags\": {}\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/rulesets")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/rulesets")
.header("content-type", "application/json")
.body("{\n \"Name\": \"\",\n \"Description\": \"\",\n \"TargetArn\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ],\n \"Tags\": {}\n}")
.asString();
const data = JSON.stringify({
Name: '',
Description: '',
TargetArn: '',
Rules: [
{
Name: '',
Disabled: '',
CheckExpression: '',
SubstitutionMap: '',
Threshold: '',
ColumnSelectors: ''
}
],
Tags: {}
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/rulesets');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/rulesets',
headers: {'content-type': 'application/json'},
data: {
Name: '',
Description: '',
TargetArn: '',
Rules: [
{
Name: '',
Disabled: '',
CheckExpression: '',
SubstitutionMap: '',
Threshold: '',
ColumnSelectors: ''
}
],
Tags: {}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/rulesets';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"Name":"","Description":"","TargetArn":"","Rules":[{"Name":"","Disabled":"","CheckExpression":"","SubstitutionMap":"","Threshold":"","ColumnSelectors":""}],"Tags":{}}'
};
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}}/rulesets',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "Name": "",\n "Description": "",\n "TargetArn": "",\n "Rules": [\n {\n "Name": "",\n "Disabled": "",\n "CheckExpression": "",\n "SubstitutionMap": "",\n "Threshold": "",\n "ColumnSelectors": ""\n }\n ],\n "Tags": {}\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"Name\": \"\",\n \"Description\": \"\",\n \"TargetArn\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ],\n \"Tags\": {}\n}")
val request = Request.Builder()
.url("{{baseUrl}}/rulesets")
.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/rulesets',
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({
Name: '',
Description: '',
TargetArn: '',
Rules: [
{
Name: '',
Disabled: '',
CheckExpression: '',
SubstitutionMap: '',
Threshold: '',
ColumnSelectors: ''
}
],
Tags: {}
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/rulesets',
headers: {'content-type': 'application/json'},
body: {
Name: '',
Description: '',
TargetArn: '',
Rules: [
{
Name: '',
Disabled: '',
CheckExpression: '',
SubstitutionMap: '',
Threshold: '',
ColumnSelectors: ''
}
],
Tags: {}
},
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}}/rulesets');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
Name: '',
Description: '',
TargetArn: '',
Rules: [
{
Name: '',
Disabled: '',
CheckExpression: '',
SubstitutionMap: '',
Threshold: '',
ColumnSelectors: ''
}
],
Tags: {}
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/rulesets',
headers: {'content-type': 'application/json'},
data: {
Name: '',
Description: '',
TargetArn: '',
Rules: [
{
Name: '',
Disabled: '',
CheckExpression: '',
SubstitutionMap: '',
Threshold: '',
ColumnSelectors: ''
}
],
Tags: {}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/rulesets';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"Name":"","Description":"","TargetArn":"","Rules":[{"Name":"","Disabled":"","CheckExpression":"","SubstitutionMap":"","Threshold":"","ColumnSelectors":""}],"Tags":{}}'
};
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 = @{ @"Name": @"",
@"Description": @"",
@"TargetArn": @"",
@"Rules": @[ @{ @"Name": @"", @"Disabled": @"", @"CheckExpression": @"", @"SubstitutionMap": @"", @"Threshold": @"", @"ColumnSelectors": @"" } ],
@"Tags": @{ } };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/rulesets"]
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}}/rulesets" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"Name\": \"\",\n \"Description\": \"\",\n \"TargetArn\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ],\n \"Tags\": {}\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/rulesets",
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([
'Name' => '',
'Description' => '',
'TargetArn' => '',
'Rules' => [
[
'Name' => '',
'Disabled' => '',
'CheckExpression' => '',
'SubstitutionMap' => '',
'Threshold' => '',
'ColumnSelectors' => ''
]
],
'Tags' => [
]
]),
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}}/rulesets', [
'body' => '{
"Name": "",
"Description": "",
"TargetArn": "",
"Rules": [
{
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
}
],
"Tags": {}
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/rulesets');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'Name' => '',
'Description' => '',
'TargetArn' => '',
'Rules' => [
[
'Name' => '',
'Disabled' => '',
'CheckExpression' => '',
'SubstitutionMap' => '',
'Threshold' => '',
'ColumnSelectors' => ''
]
],
'Tags' => [
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'Name' => '',
'Description' => '',
'TargetArn' => '',
'Rules' => [
[
'Name' => '',
'Disabled' => '',
'CheckExpression' => '',
'SubstitutionMap' => '',
'Threshold' => '',
'ColumnSelectors' => ''
]
],
'Tags' => [
]
]));
$request->setRequestUrl('{{baseUrl}}/rulesets');
$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}}/rulesets' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"Name": "",
"Description": "",
"TargetArn": "",
"Rules": [
{
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
}
],
"Tags": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/rulesets' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"Name": "",
"Description": "",
"TargetArn": "",
"Rules": [
{
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
}
],
"Tags": {}
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"Name\": \"\",\n \"Description\": \"\",\n \"TargetArn\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ],\n \"Tags\": {}\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/rulesets", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/rulesets"
payload = {
"Name": "",
"Description": "",
"TargetArn": "",
"Rules": [
{
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
}
],
"Tags": {}
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/rulesets"
payload <- "{\n \"Name\": \"\",\n \"Description\": \"\",\n \"TargetArn\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ],\n \"Tags\": {}\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}}/rulesets")
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 \"Name\": \"\",\n \"Description\": \"\",\n \"TargetArn\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ],\n \"Tags\": {}\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/rulesets') do |req|
req.body = "{\n \"Name\": \"\",\n \"Description\": \"\",\n \"TargetArn\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ],\n \"Tags\": {}\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/rulesets";
let payload = json!({
"Name": "",
"Description": "",
"TargetArn": "",
"Rules": (
json!({
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
})
),
"Tags": 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}}/rulesets \
--header 'content-type: application/json' \
--data '{
"Name": "",
"Description": "",
"TargetArn": "",
"Rules": [
{
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
}
],
"Tags": {}
}'
echo '{
"Name": "",
"Description": "",
"TargetArn": "",
"Rules": [
{
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
}
],
"Tags": {}
}' | \
http POST {{baseUrl}}/rulesets \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "Name": "",\n "Description": "",\n "TargetArn": "",\n "Rules": [\n {\n "Name": "",\n "Disabled": "",\n "CheckExpression": "",\n "SubstitutionMap": "",\n "Threshold": "",\n "ColumnSelectors": ""\n }\n ],\n "Tags": {}\n}' \
--output-document \
- {{baseUrl}}/rulesets
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"Name": "",
"Description": "",
"TargetArn": "",
"Rules": [
[
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
]
],
"Tags": []
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/rulesets")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
CreateSchedule
{{baseUrl}}/schedules
BODY json
{
"JobNames": [],
"CronExpression": "",
"Tags": {},
"Name": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/schedules");
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 \"JobNames\": [],\n \"CronExpression\": \"\",\n \"Tags\": {},\n \"Name\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/schedules" {:content-type :json
:form-params {:JobNames []
:CronExpression ""
:Tags {}
:Name ""}})
require "http/client"
url = "{{baseUrl}}/schedules"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"JobNames\": [],\n \"CronExpression\": \"\",\n \"Tags\": {},\n \"Name\": \"\"\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}}/schedules"),
Content = new StringContent("{\n \"JobNames\": [],\n \"CronExpression\": \"\",\n \"Tags\": {},\n \"Name\": \"\"\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}}/schedules");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"JobNames\": [],\n \"CronExpression\": \"\",\n \"Tags\": {},\n \"Name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/schedules"
payload := strings.NewReader("{\n \"JobNames\": [],\n \"CronExpression\": \"\",\n \"Tags\": {},\n \"Name\": \"\"\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/schedules HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 72
{
"JobNames": [],
"CronExpression": "",
"Tags": {},
"Name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/schedules")
.setHeader("content-type", "application/json")
.setBody("{\n \"JobNames\": [],\n \"CronExpression\": \"\",\n \"Tags\": {},\n \"Name\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/schedules"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"JobNames\": [],\n \"CronExpression\": \"\",\n \"Tags\": {},\n \"Name\": \"\"\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 \"JobNames\": [],\n \"CronExpression\": \"\",\n \"Tags\": {},\n \"Name\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/schedules")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/schedules")
.header("content-type", "application/json")
.body("{\n \"JobNames\": [],\n \"CronExpression\": \"\",\n \"Tags\": {},\n \"Name\": \"\"\n}")
.asString();
const data = JSON.stringify({
JobNames: [],
CronExpression: '',
Tags: {},
Name: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/schedules');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/schedules',
headers: {'content-type': 'application/json'},
data: {JobNames: [], CronExpression: '', Tags: {}, Name: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/schedules';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"JobNames":[],"CronExpression":"","Tags":{},"Name":""}'
};
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}}/schedules',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "JobNames": [],\n "CronExpression": "",\n "Tags": {},\n "Name": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"JobNames\": [],\n \"CronExpression\": \"\",\n \"Tags\": {},\n \"Name\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/schedules")
.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/schedules',
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({JobNames: [], CronExpression: '', Tags: {}, Name: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/schedules',
headers: {'content-type': 'application/json'},
body: {JobNames: [], CronExpression: '', Tags: {}, Name: ''},
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}}/schedules');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
JobNames: [],
CronExpression: '',
Tags: {},
Name: ''
});
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}}/schedules',
headers: {'content-type': 'application/json'},
data: {JobNames: [], CronExpression: '', Tags: {}, Name: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/schedules';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"JobNames":[],"CronExpression":"","Tags":{},"Name":""}'
};
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 = @{ @"JobNames": @[ ],
@"CronExpression": @"",
@"Tags": @{ },
@"Name": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/schedules"]
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}}/schedules" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"JobNames\": [],\n \"CronExpression\": \"\",\n \"Tags\": {},\n \"Name\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/schedules",
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([
'JobNames' => [
],
'CronExpression' => '',
'Tags' => [
],
'Name' => ''
]),
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}}/schedules', [
'body' => '{
"JobNames": [],
"CronExpression": "",
"Tags": {},
"Name": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/schedules');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'JobNames' => [
],
'CronExpression' => '',
'Tags' => [
],
'Name' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'JobNames' => [
],
'CronExpression' => '',
'Tags' => [
],
'Name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/schedules');
$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}}/schedules' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"JobNames": [],
"CronExpression": "",
"Tags": {},
"Name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/schedules' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"JobNames": [],
"CronExpression": "",
"Tags": {},
"Name": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"JobNames\": [],\n \"CronExpression\": \"\",\n \"Tags\": {},\n \"Name\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/schedules", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/schedules"
payload = {
"JobNames": [],
"CronExpression": "",
"Tags": {},
"Name": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/schedules"
payload <- "{\n \"JobNames\": [],\n \"CronExpression\": \"\",\n \"Tags\": {},\n \"Name\": \"\"\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}}/schedules")
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 \"JobNames\": [],\n \"CronExpression\": \"\",\n \"Tags\": {},\n \"Name\": \"\"\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/schedules') do |req|
req.body = "{\n \"JobNames\": [],\n \"CronExpression\": \"\",\n \"Tags\": {},\n \"Name\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/schedules";
let payload = json!({
"JobNames": (),
"CronExpression": "",
"Tags": json!({}),
"Name": ""
});
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}}/schedules \
--header 'content-type: application/json' \
--data '{
"JobNames": [],
"CronExpression": "",
"Tags": {},
"Name": ""
}'
echo '{
"JobNames": [],
"CronExpression": "",
"Tags": {},
"Name": ""
}' | \
http POST {{baseUrl}}/schedules \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "JobNames": [],\n "CronExpression": "",\n "Tags": {},\n "Name": ""\n}' \
--output-document \
- {{baseUrl}}/schedules
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"JobNames": [],
"CronExpression": "",
"Tags": [],
"Name": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/schedules")! 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
DeleteDataset
{{baseUrl}}/datasets/:name
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/datasets/:name");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/datasets/:name")
require "http/client"
url = "{{baseUrl}}/datasets/:name"
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}}/datasets/:name"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/datasets/:name");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/datasets/:name"
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/datasets/:name HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/datasets/:name")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/datasets/:name"))
.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}}/datasets/:name")
.delete(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/datasets/:name")
.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}}/datasets/:name');
xhr.send(data);
import axios from 'axios';
const options = {method: 'DELETE', url: '{{baseUrl}}/datasets/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/datasets/:name';
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}}/datasets/:name',
method: 'DELETE',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/datasets/:name")
.delete(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/datasets/:name',
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}}/datasets/:name'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/datasets/:name');
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}}/datasets/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/datasets/:name';
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}}/datasets/:name"]
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}}/datasets/:name" in
Client.call `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/datasets/:name",
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}}/datasets/:name');
echo $response->getBody();
setUrl('{{baseUrl}}/datasets/:name');
$request->setMethod(HTTP_METH_DELETE);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/datasets/:name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/datasets/:name' -Method DELETE
$response = Invoke-RestMethod -Uri '{{baseUrl}}/datasets/:name' -Method DELETE
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("DELETE", "/baseUrl/datasets/:name")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/datasets/:name"
response = requests.delete(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/datasets/:name"
response <- VERB("DELETE", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/datasets/:name")
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/datasets/:name') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/datasets/:name";
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}}/datasets/:name
http DELETE {{baseUrl}}/datasets/:name
wget --quiet \
--method DELETE \
--output-document \
- {{baseUrl}}/datasets/:name
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/datasets/:name")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DeleteJob
{{baseUrl}}/jobs/:name
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/jobs/:name");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/jobs/:name")
require "http/client"
url = "{{baseUrl}}/jobs/:name"
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}}/jobs/:name"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/jobs/:name");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/jobs/:name"
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/jobs/:name HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/jobs/:name")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/jobs/:name"))
.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}}/jobs/:name")
.delete(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/jobs/:name")
.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}}/jobs/:name');
xhr.send(data);
import axios from 'axios';
const options = {method: 'DELETE', url: '{{baseUrl}}/jobs/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/jobs/:name';
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}}/jobs/:name',
method: 'DELETE',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/jobs/:name")
.delete(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/jobs/:name',
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}}/jobs/:name'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/jobs/:name');
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}}/jobs/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/jobs/:name';
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}}/jobs/:name"]
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}}/jobs/:name" in
Client.call `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/jobs/:name",
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}}/jobs/:name');
echo $response->getBody();
setUrl('{{baseUrl}}/jobs/:name');
$request->setMethod(HTTP_METH_DELETE);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/jobs/:name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/jobs/:name' -Method DELETE
$response = Invoke-RestMethod -Uri '{{baseUrl}}/jobs/:name' -Method DELETE
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("DELETE", "/baseUrl/jobs/:name")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/jobs/:name"
response = requests.delete(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/jobs/:name"
response <- VERB("DELETE", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/jobs/:name")
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/jobs/:name') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/jobs/:name";
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}}/jobs/:name
http DELETE {{baseUrl}}/jobs/:name
wget --quiet \
--method DELETE \
--output-document \
- {{baseUrl}}/jobs/:name
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/jobs/:name")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DeleteProject
{{baseUrl}}/projects/:name
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/projects/:name");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/projects/:name")
require "http/client"
url = "{{baseUrl}}/projects/:name"
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}}/projects/:name"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/projects/:name");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/projects/:name"
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/projects/:name HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/projects/:name")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/projects/:name"))
.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}}/projects/:name")
.delete(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/projects/:name")
.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}}/projects/:name');
xhr.send(data);
import axios from 'axios';
const options = {method: 'DELETE', url: '{{baseUrl}}/projects/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/projects/:name';
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}}/projects/:name',
method: 'DELETE',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/projects/:name")
.delete(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/projects/:name',
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}}/projects/:name'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/projects/:name');
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}}/projects/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/projects/:name';
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}}/projects/:name"]
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}}/projects/:name" in
Client.call `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/projects/:name",
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}}/projects/:name');
echo $response->getBody();
setUrl('{{baseUrl}}/projects/:name');
$request->setMethod(HTTP_METH_DELETE);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/projects/:name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/projects/:name' -Method DELETE
$response = Invoke-RestMethod -Uri '{{baseUrl}}/projects/:name' -Method DELETE
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("DELETE", "/baseUrl/projects/:name")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/projects/:name"
response = requests.delete(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/projects/:name"
response <- VERB("DELETE", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/projects/:name")
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/projects/:name') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/projects/:name";
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}}/projects/:name
http DELETE {{baseUrl}}/projects/:name
wget --quiet \
--method DELETE \
--output-document \
- {{baseUrl}}/projects/:name
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/projects/:name")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DeleteRecipeVersion
{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion
QUERY PARAMS
name
recipeVersion
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion")
require "http/client"
url = "{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion"
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}}/recipes/:name/recipeVersion/:recipeVersion"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion"
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/recipes/:name/recipeVersion/:recipeVersion HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion"))
.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}}/recipes/:name/recipeVersion/:recipeVersion")
.delete(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion")
.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}}/recipes/:name/recipeVersion/:recipeVersion');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion';
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}}/recipes/:name/recipeVersion/:recipeVersion',
method: 'DELETE',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion")
.delete(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/recipes/:name/recipeVersion/:recipeVersion',
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}}/recipes/:name/recipeVersion/:recipeVersion'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion');
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}}/recipes/:name/recipeVersion/:recipeVersion'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion';
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}}/recipes/:name/recipeVersion/:recipeVersion"]
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}}/recipes/:name/recipeVersion/:recipeVersion" in
Client.call `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion",
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}}/recipes/:name/recipeVersion/:recipeVersion');
echo $response->getBody();
setUrl('{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion');
$request->setMethod(HTTP_METH_DELETE);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion' -Method DELETE
$response = Invoke-RestMethod -Uri '{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion' -Method DELETE
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("DELETE", "/baseUrl/recipes/:name/recipeVersion/:recipeVersion")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion"
response = requests.delete(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion"
response <- VERB("DELETE", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion")
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/recipes/:name/recipeVersion/:recipeVersion') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion";
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}}/recipes/:name/recipeVersion/:recipeVersion
http DELETE {{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion
wget --quiet \
--method DELETE \
--output-document \
- {{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/recipes/:name/recipeVersion/:recipeVersion")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DeleteRuleset
{{baseUrl}}/rulesets/:name
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/rulesets/:name");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/rulesets/:name")
require "http/client"
url = "{{baseUrl}}/rulesets/:name"
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}}/rulesets/:name"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/rulesets/:name");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/rulesets/:name"
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/rulesets/:name HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/rulesets/:name")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/rulesets/:name"))
.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}}/rulesets/:name")
.delete(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/rulesets/:name")
.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}}/rulesets/:name');
xhr.send(data);
import axios from 'axios';
const options = {method: 'DELETE', url: '{{baseUrl}}/rulesets/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/rulesets/:name';
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}}/rulesets/:name',
method: 'DELETE',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/rulesets/:name")
.delete(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/rulesets/:name',
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}}/rulesets/:name'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/rulesets/:name');
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}}/rulesets/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/rulesets/:name';
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}}/rulesets/:name"]
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}}/rulesets/:name" in
Client.call `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/rulesets/:name",
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}}/rulesets/:name');
echo $response->getBody();
setUrl('{{baseUrl}}/rulesets/:name');
$request->setMethod(HTTP_METH_DELETE);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/rulesets/:name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/rulesets/:name' -Method DELETE
$response = Invoke-RestMethod -Uri '{{baseUrl}}/rulesets/:name' -Method DELETE
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("DELETE", "/baseUrl/rulesets/:name")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/rulesets/:name"
response = requests.delete(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/rulesets/:name"
response <- VERB("DELETE", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/rulesets/:name")
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/rulesets/:name') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/rulesets/:name";
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}}/rulesets/:name
http DELETE {{baseUrl}}/rulesets/:name
wget --quiet \
--method DELETE \
--output-document \
- {{baseUrl}}/rulesets/:name
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/rulesets/:name")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DeleteSchedule
{{baseUrl}}/schedules/:name
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/schedules/:name");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/schedules/:name")
require "http/client"
url = "{{baseUrl}}/schedules/:name"
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}}/schedules/:name"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/schedules/:name");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/schedules/:name"
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/schedules/:name HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/schedules/:name")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/schedules/:name"))
.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}}/schedules/:name")
.delete(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/schedules/:name")
.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}}/schedules/:name');
xhr.send(data);
import axios from 'axios';
const options = {method: 'DELETE', url: '{{baseUrl}}/schedules/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/schedules/:name';
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}}/schedules/:name',
method: 'DELETE',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/schedules/:name")
.delete(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/schedules/:name',
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}}/schedules/:name'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/schedules/:name');
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}}/schedules/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/schedules/:name';
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}}/schedules/:name"]
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}}/schedules/:name" in
Client.call `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/schedules/:name",
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}}/schedules/:name');
echo $response->getBody();
setUrl('{{baseUrl}}/schedules/:name');
$request->setMethod(HTTP_METH_DELETE);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/schedules/:name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/schedules/:name' -Method DELETE
$response = Invoke-RestMethod -Uri '{{baseUrl}}/schedules/:name' -Method DELETE
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("DELETE", "/baseUrl/schedules/:name")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/schedules/:name"
response = requests.delete(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/schedules/:name"
response <- VERB("DELETE", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/schedules/:name")
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/schedules/:name') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/schedules/:name";
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}}/schedules/:name
http DELETE {{baseUrl}}/schedules/:name
wget --quiet \
--method DELETE \
--output-document \
- {{baseUrl}}/schedules/:name
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/schedules/:name")! 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
DescribeDataset
{{baseUrl}}/datasets/:name
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/datasets/:name");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/datasets/:name")
require "http/client"
url = "{{baseUrl}}/datasets/:name"
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}}/datasets/:name"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/datasets/:name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/datasets/:name"
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/datasets/:name HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/datasets/:name")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/datasets/:name"))
.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}}/datasets/:name")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/datasets/:name")
.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}}/datasets/:name');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/datasets/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/datasets/:name';
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}}/datasets/:name',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/datasets/:name")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/datasets/:name',
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}}/datasets/:name'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/datasets/:name');
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}}/datasets/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/datasets/:name';
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}}/datasets/:name"]
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}}/datasets/:name" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/datasets/:name",
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}}/datasets/:name');
echo $response->getBody();
setUrl('{{baseUrl}}/datasets/:name');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/datasets/:name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/datasets/:name' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/datasets/:name' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/datasets/:name")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/datasets/:name"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/datasets/:name"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/datasets/:name")
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/datasets/:name') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/datasets/:name";
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}}/datasets/:name
http GET {{baseUrl}}/datasets/:name
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/datasets/:name
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/datasets/:name")! 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
DescribeJob
{{baseUrl}}/jobs/:name
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/jobs/:name");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/jobs/:name")
require "http/client"
url = "{{baseUrl}}/jobs/:name"
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}}/jobs/:name"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/jobs/:name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/jobs/:name"
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/jobs/:name HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/jobs/:name")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/jobs/:name"))
.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}}/jobs/:name")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/jobs/:name")
.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}}/jobs/:name');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/jobs/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/jobs/:name';
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}}/jobs/:name',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/jobs/:name")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/jobs/:name',
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}}/jobs/:name'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/jobs/:name');
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}}/jobs/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/jobs/:name';
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}}/jobs/:name"]
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}}/jobs/:name" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/jobs/:name",
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}}/jobs/:name');
echo $response->getBody();
setUrl('{{baseUrl}}/jobs/:name');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/jobs/:name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/jobs/:name' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/jobs/:name' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/jobs/:name")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/jobs/:name"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/jobs/:name"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/jobs/:name")
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/jobs/:name') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/jobs/:name";
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}}/jobs/:name
http GET {{baseUrl}}/jobs/:name
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/jobs/:name
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/jobs/:name")! 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
DescribeJobRun
{{baseUrl}}/jobs/:name/jobRun/:runId
QUERY PARAMS
name
runId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/jobs/:name/jobRun/:runId");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/jobs/:name/jobRun/:runId")
require "http/client"
url = "{{baseUrl}}/jobs/:name/jobRun/:runId"
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}}/jobs/:name/jobRun/:runId"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/jobs/:name/jobRun/:runId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/jobs/:name/jobRun/:runId"
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/jobs/:name/jobRun/:runId HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/jobs/:name/jobRun/:runId")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/jobs/:name/jobRun/:runId"))
.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}}/jobs/:name/jobRun/:runId")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/jobs/:name/jobRun/:runId")
.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}}/jobs/:name/jobRun/:runId');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/jobs/:name/jobRun/:runId'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/jobs/:name/jobRun/:runId';
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}}/jobs/:name/jobRun/:runId',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/jobs/:name/jobRun/:runId")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/jobs/:name/jobRun/:runId',
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}}/jobs/:name/jobRun/:runId'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/jobs/:name/jobRun/:runId');
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}}/jobs/:name/jobRun/:runId'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/jobs/:name/jobRun/:runId';
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}}/jobs/:name/jobRun/:runId"]
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}}/jobs/:name/jobRun/:runId" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/jobs/:name/jobRun/:runId",
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}}/jobs/:name/jobRun/:runId');
echo $response->getBody();
setUrl('{{baseUrl}}/jobs/:name/jobRun/:runId');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/jobs/:name/jobRun/:runId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/jobs/:name/jobRun/:runId' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/jobs/:name/jobRun/:runId' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/jobs/:name/jobRun/:runId")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/jobs/:name/jobRun/:runId"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/jobs/:name/jobRun/:runId"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/jobs/:name/jobRun/:runId")
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/jobs/:name/jobRun/:runId') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/jobs/:name/jobRun/:runId";
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}}/jobs/:name/jobRun/:runId
http GET {{baseUrl}}/jobs/:name/jobRun/:runId
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/jobs/:name/jobRun/:runId
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/jobs/:name/jobRun/:runId")! 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
DescribeProject
{{baseUrl}}/projects/:name
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/projects/:name");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/projects/:name")
require "http/client"
url = "{{baseUrl}}/projects/:name"
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}}/projects/:name"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/projects/:name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/projects/:name"
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/projects/:name HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/projects/:name")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/projects/:name"))
.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}}/projects/:name")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/projects/:name")
.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}}/projects/:name');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/projects/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/projects/:name';
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}}/projects/:name',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/projects/:name")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/projects/:name',
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}}/projects/:name'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/projects/:name');
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}}/projects/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/projects/:name';
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}}/projects/:name"]
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}}/projects/:name" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/projects/:name",
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}}/projects/:name');
echo $response->getBody();
setUrl('{{baseUrl}}/projects/:name');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/projects/:name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/projects/:name' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/projects/:name' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/projects/:name")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/projects/:name"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/projects/:name"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/projects/:name")
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/projects/:name') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/projects/:name";
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}}/projects/:name
http GET {{baseUrl}}/projects/:name
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/projects/:name
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/projects/:name")! 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
DescribeRecipe
{{baseUrl}}/recipes/:name
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/recipes/:name");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/recipes/:name")
require "http/client"
url = "{{baseUrl}}/recipes/:name"
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}}/recipes/:name"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/recipes/:name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/recipes/:name"
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/recipes/:name HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/recipes/:name")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/recipes/:name"))
.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}}/recipes/:name")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/recipes/:name")
.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}}/recipes/:name');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/recipes/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/recipes/:name';
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}}/recipes/:name',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/recipes/:name")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/recipes/:name',
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}}/recipes/:name'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/recipes/:name');
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}}/recipes/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/recipes/:name';
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}}/recipes/:name"]
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}}/recipes/:name" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/recipes/:name",
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}}/recipes/:name');
echo $response->getBody();
setUrl('{{baseUrl}}/recipes/:name');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/recipes/:name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/recipes/:name' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/recipes/:name' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/recipes/:name")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/recipes/:name"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/recipes/:name"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/recipes/:name")
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/recipes/:name') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/recipes/:name";
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}}/recipes/:name
http GET {{baseUrl}}/recipes/:name
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/recipes/:name
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/recipes/:name")! 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
DescribeRuleset
{{baseUrl}}/rulesets/:name
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/rulesets/:name");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/rulesets/:name")
require "http/client"
url = "{{baseUrl}}/rulesets/:name"
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}}/rulesets/:name"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/rulesets/:name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/rulesets/:name"
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/rulesets/:name HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/rulesets/:name")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/rulesets/:name"))
.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}}/rulesets/:name")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/rulesets/:name")
.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}}/rulesets/:name');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/rulesets/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/rulesets/:name';
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}}/rulesets/:name',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/rulesets/:name")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/rulesets/:name',
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}}/rulesets/:name'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/rulesets/:name');
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}}/rulesets/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/rulesets/:name';
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}}/rulesets/:name"]
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}}/rulesets/:name" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/rulesets/:name",
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}}/rulesets/:name');
echo $response->getBody();
setUrl('{{baseUrl}}/rulesets/:name');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/rulesets/:name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/rulesets/:name' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/rulesets/:name' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/rulesets/:name")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/rulesets/:name"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/rulesets/:name"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/rulesets/:name")
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/rulesets/:name') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/rulesets/:name";
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}}/rulesets/:name
http GET {{baseUrl}}/rulesets/:name
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/rulesets/:name
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/rulesets/:name")! 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
DescribeSchedule
{{baseUrl}}/schedules/:name
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/schedules/:name");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/schedules/:name")
require "http/client"
url = "{{baseUrl}}/schedules/:name"
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}}/schedules/:name"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/schedules/:name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/schedules/:name"
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/schedules/:name HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/schedules/:name")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/schedules/:name"))
.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}}/schedules/:name")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/schedules/:name")
.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}}/schedules/:name');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/schedules/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/schedules/:name';
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}}/schedules/:name',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/schedules/:name")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/schedules/:name',
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}}/schedules/:name'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/schedules/:name');
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}}/schedules/:name'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/schedules/:name';
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}}/schedules/:name"]
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}}/schedules/:name" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/schedules/:name",
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}}/schedules/:name');
echo $response->getBody();
setUrl('{{baseUrl}}/schedules/:name');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/schedules/:name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/schedules/:name' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/schedules/:name' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/schedules/:name")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/schedules/:name"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/schedules/:name"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/schedules/:name")
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/schedules/:name') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/schedules/:name";
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}}/schedules/:name
http GET {{baseUrl}}/schedules/:name
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/schedules/:name
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/schedules/:name")! 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
ListDatasets
{{baseUrl}}/datasets
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/datasets");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/datasets")
require "http/client"
url = "{{baseUrl}}/datasets"
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}}/datasets"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/datasets");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/datasets"
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/datasets HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/datasets")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/datasets"))
.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}}/datasets")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/datasets")
.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}}/datasets');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/datasets'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/datasets';
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}}/datasets',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/datasets")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/datasets',
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}}/datasets'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/datasets');
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}}/datasets'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/datasets';
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}}/datasets"]
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}}/datasets" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/datasets",
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}}/datasets');
echo $response->getBody();
setUrl('{{baseUrl}}/datasets');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/datasets');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/datasets' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/datasets' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/datasets")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/datasets"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/datasets"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/datasets")
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/datasets') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/datasets";
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}}/datasets
http GET {{baseUrl}}/datasets
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/datasets
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/datasets")! 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
ListJobRuns
{{baseUrl}}/jobs/:name/jobRuns
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/jobs/:name/jobRuns");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/jobs/:name/jobRuns")
require "http/client"
url = "{{baseUrl}}/jobs/:name/jobRuns"
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}}/jobs/:name/jobRuns"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/jobs/:name/jobRuns");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/jobs/:name/jobRuns"
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/jobs/:name/jobRuns HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/jobs/:name/jobRuns")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/jobs/:name/jobRuns"))
.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}}/jobs/:name/jobRuns")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/jobs/:name/jobRuns")
.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}}/jobs/:name/jobRuns');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/jobs/:name/jobRuns'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/jobs/:name/jobRuns';
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}}/jobs/:name/jobRuns',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/jobs/:name/jobRuns")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/jobs/:name/jobRuns',
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}}/jobs/:name/jobRuns'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/jobs/:name/jobRuns');
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}}/jobs/:name/jobRuns'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/jobs/:name/jobRuns';
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}}/jobs/:name/jobRuns"]
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}}/jobs/:name/jobRuns" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/jobs/:name/jobRuns",
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}}/jobs/:name/jobRuns');
echo $response->getBody();
setUrl('{{baseUrl}}/jobs/:name/jobRuns');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/jobs/:name/jobRuns');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/jobs/:name/jobRuns' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/jobs/:name/jobRuns' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/jobs/:name/jobRuns")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/jobs/:name/jobRuns"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/jobs/:name/jobRuns"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/jobs/:name/jobRuns")
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/jobs/:name/jobRuns') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/jobs/:name/jobRuns";
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}}/jobs/:name/jobRuns
http GET {{baseUrl}}/jobs/:name/jobRuns
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/jobs/:name/jobRuns
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/jobs/:name/jobRuns")! 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
ListJobs
{{baseUrl}}/jobs
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/jobs");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/jobs")
require "http/client"
url = "{{baseUrl}}/jobs"
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}}/jobs"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/jobs");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/jobs"
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/jobs HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/jobs")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/jobs"))
.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}}/jobs")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/jobs")
.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}}/jobs');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/jobs'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/jobs';
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}}/jobs',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/jobs")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/jobs',
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}}/jobs'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/jobs');
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}}/jobs'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/jobs';
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}}/jobs"]
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}}/jobs" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/jobs",
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}}/jobs');
echo $response->getBody();
setUrl('{{baseUrl}}/jobs');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/jobs');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/jobs' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/jobs' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/jobs")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/jobs"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/jobs"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/jobs")
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/jobs') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/jobs";
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}}/jobs
http GET {{baseUrl}}/jobs
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/jobs
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/jobs")! 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
ListProjects
{{baseUrl}}/projects
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/projects");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/projects")
require "http/client"
url = "{{baseUrl}}/projects"
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}}/projects"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/projects");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/projects"
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/projects HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/projects")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/projects"))
.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}}/projects")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/projects")
.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}}/projects');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/projects'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/projects';
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}}/projects',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/projects")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/projects',
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}}/projects'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/projects');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/projects'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/projects';
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}}/projects"]
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}}/projects" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/projects",
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}}/projects');
echo $response->getBody();
setUrl('{{baseUrl}}/projects');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/projects');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/projects' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/projects' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/projects")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/projects"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/projects"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/projects")
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/projects') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/projects";
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}}/projects
http GET {{baseUrl}}/projects
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/projects
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/projects")! 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
ListRecipeVersions
{{baseUrl}}/recipeVersions#name
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/recipeVersions?name=#name");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/recipeVersions#name" {:query-params {:name ""}})
require "http/client"
url = "{{baseUrl}}/recipeVersions?name=#name"
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}}/recipeVersions?name=#name"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/recipeVersions?name=#name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/recipeVersions?name=#name"
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/recipeVersions?name= HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/recipeVersions?name=#name")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/recipeVersions?name=#name"))
.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}}/recipeVersions?name=#name")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/recipeVersions?name=#name")
.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}}/recipeVersions?name=#name');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/recipeVersions#name',
params: {name: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/recipeVersions?name=#name';
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}}/recipeVersions?name=#name',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/recipeVersions?name=#name")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/recipeVersions?name=',
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}}/recipeVersions#name',
qs: {name: ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/recipeVersions#name');
req.query({
name: ''
});
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}}/recipeVersions#name',
params: {name: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/recipeVersions?name=#name';
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}}/recipeVersions?name=#name"]
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}}/recipeVersions?name=#name" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/recipeVersions?name=#name",
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}}/recipeVersions?name=#name');
echo $response->getBody();
setUrl('{{baseUrl}}/recipeVersions#name');
$request->setMethod(HTTP_METH_GET);
$request->setQueryData([
'name' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/recipeVersions#name');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
'name' => ''
]));
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/recipeVersions?name=#name' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/recipeVersions?name=#name' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/recipeVersions?name=")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/recipeVersions#name"
querystring = {"name":""}
response = requests.get(url, params=querystring)
print(response.json())
library(httr)
url <- "{{baseUrl}}/recipeVersions#name"
queryString <- list(name = "")
response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/recipeVersions?name=#name")
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/recipeVersions') do |req|
req.params['name'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/recipeVersions#name";
let querystring = [
("name", ""),
];
let client = reqwest::Client::new();
let response = client.get(url)
.query(&querystring)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url '{{baseUrl}}/recipeVersions?name=#name'
http GET '{{baseUrl}}/recipeVersions?name=#name'
wget --quiet \
--method GET \
--output-document \
- '{{baseUrl}}/recipeVersions?name=#name'
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/recipeVersions?name=#name")! 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
ListRecipes
{{baseUrl}}/recipes
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/recipes");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/recipes")
require "http/client"
url = "{{baseUrl}}/recipes"
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}}/recipes"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/recipes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/recipes"
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/recipes HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/recipes")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/recipes"))
.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}}/recipes")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/recipes")
.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}}/recipes');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/recipes'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/recipes';
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}}/recipes',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/recipes")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/recipes',
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}}/recipes'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/recipes');
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}}/recipes'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/recipes';
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}}/recipes"]
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}}/recipes" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/recipes",
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}}/recipes');
echo $response->getBody();
setUrl('{{baseUrl}}/recipes');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/recipes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/recipes' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/recipes' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/recipes")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/recipes"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/recipes"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/recipes")
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/recipes') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/recipes";
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}}/recipes
http GET {{baseUrl}}/recipes
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/recipes
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/recipes")! 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
ListRulesets
{{baseUrl}}/rulesets
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/rulesets");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/rulesets")
require "http/client"
url = "{{baseUrl}}/rulesets"
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}}/rulesets"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/rulesets");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/rulesets"
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/rulesets HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/rulesets")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/rulesets"))
.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}}/rulesets")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/rulesets")
.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}}/rulesets');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/rulesets'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/rulesets';
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}}/rulesets',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/rulesets")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/rulesets',
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}}/rulesets'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/rulesets');
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}}/rulesets'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/rulesets';
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}}/rulesets"]
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}}/rulesets" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/rulesets",
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}}/rulesets');
echo $response->getBody();
setUrl('{{baseUrl}}/rulesets');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/rulesets');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/rulesets' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/rulesets' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/rulesets")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/rulesets"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/rulesets"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/rulesets")
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/rulesets') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/rulesets";
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}}/rulesets
http GET {{baseUrl}}/rulesets
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/rulesets
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/rulesets")! 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
ListSchedules
{{baseUrl}}/schedules
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/schedules");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/schedules")
require "http/client"
url = "{{baseUrl}}/schedules"
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}}/schedules"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/schedules");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/schedules"
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/schedules HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/schedules")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/schedules"))
.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}}/schedules")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/schedules")
.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}}/schedules');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/schedules'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/schedules';
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}}/schedules',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/schedules")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/schedules',
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}}/schedules'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/schedules');
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}}/schedules'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/schedules';
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}}/schedules"]
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}}/schedules" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/schedules",
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}}/schedules');
echo $response->getBody();
setUrl('{{baseUrl}}/schedules');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/schedules');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/schedules' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/schedules' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/schedules")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/schedules"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/schedules"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/schedules")
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/schedules') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/schedules";
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}}/schedules
http GET {{baseUrl}}/schedules
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/schedules
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/schedules")! 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
ListTagsForResource
{{baseUrl}}/tags/:ResourceArn
QUERY PARAMS
ResourceArn
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tags/:ResourceArn");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tags/:ResourceArn")
require "http/client"
url = "{{baseUrl}}/tags/:ResourceArn"
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}}/tags/:ResourceArn"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tags/:ResourceArn");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tags/:ResourceArn"
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/tags/:ResourceArn HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tags/:ResourceArn")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tags/:ResourceArn"))
.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}}/tags/:ResourceArn")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tags/:ResourceArn")
.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}}/tags/:ResourceArn');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/tags/:ResourceArn'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tags/:ResourceArn';
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}}/tags/:ResourceArn',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tags/:ResourceArn")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tags/:ResourceArn',
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}}/tags/:ResourceArn'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tags/:ResourceArn');
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}}/tags/:ResourceArn'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tags/:ResourceArn';
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}}/tags/:ResourceArn"]
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}}/tags/:ResourceArn" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tags/:ResourceArn",
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}}/tags/:ResourceArn');
echo $response->getBody();
setUrl('{{baseUrl}}/tags/:ResourceArn');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tags/:ResourceArn');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tags/:ResourceArn' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tags/:ResourceArn' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tags/:ResourceArn")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tags/:ResourceArn"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tags/:ResourceArn"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tags/:ResourceArn")
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/tags/:ResourceArn') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tags/:ResourceArn";
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}}/tags/:ResourceArn
http GET {{baseUrl}}/tags/:ResourceArn
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tags/:ResourceArn
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tags/:ResourceArn")! 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
PublishRecipe
{{baseUrl}}/recipes/:name/publishRecipe
QUERY PARAMS
name
BODY json
{
"Description": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/recipes/:name/publishRecipe");
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 \"Description\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/recipes/:name/publishRecipe" {:content-type :json
:form-params {:Description ""}})
require "http/client"
url = "{{baseUrl}}/recipes/:name/publishRecipe"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"Description\": \"\"\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}}/recipes/:name/publishRecipe"),
Content = new StringContent("{\n \"Description\": \"\"\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}}/recipes/:name/publishRecipe");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"Description\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/recipes/:name/publishRecipe"
payload := strings.NewReader("{\n \"Description\": \"\"\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/recipes/:name/publishRecipe HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 23
{
"Description": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/recipes/:name/publishRecipe")
.setHeader("content-type", "application/json")
.setBody("{\n \"Description\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/recipes/:name/publishRecipe"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"Description\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"Description\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/recipes/:name/publishRecipe")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/recipes/:name/publishRecipe")
.header("content-type", "application/json")
.body("{\n \"Description\": \"\"\n}")
.asString();
const data = JSON.stringify({
Description: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/recipes/:name/publishRecipe');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/recipes/:name/publishRecipe',
headers: {'content-type': 'application/json'},
data: {Description: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/recipes/:name/publishRecipe';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"Description":""}'
};
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}}/recipes/:name/publishRecipe',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "Description": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"Description\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/recipes/:name/publishRecipe")
.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/recipes/:name/publishRecipe',
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({Description: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/recipes/:name/publishRecipe',
headers: {'content-type': 'application/json'},
body: {Description: ''},
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}}/recipes/:name/publishRecipe');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
Description: ''
});
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}}/recipes/:name/publishRecipe',
headers: {'content-type': 'application/json'},
data: {Description: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/recipes/:name/publishRecipe';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"Description":""}'
};
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 = @{ @"Description": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/recipes/:name/publishRecipe"]
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}}/recipes/:name/publishRecipe" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"Description\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/recipes/:name/publishRecipe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'Description' => ''
]),
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}}/recipes/:name/publishRecipe', [
'body' => '{
"Description": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/recipes/:name/publishRecipe');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'Description' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'Description' => ''
]));
$request->setRequestUrl('{{baseUrl}}/recipes/:name/publishRecipe');
$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}}/recipes/:name/publishRecipe' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"Description": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/recipes/:name/publishRecipe' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"Description": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"Description\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/recipes/:name/publishRecipe", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/recipes/:name/publishRecipe"
payload = { "Description": "" }
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/recipes/:name/publishRecipe"
payload <- "{\n \"Description\": \"\"\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}}/recipes/:name/publishRecipe")
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 \"Description\": \"\"\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/recipes/:name/publishRecipe') do |req|
req.body = "{\n \"Description\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/recipes/:name/publishRecipe";
let payload = json!({"Description": ""});
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}}/recipes/:name/publishRecipe \
--header 'content-type: application/json' \
--data '{
"Description": ""
}'
echo '{
"Description": ""
}' | \
http POST {{baseUrl}}/recipes/:name/publishRecipe \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "Description": ""\n}' \
--output-document \
- {{baseUrl}}/recipes/:name/publishRecipe
import Foundation
let headers = ["content-type": "application/json"]
let parameters = ["Description": ""] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/recipes/:name/publishRecipe")! 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()
PUT
SendProjectSessionAction
{{baseUrl}}/projects/:name/sendProjectSessionAction
QUERY PARAMS
name
BODY json
{
"Preview": false,
"RecipeStep": {
"Action": "",
"ConditionExpressions": ""
},
"StepIndex": 0,
"ClientSessionId": "",
"ViewFrame": {
"StartColumnIndex": "",
"ColumnRange": "",
"HiddenColumns": "",
"StartRowIndex": "",
"RowRange": "",
"Analytics": ""
}
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/projects/:name/sendProjectSessionAction");
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 \"Preview\": false,\n \"RecipeStep\": {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n },\n \"StepIndex\": 0,\n \"ClientSessionId\": \"\",\n \"ViewFrame\": {\n \"StartColumnIndex\": \"\",\n \"ColumnRange\": \"\",\n \"HiddenColumns\": \"\",\n \"StartRowIndex\": \"\",\n \"RowRange\": \"\",\n \"Analytics\": \"\"\n }\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/projects/:name/sendProjectSessionAction" {:content-type :json
:form-params {:Preview false
:RecipeStep {:Action ""
:ConditionExpressions ""}
:StepIndex 0
:ClientSessionId ""
:ViewFrame {:StartColumnIndex ""
:ColumnRange ""
:HiddenColumns ""
:StartRowIndex ""
:RowRange ""
:Analytics ""}}})
require "http/client"
url = "{{baseUrl}}/projects/:name/sendProjectSessionAction"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"Preview\": false,\n \"RecipeStep\": {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n },\n \"StepIndex\": 0,\n \"ClientSessionId\": \"\",\n \"ViewFrame\": {\n \"StartColumnIndex\": \"\",\n \"ColumnRange\": \"\",\n \"HiddenColumns\": \"\",\n \"StartRowIndex\": \"\",\n \"RowRange\": \"\",\n \"Analytics\": \"\"\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}}/projects/:name/sendProjectSessionAction"),
Content = new StringContent("{\n \"Preview\": false,\n \"RecipeStep\": {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n },\n \"StepIndex\": 0,\n \"ClientSessionId\": \"\",\n \"ViewFrame\": {\n \"StartColumnIndex\": \"\",\n \"ColumnRange\": \"\",\n \"HiddenColumns\": \"\",\n \"StartRowIndex\": \"\",\n \"RowRange\": \"\",\n \"Analytics\": \"\"\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}}/projects/:name/sendProjectSessionAction");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"Preview\": false,\n \"RecipeStep\": {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n },\n \"StepIndex\": 0,\n \"ClientSessionId\": \"\",\n \"ViewFrame\": {\n \"StartColumnIndex\": \"\",\n \"ColumnRange\": \"\",\n \"HiddenColumns\": \"\",\n \"StartRowIndex\": \"\",\n \"RowRange\": \"\",\n \"Analytics\": \"\"\n }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/projects/:name/sendProjectSessionAction"
payload := strings.NewReader("{\n \"Preview\": false,\n \"RecipeStep\": {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n },\n \"StepIndex\": 0,\n \"ClientSessionId\": \"\",\n \"ViewFrame\": {\n \"StartColumnIndex\": \"\",\n \"ColumnRange\": \"\",\n \"HiddenColumns\": \"\",\n \"StartRowIndex\": \"\",\n \"RowRange\": \"\",\n \"Analytics\": \"\"\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/projects/:name/sendProjectSessionAction HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 300
{
"Preview": false,
"RecipeStep": {
"Action": "",
"ConditionExpressions": ""
},
"StepIndex": 0,
"ClientSessionId": "",
"ViewFrame": {
"StartColumnIndex": "",
"ColumnRange": "",
"HiddenColumns": "",
"StartRowIndex": "",
"RowRange": "",
"Analytics": ""
}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/projects/:name/sendProjectSessionAction")
.setHeader("content-type", "application/json")
.setBody("{\n \"Preview\": false,\n \"RecipeStep\": {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n },\n \"StepIndex\": 0,\n \"ClientSessionId\": \"\",\n \"ViewFrame\": {\n \"StartColumnIndex\": \"\",\n \"ColumnRange\": \"\",\n \"HiddenColumns\": \"\",\n \"StartRowIndex\": \"\",\n \"RowRange\": \"\",\n \"Analytics\": \"\"\n }\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/projects/:name/sendProjectSessionAction"))
.header("content-type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"Preview\": false,\n \"RecipeStep\": {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n },\n \"StepIndex\": 0,\n \"ClientSessionId\": \"\",\n \"ViewFrame\": {\n \"StartColumnIndex\": \"\",\n \"ColumnRange\": \"\",\n \"HiddenColumns\": \"\",\n \"StartRowIndex\": \"\",\n \"RowRange\": \"\",\n \"Analytics\": \"\"\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 \"Preview\": false,\n \"RecipeStep\": {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n },\n \"StepIndex\": 0,\n \"ClientSessionId\": \"\",\n \"ViewFrame\": {\n \"StartColumnIndex\": \"\",\n \"ColumnRange\": \"\",\n \"HiddenColumns\": \"\",\n \"StartRowIndex\": \"\",\n \"RowRange\": \"\",\n \"Analytics\": \"\"\n }\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/projects/:name/sendProjectSessionAction")
.put(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/projects/:name/sendProjectSessionAction")
.header("content-type", "application/json")
.body("{\n \"Preview\": false,\n \"RecipeStep\": {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n },\n \"StepIndex\": 0,\n \"ClientSessionId\": \"\",\n \"ViewFrame\": {\n \"StartColumnIndex\": \"\",\n \"ColumnRange\": \"\",\n \"HiddenColumns\": \"\",\n \"StartRowIndex\": \"\",\n \"RowRange\": \"\",\n \"Analytics\": \"\"\n }\n}")
.asString();
const data = JSON.stringify({
Preview: false,
RecipeStep: {
Action: '',
ConditionExpressions: ''
},
StepIndex: 0,
ClientSessionId: '',
ViewFrame: {
StartColumnIndex: '',
ColumnRange: '',
HiddenColumns: '',
StartRowIndex: '',
RowRange: '',
Analytics: ''
}
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/projects/:name/sendProjectSessionAction');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/projects/:name/sendProjectSessionAction',
headers: {'content-type': 'application/json'},
data: {
Preview: false,
RecipeStep: {Action: '', ConditionExpressions: ''},
StepIndex: 0,
ClientSessionId: '',
ViewFrame: {
StartColumnIndex: '',
ColumnRange: '',
HiddenColumns: '',
StartRowIndex: '',
RowRange: '',
Analytics: ''
}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/projects/:name/sendProjectSessionAction';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"Preview":false,"RecipeStep":{"Action":"","ConditionExpressions":""},"StepIndex":0,"ClientSessionId":"","ViewFrame":{"StartColumnIndex":"","ColumnRange":"","HiddenColumns":"","StartRowIndex":"","RowRange":"","Analytics":""}}'
};
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}}/projects/:name/sendProjectSessionAction',
method: 'PUT',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "Preview": false,\n "RecipeStep": {\n "Action": "",\n "ConditionExpressions": ""\n },\n "StepIndex": 0,\n "ClientSessionId": "",\n "ViewFrame": {\n "StartColumnIndex": "",\n "ColumnRange": "",\n "HiddenColumns": "",\n "StartRowIndex": "",\n "RowRange": "",\n "Analytics": ""\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 \"Preview\": false,\n \"RecipeStep\": {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n },\n \"StepIndex\": 0,\n \"ClientSessionId\": \"\",\n \"ViewFrame\": {\n \"StartColumnIndex\": \"\",\n \"ColumnRange\": \"\",\n \"HiddenColumns\": \"\",\n \"StartRowIndex\": \"\",\n \"RowRange\": \"\",\n \"Analytics\": \"\"\n }\n}")
val request = Request.Builder()
.url("{{baseUrl}}/projects/:name/sendProjectSessionAction")
.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/projects/:name/sendProjectSessionAction',
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({
Preview: false,
RecipeStep: {Action: '', ConditionExpressions: ''},
StepIndex: 0,
ClientSessionId: '',
ViewFrame: {
StartColumnIndex: '',
ColumnRange: '',
HiddenColumns: '',
StartRowIndex: '',
RowRange: '',
Analytics: ''
}
}));
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/projects/:name/sendProjectSessionAction',
headers: {'content-type': 'application/json'},
body: {
Preview: false,
RecipeStep: {Action: '', ConditionExpressions: ''},
StepIndex: 0,
ClientSessionId: '',
ViewFrame: {
StartColumnIndex: '',
ColumnRange: '',
HiddenColumns: '',
StartRowIndex: '',
RowRange: '',
Analytics: ''
}
},
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}}/projects/:name/sendProjectSessionAction');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
Preview: false,
RecipeStep: {
Action: '',
ConditionExpressions: ''
},
StepIndex: 0,
ClientSessionId: '',
ViewFrame: {
StartColumnIndex: '',
ColumnRange: '',
HiddenColumns: '',
StartRowIndex: '',
RowRange: '',
Analytics: ''
}
});
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}}/projects/:name/sendProjectSessionAction',
headers: {'content-type': 'application/json'},
data: {
Preview: false,
RecipeStep: {Action: '', ConditionExpressions: ''},
StepIndex: 0,
ClientSessionId: '',
ViewFrame: {
StartColumnIndex: '',
ColumnRange: '',
HiddenColumns: '',
StartRowIndex: '',
RowRange: '',
Analytics: ''
}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/projects/:name/sendProjectSessionAction';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"Preview":false,"RecipeStep":{"Action":"","ConditionExpressions":""},"StepIndex":0,"ClientSessionId":"","ViewFrame":{"StartColumnIndex":"","ColumnRange":"","HiddenColumns":"","StartRowIndex":"","RowRange":"","Analytics":""}}'
};
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 = @{ @"Preview": @NO,
@"RecipeStep": @{ @"Action": @"", @"ConditionExpressions": @"" },
@"StepIndex": @0,
@"ClientSessionId": @"",
@"ViewFrame": @{ @"StartColumnIndex": @"", @"ColumnRange": @"", @"HiddenColumns": @"", @"StartRowIndex": @"", @"RowRange": @"", @"Analytics": @"" } };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/projects/:name/sendProjectSessionAction"]
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}}/projects/:name/sendProjectSessionAction" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"Preview\": false,\n \"RecipeStep\": {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n },\n \"StepIndex\": 0,\n \"ClientSessionId\": \"\",\n \"ViewFrame\": {\n \"StartColumnIndex\": \"\",\n \"ColumnRange\": \"\",\n \"HiddenColumns\": \"\",\n \"StartRowIndex\": \"\",\n \"RowRange\": \"\",\n \"Analytics\": \"\"\n }\n}" in
Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/projects/:name/sendProjectSessionAction",
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([
'Preview' => null,
'RecipeStep' => [
'Action' => '',
'ConditionExpressions' => ''
],
'StepIndex' => 0,
'ClientSessionId' => '',
'ViewFrame' => [
'StartColumnIndex' => '',
'ColumnRange' => '',
'HiddenColumns' => '',
'StartRowIndex' => '',
'RowRange' => '',
'Analytics' => ''
]
]),
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}}/projects/:name/sendProjectSessionAction', [
'body' => '{
"Preview": false,
"RecipeStep": {
"Action": "",
"ConditionExpressions": ""
},
"StepIndex": 0,
"ClientSessionId": "",
"ViewFrame": {
"StartColumnIndex": "",
"ColumnRange": "",
"HiddenColumns": "",
"StartRowIndex": "",
"RowRange": "",
"Analytics": ""
}
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/projects/:name/sendProjectSessionAction');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'Preview' => null,
'RecipeStep' => [
'Action' => '',
'ConditionExpressions' => ''
],
'StepIndex' => 0,
'ClientSessionId' => '',
'ViewFrame' => [
'StartColumnIndex' => '',
'ColumnRange' => '',
'HiddenColumns' => '',
'StartRowIndex' => '',
'RowRange' => '',
'Analytics' => ''
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'Preview' => null,
'RecipeStep' => [
'Action' => '',
'ConditionExpressions' => ''
],
'StepIndex' => 0,
'ClientSessionId' => '',
'ViewFrame' => [
'StartColumnIndex' => '',
'ColumnRange' => '',
'HiddenColumns' => '',
'StartRowIndex' => '',
'RowRange' => '',
'Analytics' => ''
]
]));
$request->setRequestUrl('{{baseUrl}}/projects/:name/sendProjectSessionAction');
$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}}/projects/:name/sendProjectSessionAction' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"Preview": false,
"RecipeStep": {
"Action": "",
"ConditionExpressions": ""
},
"StepIndex": 0,
"ClientSessionId": "",
"ViewFrame": {
"StartColumnIndex": "",
"ColumnRange": "",
"HiddenColumns": "",
"StartRowIndex": "",
"RowRange": "",
"Analytics": ""
}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/projects/:name/sendProjectSessionAction' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"Preview": false,
"RecipeStep": {
"Action": "",
"ConditionExpressions": ""
},
"StepIndex": 0,
"ClientSessionId": "",
"ViewFrame": {
"StartColumnIndex": "",
"ColumnRange": "",
"HiddenColumns": "",
"StartRowIndex": "",
"RowRange": "",
"Analytics": ""
}
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"Preview\": false,\n \"RecipeStep\": {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n },\n \"StepIndex\": 0,\n \"ClientSessionId\": \"\",\n \"ViewFrame\": {\n \"StartColumnIndex\": \"\",\n \"ColumnRange\": \"\",\n \"HiddenColumns\": \"\",\n \"StartRowIndex\": \"\",\n \"RowRange\": \"\",\n \"Analytics\": \"\"\n }\n}"
headers = { 'content-type': "application/json" }
conn.request("PUT", "/baseUrl/projects/:name/sendProjectSessionAction", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/projects/:name/sendProjectSessionAction"
payload = {
"Preview": False,
"RecipeStep": {
"Action": "",
"ConditionExpressions": ""
},
"StepIndex": 0,
"ClientSessionId": "",
"ViewFrame": {
"StartColumnIndex": "",
"ColumnRange": "",
"HiddenColumns": "",
"StartRowIndex": "",
"RowRange": "",
"Analytics": ""
}
}
headers = {"content-type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/projects/:name/sendProjectSessionAction"
payload <- "{\n \"Preview\": false,\n \"RecipeStep\": {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n },\n \"StepIndex\": 0,\n \"ClientSessionId\": \"\",\n \"ViewFrame\": {\n \"StartColumnIndex\": \"\",\n \"ColumnRange\": \"\",\n \"HiddenColumns\": \"\",\n \"StartRowIndex\": \"\",\n \"RowRange\": \"\",\n \"Analytics\": \"\"\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}}/projects/:name/sendProjectSessionAction")
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 \"Preview\": false,\n \"RecipeStep\": {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n },\n \"StepIndex\": 0,\n \"ClientSessionId\": \"\",\n \"ViewFrame\": {\n \"StartColumnIndex\": \"\",\n \"ColumnRange\": \"\",\n \"HiddenColumns\": \"\",\n \"StartRowIndex\": \"\",\n \"RowRange\": \"\",\n \"Analytics\": \"\"\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/projects/:name/sendProjectSessionAction') do |req|
req.body = "{\n \"Preview\": false,\n \"RecipeStep\": {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n },\n \"StepIndex\": 0,\n \"ClientSessionId\": \"\",\n \"ViewFrame\": {\n \"StartColumnIndex\": \"\",\n \"ColumnRange\": \"\",\n \"HiddenColumns\": \"\",\n \"StartRowIndex\": \"\",\n \"RowRange\": \"\",\n \"Analytics\": \"\"\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}}/projects/:name/sendProjectSessionAction";
let payload = json!({
"Preview": false,
"RecipeStep": json!({
"Action": "",
"ConditionExpressions": ""
}),
"StepIndex": 0,
"ClientSessionId": "",
"ViewFrame": json!({
"StartColumnIndex": "",
"ColumnRange": "",
"HiddenColumns": "",
"StartRowIndex": "",
"RowRange": "",
"Analytics": ""
})
});
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}}/projects/:name/sendProjectSessionAction \
--header 'content-type: application/json' \
--data '{
"Preview": false,
"RecipeStep": {
"Action": "",
"ConditionExpressions": ""
},
"StepIndex": 0,
"ClientSessionId": "",
"ViewFrame": {
"StartColumnIndex": "",
"ColumnRange": "",
"HiddenColumns": "",
"StartRowIndex": "",
"RowRange": "",
"Analytics": ""
}
}'
echo '{
"Preview": false,
"RecipeStep": {
"Action": "",
"ConditionExpressions": ""
},
"StepIndex": 0,
"ClientSessionId": "",
"ViewFrame": {
"StartColumnIndex": "",
"ColumnRange": "",
"HiddenColumns": "",
"StartRowIndex": "",
"RowRange": "",
"Analytics": ""
}
}' | \
http PUT {{baseUrl}}/projects/:name/sendProjectSessionAction \
content-type:application/json
wget --quiet \
--method PUT \
--header 'content-type: application/json' \
--body-data '{\n "Preview": false,\n "RecipeStep": {\n "Action": "",\n "ConditionExpressions": ""\n },\n "StepIndex": 0,\n "ClientSessionId": "",\n "ViewFrame": {\n "StartColumnIndex": "",\n "ColumnRange": "",\n "HiddenColumns": "",\n "StartRowIndex": "",\n "RowRange": "",\n "Analytics": ""\n }\n}' \
--output-document \
- {{baseUrl}}/projects/:name/sendProjectSessionAction
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"Preview": false,
"RecipeStep": [
"Action": "",
"ConditionExpressions": ""
],
"StepIndex": 0,
"ClientSessionId": "",
"ViewFrame": [
"StartColumnIndex": "",
"ColumnRange": "",
"HiddenColumns": "",
"StartRowIndex": "",
"RowRange": "",
"Analytics": ""
]
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/projects/:name/sendProjectSessionAction")! 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
StartJobRun
{{baseUrl}}/jobs/:name/startJobRun
QUERY PARAMS
name
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/jobs/:name/startJobRun");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/jobs/:name/startJobRun")
require "http/client"
url = "{{baseUrl}}/jobs/:name/startJobRun"
response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/jobs/:name/startJobRun"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/jobs/:name/startJobRun");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/jobs/:name/startJobRun"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/jobs/:name/startJobRun HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/jobs/:name/startJobRun")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/jobs/:name/startJobRun"))
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/jobs/:name/startJobRun")
.post(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/jobs/:name/startJobRun")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/jobs/:name/startJobRun');
xhr.send(data);
import axios from 'axios';
const options = {method: 'POST', url: '{{baseUrl}}/jobs/:name/startJobRun'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/jobs/:name/startJobRun';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/jobs/:name/startJobRun',
method: 'POST',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/jobs/:name/startJobRun")
.post(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/jobs/:name/startJobRun',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'POST', url: '{{baseUrl}}/jobs/:name/startJobRun'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/jobs/:name/startJobRun');
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}}/jobs/:name/startJobRun'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/jobs/:name/startJobRun';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/jobs/:name/startJobRun"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/jobs/:name/startJobRun" in
Client.call `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/jobs/:name/startJobRun",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/jobs/:name/startJobRun');
echo $response->getBody();
setUrl('{{baseUrl}}/jobs/:name/startJobRun');
$request->setMethod(HTTP_METH_POST);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/jobs/:name/startJobRun');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/jobs/:name/startJobRun' -Method POST
$response = Invoke-RestMethod -Uri '{{baseUrl}}/jobs/:name/startJobRun' -Method POST
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("POST", "/baseUrl/jobs/:name/startJobRun")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/jobs/:name/startJobRun"
response = requests.post(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/jobs/:name/startJobRun"
response <- VERB("POST", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/jobs/:name/startJobRun")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/jobs/:name/startJobRun') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/jobs/:name/startJobRun";
let client = reqwest::Client::new();
let response = client.post(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/jobs/:name/startJobRun
http POST {{baseUrl}}/jobs/:name/startJobRun
wget --quiet \
--method POST \
--output-document \
- {{baseUrl}}/jobs/:name/startJobRun
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/jobs/:name/startJobRun")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
StartProjectSession
{{baseUrl}}/projects/:name/startProjectSession
QUERY PARAMS
name
BODY json
{
"AssumeControl": false
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/projects/:name/startProjectSession");
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 \"AssumeControl\": false\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/projects/:name/startProjectSession" {:content-type :json
:form-params {:AssumeControl false}})
require "http/client"
url = "{{baseUrl}}/projects/:name/startProjectSession"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"AssumeControl\": false\n}"
response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/projects/:name/startProjectSession"),
Content = new StringContent("{\n \"AssumeControl\": false\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/projects/:name/startProjectSession");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"AssumeControl\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/projects/:name/startProjectSession"
payload := strings.NewReader("{\n \"AssumeControl\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/projects/:name/startProjectSession HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 28
{
"AssumeControl": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/projects/:name/startProjectSession")
.setHeader("content-type", "application/json")
.setBody("{\n \"AssumeControl\": false\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/projects/:name/startProjectSession"))
.header("content-type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"AssumeControl\": false\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"AssumeControl\": false\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/projects/:name/startProjectSession")
.put(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/projects/:name/startProjectSession")
.header("content-type", "application/json")
.body("{\n \"AssumeControl\": false\n}")
.asString();
const data = JSON.stringify({
AssumeControl: false
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/projects/:name/startProjectSession');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/projects/:name/startProjectSession',
headers: {'content-type': 'application/json'},
data: {AssumeControl: false}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/projects/:name/startProjectSession';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"AssumeControl":false}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/projects/:name/startProjectSession',
method: 'PUT',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "AssumeControl": false\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"AssumeControl\": false\n}")
val request = Request.Builder()
.url("{{baseUrl}}/projects/:name/startProjectSession")
.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/projects/:name/startProjectSession',
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({AssumeControl: false}));
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/projects/:name/startProjectSession',
headers: {'content-type': 'application/json'},
body: {AssumeControl: false},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/projects/:name/startProjectSession');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
AssumeControl: false
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/projects/:name/startProjectSession',
headers: {'content-type': 'application/json'},
data: {AssumeControl: false}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/projects/:name/startProjectSession';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"AssumeControl":false}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"AssumeControl": @NO };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/projects/:name/startProjectSession"]
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}}/projects/:name/startProjectSession" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"AssumeControl\": false\n}" in
Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/projects/:name/startProjectSession",
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([
'AssumeControl' => null
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/projects/:name/startProjectSession', [
'body' => '{
"AssumeControl": false
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/projects/:name/startProjectSession');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'AssumeControl' => null
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'AssumeControl' => null
]));
$request->setRequestUrl('{{baseUrl}}/projects/:name/startProjectSession');
$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}}/projects/:name/startProjectSession' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"AssumeControl": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/projects/:name/startProjectSession' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"AssumeControl": false
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"AssumeControl\": false\n}"
headers = { 'content-type': "application/json" }
conn.request("PUT", "/baseUrl/projects/:name/startProjectSession", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/projects/:name/startProjectSession"
payload = { "AssumeControl": False }
headers = {"content-type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/projects/:name/startProjectSession"
payload <- "{\n \"AssumeControl\": false\n}"
encode <- "json"
response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/projects/:name/startProjectSession")
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 \"AssumeControl\": false\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.put('/baseUrl/projects/:name/startProjectSession') do |req|
req.body = "{\n \"AssumeControl\": false\n}"
end
puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/projects/:name/startProjectSession";
let payload = json!({"AssumeControl": false});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/projects/:name/startProjectSession \
--header 'content-type: application/json' \
--data '{
"AssumeControl": false
}'
echo '{
"AssumeControl": false
}' | \
http PUT {{baseUrl}}/projects/:name/startProjectSession \
content-type:application/json
wget --quiet \
--method PUT \
--header 'content-type: application/json' \
--body-data '{\n "AssumeControl": false\n}' \
--output-document \
- {{baseUrl}}/projects/:name/startProjectSession
import Foundation
let headers = ["content-type": "application/json"]
let parameters = ["AssumeControl": false] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/projects/:name/startProjectSession")! 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
StopJobRun
{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun
QUERY PARAMS
name
runId
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun")
require "http/client"
url = "{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun"
response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/jobs/:name/jobRun/:runId/stopJobRun HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun"))
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun")
.post(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun',
method: 'POST',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun")
.post(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/jobs/:name/jobRun/:runId/stopJobRun',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun');
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}}/jobs/:name/jobRun/:runId/stopJobRun'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun" in
Client.call `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun');
echo $response->getBody();
setUrl('{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun');
$request->setMethod(HTTP_METH_POST);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun' -Method POST
$response = Invoke-RestMethod -Uri '{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun' -Method POST
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("POST", "/baseUrl/jobs/:name/jobRun/:runId/stopJobRun")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun"
response = requests.post(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun"
response <- VERB("POST", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/jobs/:name/jobRun/:runId/stopJobRun') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun";
let client = reqwest::Client::new();
let response = client.post(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun
http POST {{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun
wget --quiet \
--method POST \
--output-document \
- {{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/jobs/:name/jobRun/:runId/stopJobRun")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
TagResource
{{baseUrl}}/tags/:ResourceArn
QUERY PARAMS
ResourceArn
BODY json
{
"Tags": {}
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tags/:ResourceArn");
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 \"Tags\": {}\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tags/:ResourceArn" {:content-type :json
:form-params {:Tags {}}})
require "http/client"
url = "{{baseUrl}}/tags/:ResourceArn"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"Tags\": {}\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}}/tags/:ResourceArn"),
Content = new StringContent("{\n \"Tags\": {}\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}}/tags/:ResourceArn");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"Tags\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tags/:ResourceArn"
payload := strings.NewReader("{\n \"Tags\": {}\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/tags/:ResourceArn HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 16
{
"Tags": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tags/:ResourceArn")
.setHeader("content-type", "application/json")
.setBody("{\n \"Tags\": {}\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tags/:ResourceArn"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"Tags\": {}\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 \"Tags\": {}\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/tags/:ResourceArn")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tags/:ResourceArn")
.header("content-type", "application/json")
.body("{\n \"Tags\": {}\n}")
.asString();
const data = JSON.stringify({
Tags: {}
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tags/:ResourceArn');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tags/:ResourceArn',
headers: {'content-type': 'application/json'},
data: {Tags: {}}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tags/:ResourceArn';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"Tags":{}}'
};
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}}/tags/:ResourceArn',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "Tags": {}\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"Tags\": {}\n}")
val request = Request.Builder()
.url("{{baseUrl}}/tags/:ResourceArn")
.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/tags/:ResourceArn',
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({Tags: {}}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tags/:ResourceArn',
headers: {'content-type': 'application/json'},
body: {Tags: {}},
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}}/tags/:ResourceArn');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
Tags: {}
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tags/:ResourceArn',
headers: {'content-type': 'application/json'},
data: {Tags: {}}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tags/:ResourceArn';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"Tags":{}}'
};
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 = @{ @"Tags": @{ } };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tags/:ResourceArn"]
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}}/tags/:ResourceArn" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"Tags\": {}\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tags/:ResourceArn",
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([
'Tags' => [
]
]),
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}}/tags/:ResourceArn', [
'body' => '{
"Tags": {}
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/tags/:ResourceArn');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'Tags' => [
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'Tags' => [
]
]));
$request->setRequestUrl('{{baseUrl}}/tags/:ResourceArn');
$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}}/tags/:ResourceArn' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"Tags": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tags/:ResourceArn' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"Tags": {}
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"Tags\": {}\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/tags/:ResourceArn", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tags/:ResourceArn"
payload = { "Tags": {} }
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tags/:ResourceArn"
payload <- "{\n \"Tags\": {}\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}}/tags/:ResourceArn")
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 \"Tags\": {}\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/tags/:ResourceArn') do |req|
req.body = "{\n \"Tags\": {}\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tags/:ResourceArn";
let payload = json!({"Tags": 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}}/tags/:ResourceArn \
--header 'content-type: application/json' \
--data '{
"Tags": {}
}'
echo '{
"Tags": {}
}' | \
http POST {{baseUrl}}/tags/:ResourceArn \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "Tags": {}\n}' \
--output-document \
- {{baseUrl}}/tags/:ResourceArn
import Foundation
let headers = ["content-type": "application/json"]
let parameters = ["Tags": []] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tags/:ResourceArn")! 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
UntagResource
{{baseUrl}}/tags/:ResourceArn#tagKeys
QUERY PARAMS
tagKeys
ResourceArn
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tags/:ResourceArn?tagKeys=#tagKeys");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/tags/:ResourceArn#tagKeys" {:query-params {:tagKeys ""}})
require "http/client"
url = "{{baseUrl}}/tags/:ResourceArn?tagKeys=#tagKeys"
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}}/tags/:ResourceArn?tagKeys=#tagKeys"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tags/:ResourceArn?tagKeys=#tagKeys");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tags/:ResourceArn?tagKeys=#tagKeys"
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/tags/:ResourceArn?tagKeys= HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/tags/:ResourceArn?tagKeys=#tagKeys")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tags/:ResourceArn?tagKeys=#tagKeys"))
.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}}/tags/:ResourceArn?tagKeys=#tagKeys")
.delete(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/tags/:ResourceArn?tagKeys=#tagKeys")
.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}}/tags/:ResourceArn?tagKeys=#tagKeys');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/tags/:ResourceArn#tagKeys',
params: {tagKeys: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tags/:ResourceArn?tagKeys=#tagKeys';
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}}/tags/:ResourceArn?tagKeys=#tagKeys',
method: 'DELETE',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tags/:ResourceArn?tagKeys=#tagKeys")
.delete(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/tags/:ResourceArn?tagKeys=',
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}}/tags/:ResourceArn#tagKeys',
qs: {tagKeys: ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/tags/:ResourceArn#tagKeys');
req.query({
tagKeys: ''
});
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}}/tags/:ResourceArn#tagKeys',
params: {tagKeys: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tags/:ResourceArn?tagKeys=#tagKeys';
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}}/tags/:ResourceArn?tagKeys=#tagKeys"]
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}}/tags/:ResourceArn?tagKeys=#tagKeys" in
Client.call `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tags/:ResourceArn?tagKeys=#tagKeys",
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}}/tags/:ResourceArn?tagKeys=#tagKeys');
echo $response->getBody();
setUrl('{{baseUrl}}/tags/:ResourceArn#tagKeys');
$request->setMethod(HTTP_METH_DELETE);
$request->setQueryData([
'tagKeys' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tags/:ResourceArn#tagKeys');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
'tagKeys' => ''
]));
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tags/:ResourceArn?tagKeys=#tagKeys' -Method DELETE
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tags/:ResourceArn?tagKeys=#tagKeys' -Method DELETE
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("DELETE", "/baseUrl/tags/:ResourceArn?tagKeys=")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tags/:ResourceArn#tagKeys"
querystring = {"tagKeys":""}
response = requests.delete(url, params=querystring)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tags/:ResourceArn#tagKeys"
queryString <- list(tagKeys = "")
response <- VERB("DELETE", url, query = queryString, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tags/:ResourceArn?tagKeys=#tagKeys")
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/tags/:ResourceArn') do |req|
req.params['tagKeys'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tags/:ResourceArn#tagKeys";
let querystring = [
("tagKeys", ""),
];
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.query(&querystring)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url '{{baseUrl}}/tags/:ResourceArn?tagKeys=#tagKeys'
http DELETE '{{baseUrl}}/tags/:ResourceArn?tagKeys=#tagKeys'
wget --quiet \
--method DELETE \
--output-document \
- '{{baseUrl}}/tags/:ResourceArn?tagKeys=#tagKeys'
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tags/:ResourceArn?tagKeys=#tagKeys")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
UpdateDataset
{{baseUrl}}/datasets/:name
QUERY PARAMS
name
BODY json
{
"Format": "",
"FormatOptions": {
"Json": "",
"Excel": "",
"Csv": ""
},
"Input": {
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
},
"PathOptions": {
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
}
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/datasets/:name");
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 \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n }\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/datasets/:name" {:content-type :json
:form-params {:Format ""
:FormatOptions {:Json ""
:Excel ""
:Csv ""}
:Input {:S3InputDefinition ""
:DataCatalogInputDefinition ""
:DatabaseInputDefinition ""
:Metadata ""}
:PathOptions {:LastModifiedDateCondition ""
:FilesLimit ""
:Parameters ""}}})
require "http/client"
url = "{{baseUrl}}/datasets/:name"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\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}}/datasets/:name"),
Content = new StringContent("{\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\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}}/datasets/:name");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/datasets/:name"
payload := strings.NewReader("{\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\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/datasets/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 334
{
"Format": "",
"FormatOptions": {
"Json": "",
"Excel": "",
"Csv": ""
},
"Input": {
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
},
"PathOptions": {
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/datasets/:name")
.setHeader("content-type", "application/json")
.setBody("{\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n }\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/datasets/:name"))
.header("content-type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\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 \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n }\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/datasets/:name")
.put(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/datasets/:name")
.header("content-type", "application/json")
.body("{\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n }\n}")
.asString();
const data = JSON.stringify({
Format: '',
FormatOptions: {
Json: '',
Excel: '',
Csv: ''
},
Input: {
S3InputDefinition: '',
DataCatalogInputDefinition: '',
DatabaseInputDefinition: '',
Metadata: ''
},
PathOptions: {
LastModifiedDateCondition: '',
FilesLimit: '',
Parameters: ''
}
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/datasets/:name');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/datasets/:name',
headers: {'content-type': 'application/json'},
data: {
Format: '',
FormatOptions: {Json: '', Excel: '', Csv: ''},
Input: {
S3InputDefinition: '',
DataCatalogInputDefinition: '',
DatabaseInputDefinition: '',
Metadata: ''
},
PathOptions: {LastModifiedDateCondition: '', FilesLimit: '', Parameters: ''}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/datasets/:name';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"Format":"","FormatOptions":{"Json":"","Excel":"","Csv":""},"Input":{"S3InputDefinition":"","DataCatalogInputDefinition":"","DatabaseInputDefinition":"","Metadata":""},"PathOptions":{"LastModifiedDateCondition":"","FilesLimit":"","Parameters":""}}'
};
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}}/datasets/:name',
method: 'PUT',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "Format": "",\n "FormatOptions": {\n "Json": "",\n "Excel": "",\n "Csv": ""\n },\n "Input": {\n "S3InputDefinition": "",\n "DataCatalogInputDefinition": "",\n "DatabaseInputDefinition": "",\n "Metadata": ""\n },\n "PathOptions": {\n "LastModifiedDateCondition": "",\n "FilesLimit": "",\n "Parameters": ""\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 \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n }\n}")
val request = Request.Builder()
.url("{{baseUrl}}/datasets/:name")
.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/datasets/:name',
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({
Format: '',
FormatOptions: {Json: '', Excel: '', Csv: ''},
Input: {
S3InputDefinition: '',
DataCatalogInputDefinition: '',
DatabaseInputDefinition: '',
Metadata: ''
},
PathOptions: {LastModifiedDateCondition: '', FilesLimit: '', Parameters: ''}
}));
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/datasets/:name',
headers: {'content-type': 'application/json'},
body: {
Format: '',
FormatOptions: {Json: '', Excel: '', Csv: ''},
Input: {
S3InputDefinition: '',
DataCatalogInputDefinition: '',
DatabaseInputDefinition: '',
Metadata: ''
},
PathOptions: {LastModifiedDateCondition: '', FilesLimit: '', Parameters: ''}
},
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}}/datasets/:name');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
Format: '',
FormatOptions: {
Json: '',
Excel: '',
Csv: ''
},
Input: {
S3InputDefinition: '',
DataCatalogInputDefinition: '',
DatabaseInputDefinition: '',
Metadata: ''
},
PathOptions: {
LastModifiedDateCondition: '',
FilesLimit: '',
Parameters: ''
}
});
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}}/datasets/:name',
headers: {'content-type': 'application/json'},
data: {
Format: '',
FormatOptions: {Json: '', Excel: '', Csv: ''},
Input: {
S3InputDefinition: '',
DataCatalogInputDefinition: '',
DatabaseInputDefinition: '',
Metadata: ''
},
PathOptions: {LastModifiedDateCondition: '', FilesLimit: '', Parameters: ''}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/datasets/:name';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"Format":"","FormatOptions":{"Json":"","Excel":"","Csv":""},"Input":{"S3InputDefinition":"","DataCatalogInputDefinition":"","DatabaseInputDefinition":"","Metadata":""},"PathOptions":{"LastModifiedDateCondition":"","FilesLimit":"","Parameters":""}}'
};
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 = @{ @"Format": @"",
@"FormatOptions": @{ @"Json": @"", @"Excel": @"", @"Csv": @"" },
@"Input": @{ @"S3InputDefinition": @"", @"DataCatalogInputDefinition": @"", @"DatabaseInputDefinition": @"", @"Metadata": @"" },
@"PathOptions": @{ @"LastModifiedDateCondition": @"", @"FilesLimit": @"", @"Parameters": @"" } };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/datasets/:name"]
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}}/datasets/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n }\n}" in
Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/datasets/:name",
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([
'Format' => '',
'FormatOptions' => [
'Json' => '',
'Excel' => '',
'Csv' => ''
],
'Input' => [
'S3InputDefinition' => '',
'DataCatalogInputDefinition' => '',
'DatabaseInputDefinition' => '',
'Metadata' => ''
],
'PathOptions' => [
'LastModifiedDateCondition' => '',
'FilesLimit' => '',
'Parameters' => ''
]
]),
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}}/datasets/:name', [
'body' => '{
"Format": "",
"FormatOptions": {
"Json": "",
"Excel": "",
"Csv": ""
},
"Input": {
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
},
"PathOptions": {
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
}
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/datasets/:name');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'Format' => '',
'FormatOptions' => [
'Json' => '',
'Excel' => '',
'Csv' => ''
],
'Input' => [
'S3InputDefinition' => '',
'DataCatalogInputDefinition' => '',
'DatabaseInputDefinition' => '',
'Metadata' => ''
],
'PathOptions' => [
'LastModifiedDateCondition' => '',
'FilesLimit' => '',
'Parameters' => ''
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'Format' => '',
'FormatOptions' => [
'Json' => '',
'Excel' => '',
'Csv' => ''
],
'Input' => [
'S3InputDefinition' => '',
'DataCatalogInputDefinition' => '',
'DatabaseInputDefinition' => '',
'Metadata' => ''
],
'PathOptions' => [
'LastModifiedDateCondition' => '',
'FilesLimit' => '',
'Parameters' => ''
]
]));
$request->setRequestUrl('{{baseUrl}}/datasets/:name');
$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}}/datasets/:name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"Format": "",
"FormatOptions": {
"Json": "",
"Excel": "",
"Csv": ""
},
"Input": {
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
},
"PathOptions": {
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/datasets/:name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"Format": "",
"FormatOptions": {
"Json": "",
"Excel": "",
"Csv": ""
},
"Input": {
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
},
"PathOptions": {
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
}
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\n }\n}"
headers = { 'content-type': "application/json" }
conn.request("PUT", "/baseUrl/datasets/:name", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/datasets/:name"
payload = {
"Format": "",
"FormatOptions": {
"Json": "",
"Excel": "",
"Csv": ""
},
"Input": {
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
},
"PathOptions": {
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
}
}
headers = {"content-type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/datasets/:name"
payload <- "{\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\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}}/datasets/:name")
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 \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\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/datasets/:name') do |req|
req.body = "{\n \"Format\": \"\",\n \"FormatOptions\": {\n \"Json\": \"\",\n \"Excel\": \"\",\n \"Csv\": \"\"\n },\n \"Input\": {\n \"S3InputDefinition\": \"\",\n \"DataCatalogInputDefinition\": \"\",\n \"DatabaseInputDefinition\": \"\",\n \"Metadata\": \"\"\n },\n \"PathOptions\": {\n \"LastModifiedDateCondition\": \"\",\n \"FilesLimit\": \"\",\n \"Parameters\": \"\"\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}}/datasets/:name";
let payload = json!({
"Format": "",
"FormatOptions": json!({
"Json": "",
"Excel": "",
"Csv": ""
}),
"Input": json!({
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
}),
"PathOptions": json!({
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
})
});
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}}/datasets/:name \
--header 'content-type: application/json' \
--data '{
"Format": "",
"FormatOptions": {
"Json": "",
"Excel": "",
"Csv": ""
},
"Input": {
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
},
"PathOptions": {
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
}
}'
echo '{
"Format": "",
"FormatOptions": {
"Json": "",
"Excel": "",
"Csv": ""
},
"Input": {
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
},
"PathOptions": {
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
}
}' | \
http PUT {{baseUrl}}/datasets/:name \
content-type:application/json
wget --quiet \
--method PUT \
--header 'content-type: application/json' \
--body-data '{\n "Format": "",\n "FormatOptions": {\n "Json": "",\n "Excel": "",\n "Csv": ""\n },\n "Input": {\n "S3InputDefinition": "",\n "DataCatalogInputDefinition": "",\n "DatabaseInputDefinition": "",\n "Metadata": ""\n },\n "PathOptions": {\n "LastModifiedDateCondition": "",\n "FilesLimit": "",\n "Parameters": ""\n }\n}' \
--output-document \
- {{baseUrl}}/datasets/:name
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"Format": "",
"FormatOptions": [
"Json": "",
"Excel": "",
"Csv": ""
],
"Input": [
"S3InputDefinition": "",
"DataCatalogInputDefinition": "",
"DatabaseInputDefinition": "",
"Metadata": ""
],
"PathOptions": [
"LastModifiedDateCondition": "",
"FilesLimit": "",
"Parameters": ""
]
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/datasets/:name")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
UpdateProfileJob
{{baseUrl}}/profileJobs/:name
QUERY PARAMS
name
BODY json
{
"Configuration": {
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
},
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": {
"Bucket": "",
"Key": "",
"BucketOwner": ""
},
"ValidationConfigurations": [
{
"RulesetArn": "",
"ValidationMode": ""
}
],
"RoleArn": "",
"Timeout": 0,
"JobSample": {
"Mode": "",
"Size": ""
}
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/profileJobs/:name");
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 \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\n }\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/profileJobs/:name" {:content-type :json
:form-params {:Configuration {:DatasetStatisticsConfiguration ""
:ProfileColumns ""
:ColumnStatisticsConfigurations ""
:EntityDetectorConfiguration ""}
:EncryptionKeyArn ""
:EncryptionMode ""
:LogSubscription ""
:MaxCapacity 0
:MaxRetries 0
:OutputLocation {:Bucket ""
:Key ""
:BucketOwner ""}
:ValidationConfigurations [{:RulesetArn ""
:ValidationMode ""}]
:RoleArn ""
:Timeout 0
:JobSample {:Mode ""
:Size ""}}})
require "http/client"
url = "{{baseUrl}}/profileJobs/:name"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\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}}/profileJobs/:name"),
Content = new StringContent("{\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\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}}/profileJobs/:name");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\n }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/profileJobs/:name"
payload := strings.NewReader("{\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\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/profileJobs/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 558
{
"Configuration": {
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
},
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": {
"Bucket": "",
"Key": "",
"BucketOwner": ""
},
"ValidationConfigurations": [
{
"RulesetArn": "",
"ValidationMode": ""
}
],
"RoleArn": "",
"Timeout": 0,
"JobSample": {
"Mode": "",
"Size": ""
}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/profileJobs/:name")
.setHeader("content-type", "application/json")
.setBody("{\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\n }\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/profileJobs/:name"))
.header("content-type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\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 \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\n }\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/profileJobs/:name")
.put(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/profileJobs/:name")
.header("content-type", "application/json")
.body("{\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\n }\n}")
.asString();
const data = JSON.stringify({
Configuration: {
DatasetStatisticsConfiguration: '',
ProfileColumns: '',
ColumnStatisticsConfigurations: '',
EntityDetectorConfiguration: ''
},
EncryptionKeyArn: '',
EncryptionMode: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
OutputLocation: {
Bucket: '',
Key: '',
BucketOwner: ''
},
ValidationConfigurations: [
{
RulesetArn: '',
ValidationMode: ''
}
],
RoleArn: '',
Timeout: 0,
JobSample: {
Mode: '',
Size: ''
}
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/profileJobs/:name');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/profileJobs/:name',
headers: {'content-type': 'application/json'},
data: {
Configuration: {
DatasetStatisticsConfiguration: '',
ProfileColumns: '',
ColumnStatisticsConfigurations: '',
EntityDetectorConfiguration: ''
},
EncryptionKeyArn: '',
EncryptionMode: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
OutputLocation: {Bucket: '', Key: '', BucketOwner: ''},
ValidationConfigurations: [{RulesetArn: '', ValidationMode: ''}],
RoleArn: '',
Timeout: 0,
JobSample: {Mode: '', Size: ''}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/profileJobs/:name';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"Configuration":{"DatasetStatisticsConfiguration":"","ProfileColumns":"","ColumnStatisticsConfigurations":"","EntityDetectorConfiguration":""},"EncryptionKeyArn":"","EncryptionMode":"","LogSubscription":"","MaxCapacity":0,"MaxRetries":0,"OutputLocation":{"Bucket":"","Key":"","BucketOwner":""},"ValidationConfigurations":[{"RulesetArn":"","ValidationMode":""}],"RoleArn":"","Timeout":0,"JobSample":{"Mode":"","Size":""}}'
};
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}}/profileJobs/:name',
method: 'PUT',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "Configuration": {\n "DatasetStatisticsConfiguration": "",\n "ProfileColumns": "",\n "ColumnStatisticsConfigurations": "",\n "EntityDetectorConfiguration": ""\n },\n "EncryptionKeyArn": "",\n "EncryptionMode": "",\n "LogSubscription": "",\n "MaxCapacity": 0,\n "MaxRetries": 0,\n "OutputLocation": {\n "Bucket": "",\n "Key": "",\n "BucketOwner": ""\n },\n "ValidationConfigurations": [\n {\n "RulesetArn": "",\n "ValidationMode": ""\n }\n ],\n "RoleArn": "",\n "Timeout": 0,\n "JobSample": {\n "Mode": "",\n "Size": ""\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 \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\n }\n}")
val request = Request.Builder()
.url("{{baseUrl}}/profileJobs/:name")
.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/profileJobs/:name',
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({
Configuration: {
DatasetStatisticsConfiguration: '',
ProfileColumns: '',
ColumnStatisticsConfigurations: '',
EntityDetectorConfiguration: ''
},
EncryptionKeyArn: '',
EncryptionMode: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
OutputLocation: {Bucket: '', Key: '', BucketOwner: ''},
ValidationConfigurations: [{RulesetArn: '', ValidationMode: ''}],
RoleArn: '',
Timeout: 0,
JobSample: {Mode: '', Size: ''}
}));
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/profileJobs/:name',
headers: {'content-type': 'application/json'},
body: {
Configuration: {
DatasetStatisticsConfiguration: '',
ProfileColumns: '',
ColumnStatisticsConfigurations: '',
EntityDetectorConfiguration: ''
},
EncryptionKeyArn: '',
EncryptionMode: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
OutputLocation: {Bucket: '', Key: '', BucketOwner: ''},
ValidationConfigurations: [{RulesetArn: '', ValidationMode: ''}],
RoleArn: '',
Timeout: 0,
JobSample: {Mode: '', Size: ''}
},
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}}/profileJobs/:name');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
Configuration: {
DatasetStatisticsConfiguration: '',
ProfileColumns: '',
ColumnStatisticsConfigurations: '',
EntityDetectorConfiguration: ''
},
EncryptionKeyArn: '',
EncryptionMode: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
OutputLocation: {
Bucket: '',
Key: '',
BucketOwner: ''
},
ValidationConfigurations: [
{
RulesetArn: '',
ValidationMode: ''
}
],
RoleArn: '',
Timeout: 0,
JobSample: {
Mode: '',
Size: ''
}
});
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}}/profileJobs/:name',
headers: {'content-type': 'application/json'},
data: {
Configuration: {
DatasetStatisticsConfiguration: '',
ProfileColumns: '',
ColumnStatisticsConfigurations: '',
EntityDetectorConfiguration: ''
},
EncryptionKeyArn: '',
EncryptionMode: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
OutputLocation: {Bucket: '', Key: '', BucketOwner: ''},
ValidationConfigurations: [{RulesetArn: '', ValidationMode: ''}],
RoleArn: '',
Timeout: 0,
JobSample: {Mode: '', Size: ''}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/profileJobs/:name';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"Configuration":{"DatasetStatisticsConfiguration":"","ProfileColumns":"","ColumnStatisticsConfigurations":"","EntityDetectorConfiguration":""},"EncryptionKeyArn":"","EncryptionMode":"","LogSubscription":"","MaxCapacity":0,"MaxRetries":0,"OutputLocation":{"Bucket":"","Key":"","BucketOwner":""},"ValidationConfigurations":[{"RulesetArn":"","ValidationMode":""}],"RoleArn":"","Timeout":0,"JobSample":{"Mode":"","Size":""}}'
};
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 = @{ @"Configuration": @{ @"DatasetStatisticsConfiguration": @"", @"ProfileColumns": @"", @"ColumnStatisticsConfigurations": @"", @"EntityDetectorConfiguration": @"" },
@"EncryptionKeyArn": @"",
@"EncryptionMode": @"",
@"LogSubscription": @"",
@"MaxCapacity": @0,
@"MaxRetries": @0,
@"OutputLocation": @{ @"Bucket": @"", @"Key": @"", @"BucketOwner": @"" },
@"ValidationConfigurations": @[ @{ @"RulesetArn": @"", @"ValidationMode": @"" } ],
@"RoleArn": @"",
@"Timeout": @0,
@"JobSample": @{ @"Mode": @"", @"Size": @"" } };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/profileJobs/:name"]
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}}/profileJobs/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\n }\n}" in
Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/profileJobs/:name",
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([
'Configuration' => [
'DatasetStatisticsConfiguration' => '',
'ProfileColumns' => '',
'ColumnStatisticsConfigurations' => '',
'EntityDetectorConfiguration' => ''
],
'EncryptionKeyArn' => '',
'EncryptionMode' => '',
'LogSubscription' => '',
'MaxCapacity' => 0,
'MaxRetries' => 0,
'OutputLocation' => [
'Bucket' => '',
'Key' => '',
'BucketOwner' => ''
],
'ValidationConfigurations' => [
[
'RulesetArn' => '',
'ValidationMode' => ''
]
],
'RoleArn' => '',
'Timeout' => 0,
'JobSample' => [
'Mode' => '',
'Size' => ''
]
]),
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}}/profileJobs/:name', [
'body' => '{
"Configuration": {
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
},
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": {
"Bucket": "",
"Key": "",
"BucketOwner": ""
},
"ValidationConfigurations": [
{
"RulesetArn": "",
"ValidationMode": ""
}
],
"RoleArn": "",
"Timeout": 0,
"JobSample": {
"Mode": "",
"Size": ""
}
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/profileJobs/:name');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'Configuration' => [
'DatasetStatisticsConfiguration' => '',
'ProfileColumns' => '',
'ColumnStatisticsConfigurations' => '',
'EntityDetectorConfiguration' => ''
],
'EncryptionKeyArn' => '',
'EncryptionMode' => '',
'LogSubscription' => '',
'MaxCapacity' => 0,
'MaxRetries' => 0,
'OutputLocation' => [
'Bucket' => '',
'Key' => '',
'BucketOwner' => ''
],
'ValidationConfigurations' => [
[
'RulesetArn' => '',
'ValidationMode' => ''
]
],
'RoleArn' => '',
'Timeout' => 0,
'JobSample' => [
'Mode' => '',
'Size' => ''
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'Configuration' => [
'DatasetStatisticsConfiguration' => '',
'ProfileColumns' => '',
'ColumnStatisticsConfigurations' => '',
'EntityDetectorConfiguration' => ''
],
'EncryptionKeyArn' => '',
'EncryptionMode' => '',
'LogSubscription' => '',
'MaxCapacity' => 0,
'MaxRetries' => 0,
'OutputLocation' => [
'Bucket' => '',
'Key' => '',
'BucketOwner' => ''
],
'ValidationConfigurations' => [
[
'RulesetArn' => '',
'ValidationMode' => ''
]
],
'RoleArn' => '',
'Timeout' => 0,
'JobSample' => [
'Mode' => '',
'Size' => ''
]
]));
$request->setRequestUrl('{{baseUrl}}/profileJobs/:name');
$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}}/profileJobs/:name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"Configuration": {
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
},
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": {
"Bucket": "",
"Key": "",
"BucketOwner": ""
},
"ValidationConfigurations": [
{
"RulesetArn": "",
"ValidationMode": ""
}
],
"RoleArn": "",
"Timeout": 0,
"JobSample": {
"Mode": "",
"Size": ""
}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/profileJobs/:name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"Configuration": {
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
},
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": {
"Bucket": "",
"Key": "",
"BucketOwner": ""
},
"ValidationConfigurations": [
{
"RulesetArn": "",
"ValidationMode": ""
}
],
"RoleArn": "",
"Timeout": 0,
"JobSample": {
"Mode": "",
"Size": ""
}
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\n }\n}"
headers = { 'content-type': "application/json" }
conn.request("PUT", "/baseUrl/profileJobs/:name", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/profileJobs/:name"
payload = {
"Configuration": {
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
},
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": {
"Bucket": "",
"Key": "",
"BucketOwner": ""
},
"ValidationConfigurations": [
{
"RulesetArn": "",
"ValidationMode": ""
}
],
"RoleArn": "",
"Timeout": 0,
"JobSample": {
"Mode": "",
"Size": ""
}
}
headers = {"content-type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/profileJobs/:name"
payload <- "{\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\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}}/profileJobs/:name")
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 \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\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/profileJobs/:name') do |req|
req.body = "{\n \"Configuration\": {\n \"DatasetStatisticsConfiguration\": \"\",\n \"ProfileColumns\": \"\",\n \"ColumnStatisticsConfigurations\": \"\",\n \"EntityDetectorConfiguration\": \"\"\n },\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"OutputLocation\": {\n \"Bucket\": \"\",\n \"Key\": \"\",\n \"BucketOwner\": \"\"\n },\n \"ValidationConfigurations\": [\n {\n \"RulesetArn\": \"\",\n \"ValidationMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0,\n \"JobSample\": {\n \"Mode\": \"\",\n \"Size\": \"\"\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}}/profileJobs/:name";
let payload = json!({
"Configuration": json!({
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
}),
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": json!({
"Bucket": "",
"Key": "",
"BucketOwner": ""
}),
"ValidationConfigurations": (
json!({
"RulesetArn": "",
"ValidationMode": ""
})
),
"RoleArn": "",
"Timeout": 0,
"JobSample": json!({
"Mode": "",
"Size": ""
})
});
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}}/profileJobs/:name \
--header 'content-type: application/json' \
--data '{
"Configuration": {
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
},
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": {
"Bucket": "",
"Key": "",
"BucketOwner": ""
},
"ValidationConfigurations": [
{
"RulesetArn": "",
"ValidationMode": ""
}
],
"RoleArn": "",
"Timeout": 0,
"JobSample": {
"Mode": "",
"Size": ""
}
}'
echo '{
"Configuration": {
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
},
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": {
"Bucket": "",
"Key": "",
"BucketOwner": ""
},
"ValidationConfigurations": [
{
"RulesetArn": "",
"ValidationMode": ""
}
],
"RoleArn": "",
"Timeout": 0,
"JobSample": {
"Mode": "",
"Size": ""
}
}' | \
http PUT {{baseUrl}}/profileJobs/:name \
content-type:application/json
wget --quiet \
--method PUT \
--header 'content-type: application/json' \
--body-data '{\n "Configuration": {\n "DatasetStatisticsConfiguration": "",\n "ProfileColumns": "",\n "ColumnStatisticsConfigurations": "",\n "EntityDetectorConfiguration": ""\n },\n "EncryptionKeyArn": "",\n "EncryptionMode": "",\n "LogSubscription": "",\n "MaxCapacity": 0,\n "MaxRetries": 0,\n "OutputLocation": {\n "Bucket": "",\n "Key": "",\n "BucketOwner": ""\n },\n "ValidationConfigurations": [\n {\n "RulesetArn": "",\n "ValidationMode": ""\n }\n ],\n "RoleArn": "",\n "Timeout": 0,\n "JobSample": {\n "Mode": "",\n "Size": ""\n }\n}' \
--output-document \
- {{baseUrl}}/profileJobs/:name
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"Configuration": [
"DatasetStatisticsConfiguration": "",
"ProfileColumns": "",
"ColumnStatisticsConfigurations": "",
"EntityDetectorConfiguration": ""
],
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"OutputLocation": [
"Bucket": "",
"Key": "",
"BucketOwner": ""
],
"ValidationConfigurations": [
[
"RulesetArn": "",
"ValidationMode": ""
]
],
"RoleArn": "",
"Timeout": 0,
"JobSample": [
"Mode": "",
"Size": ""
]
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/profileJobs/:name")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
UpdateProject
{{baseUrl}}/projects/:name
QUERY PARAMS
name
BODY json
{
"Sample": {
"Size": "",
"Type": ""
},
"RoleArn": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/projects/:name");
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 \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/projects/:name" {:content-type :json
:form-params {:Sample {:Size ""
:Type ""}
:RoleArn ""}})
require "http/client"
url = "{{baseUrl}}/projects/:name"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\"\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}}/projects/:name"),
Content = new StringContent("{\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\"\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}}/projects/:name");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/projects/:name"
payload := strings.NewReader("{\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\"\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/projects/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 69
{
"Sample": {
"Size": "",
"Type": ""
},
"RoleArn": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/projects/:name")
.setHeader("content-type", "application/json")
.setBody("{\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/projects/:name"))
.header("content-type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\"\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 \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/projects/:name")
.put(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/projects/:name")
.header("content-type", "application/json")
.body("{\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\"\n}")
.asString();
const data = JSON.stringify({
Sample: {
Size: '',
Type: ''
},
RoleArn: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/projects/:name');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/projects/:name',
headers: {'content-type': 'application/json'},
data: {Sample: {Size: '', Type: ''}, RoleArn: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/projects/:name';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"Sample":{"Size":"","Type":""},"RoleArn":""}'
};
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}}/projects/:name',
method: 'PUT',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "Sample": {\n "Size": "",\n "Type": ""\n },\n "RoleArn": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/projects/:name")
.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/projects/:name',
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({Sample: {Size: '', Type: ''}, RoleArn: ''}));
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/projects/:name',
headers: {'content-type': 'application/json'},
body: {Sample: {Size: '', Type: ''}, RoleArn: ''},
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}}/projects/:name');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
Sample: {
Size: '',
Type: ''
},
RoleArn: ''
});
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}}/projects/:name',
headers: {'content-type': 'application/json'},
data: {Sample: {Size: '', Type: ''}, RoleArn: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/projects/:name';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"Sample":{"Size":"","Type":""},"RoleArn":""}'
};
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 = @{ @"Sample": @{ @"Size": @"", @"Type": @"" },
@"RoleArn": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/projects/:name"]
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}}/projects/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\"\n}" in
Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/projects/:name",
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([
'Sample' => [
'Size' => '',
'Type' => ''
],
'RoleArn' => ''
]),
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}}/projects/:name', [
'body' => '{
"Sample": {
"Size": "",
"Type": ""
},
"RoleArn": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/projects/:name');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'Sample' => [
'Size' => '',
'Type' => ''
],
'RoleArn' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'Sample' => [
'Size' => '',
'Type' => ''
],
'RoleArn' => ''
]));
$request->setRequestUrl('{{baseUrl}}/projects/:name');
$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}}/projects/:name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"Sample": {
"Size": "",
"Type": ""
},
"RoleArn": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/projects/:name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"Sample": {
"Size": "",
"Type": ""
},
"RoleArn": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("PUT", "/baseUrl/projects/:name", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/projects/:name"
payload = {
"Sample": {
"Size": "",
"Type": ""
},
"RoleArn": ""
}
headers = {"content-type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/projects/:name"
payload <- "{\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\"\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}}/projects/:name")
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 \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\"\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/projects/:name') do |req|
req.body = "{\n \"Sample\": {\n \"Size\": \"\",\n \"Type\": \"\"\n },\n \"RoleArn\": \"\"\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}}/projects/:name";
let payload = json!({
"Sample": json!({
"Size": "",
"Type": ""
}),
"RoleArn": ""
});
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}}/projects/:name \
--header 'content-type: application/json' \
--data '{
"Sample": {
"Size": "",
"Type": ""
},
"RoleArn": ""
}'
echo '{
"Sample": {
"Size": "",
"Type": ""
},
"RoleArn": ""
}' | \
http PUT {{baseUrl}}/projects/:name \
content-type:application/json
wget --quiet \
--method PUT \
--header 'content-type: application/json' \
--body-data '{\n "Sample": {\n "Size": "",\n "Type": ""\n },\n "RoleArn": ""\n}' \
--output-document \
- {{baseUrl}}/projects/:name
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"Sample": [
"Size": "",
"Type": ""
],
"RoleArn": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/projects/:name")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
UpdateRecipe
{{baseUrl}}/recipes/:name
QUERY PARAMS
name
BODY json
{
"Description": "",
"Steps": [
{
"Action": "",
"ConditionExpressions": ""
}
]
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/recipes/:name");
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 \"Description\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ]\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/recipes/:name" {:content-type :json
:form-params {:Description ""
:Steps [{:Action ""
:ConditionExpressions ""}]}})
require "http/client"
url = "{{baseUrl}}/recipes/:name"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"Description\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\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}}/recipes/:name"),
Content = new StringContent("{\n \"Description\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\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}}/recipes/:name");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"Description\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/recipes/:name"
payload := strings.NewReader("{\n \"Description\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\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/recipes/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 106
{
"Description": "",
"Steps": [
{
"Action": "",
"ConditionExpressions": ""
}
]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/recipes/:name")
.setHeader("content-type", "application/json")
.setBody("{\n \"Description\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ]\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/recipes/:name"))
.header("content-type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"Description\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\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 \"Description\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ]\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/recipes/:name")
.put(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/recipes/:name")
.header("content-type", "application/json")
.body("{\n \"Description\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ]\n}")
.asString();
const data = JSON.stringify({
Description: '',
Steps: [
{
Action: '',
ConditionExpressions: ''
}
]
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/recipes/:name');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/recipes/:name',
headers: {'content-type': 'application/json'},
data: {Description: '', Steps: [{Action: '', ConditionExpressions: ''}]}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/recipes/:name';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"Description":"","Steps":[{"Action":"","ConditionExpressions":""}]}'
};
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}}/recipes/:name',
method: 'PUT',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "Description": "",\n "Steps": [\n {\n "Action": "",\n "ConditionExpressions": ""\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 \"Description\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ]\n}")
val request = Request.Builder()
.url("{{baseUrl}}/recipes/:name")
.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/recipes/:name',
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({Description: '', Steps: [{Action: '', ConditionExpressions: ''}]}));
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/recipes/:name',
headers: {'content-type': 'application/json'},
body: {Description: '', Steps: [{Action: '', ConditionExpressions: ''}]},
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}}/recipes/:name');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
Description: '',
Steps: [
{
Action: '',
ConditionExpressions: ''
}
]
});
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}}/recipes/:name',
headers: {'content-type': 'application/json'},
data: {Description: '', Steps: [{Action: '', ConditionExpressions: ''}]}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/recipes/:name';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"Description":"","Steps":[{"Action":"","ConditionExpressions":""}]}'
};
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 = @{ @"Description": @"",
@"Steps": @[ @{ @"Action": @"", @"ConditionExpressions": @"" } ] };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/recipes/:name"]
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}}/recipes/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"Description\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ]\n}" in
Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/recipes/:name",
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([
'Description' => '',
'Steps' => [
[
'Action' => '',
'ConditionExpressions' => ''
]
]
]),
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}}/recipes/:name', [
'body' => '{
"Description": "",
"Steps": [
{
"Action": "",
"ConditionExpressions": ""
}
]
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/recipes/:name');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'Description' => '',
'Steps' => [
[
'Action' => '',
'ConditionExpressions' => ''
]
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'Description' => '',
'Steps' => [
[
'Action' => '',
'ConditionExpressions' => ''
]
]
]));
$request->setRequestUrl('{{baseUrl}}/recipes/:name');
$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}}/recipes/:name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"Description": "",
"Steps": [
{
"Action": "",
"ConditionExpressions": ""
}
]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/recipes/:name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"Description": "",
"Steps": [
{
"Action": "",
"ConditionExpressions": ""
}
]
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"Description\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\n }\n ]\n}"
headers = { 'content-type': "application/json" }
conn.request("PUT", "/baseUrl/recipes/:name", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/recipes/:name"
payload = {
"Description": "",
"Steps": [
{
"Action": "",
"ConditionExpressions": ""
}
]
}
headers = {"content-type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/recipes/:name"
payload <- "{\n \"Description\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\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}}/recipes/:name")
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 \"Description\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\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/recipes/:name') do |req|
req.body = "{\n \"Description\": \"\",\n \"Steps\": [\n {\n \"Action\": \"\",\n \"ConditionExpressions\": \"\"\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}}/recipes/:name";
let payload = json!({
"Description": "",
"Steps": (
json!({
"Action": "",
"ConditionExpressions": ""
})
)
});
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}}/recipes/:name \
--header 'content-type: application/json' \
--data '{
"Description": "",
"Steps": [
{
"Action": "",
"ConditionExpressions": ""
}
]
}'
echo '{
"Description": "",
"Steps": [
{
"Action": "",
"ConditionExpressions": ""
}
]
}' | \
http PUT {{baseUrl}}/recipes/:name \
content-type:application/json
wget --quiet \
--method PUT \
--header 'content-type: application/json' \
--body-data '{\n "Description": "",\n "Steps": [\n {\n "Action": "",\n "ConditionExpressions": ""\n }\n ]\n}' \
--output-document \
- {{baseUrl}}/recipes/:name
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"Description": "",
"Steps": [
[
"Action": "",
"ConditionExpressions": ""
]
]
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/recipes/:name")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
UpdateRecipeJob
{{baseUrl}}/recipeJobs/:name
QUERY PARAMS
name
BODY json
{
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": [
{
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
}
],
"DataCatalogOutputs": [
{
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
}
],
"DatabaseOutputs": [
{
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
}
],
"RoleArn": "",
"Timeout": 0
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/recipeJobs/:name");
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 \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/recipeJobs/:name" {:content-type :json
:form-params {:EncryptionKeyArn ""
:EncryptionMode ""
:LogSubscription ""
:MaxCapacity 0
:MaxRetries 0
:Outputs [{:CompressionFormat ""
:Format ""
:PartitionColumns ""
:Location ""
:Overwrite ""
:FormatOptions ""
:MaxOutputFiles ""}]
:DataCatalogOutputs [{:CatalogId ""
:DatabaseName ""
:TableName ""
:S3Options ""
:DatabaseOptions ""
:Overwrite ""}]
:DatabaseOutputs [{:GlueConnectionName ""
:DatabaseOptions ""
:DatabaseOutputMode ""}]
:RoleArn ""
:Timeout 0}})
require "http/client"
url = "{{baseUrl}}/recipeJobs/:name"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0\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}}/recipeJobs/:name"),
Content = new StringContent("{\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0\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}}/recipeJobs/:name");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/recipeJobs/:name"
payload := strings.NewReader("{\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0\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/recipeJobs/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 682
{
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": [
{
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
}
],
"DataCatalogOutputs": [
{
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
}
],
"DatabaseOutputs": [
{
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
}
],
"RoleArn": "",
"Timeout": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/recipeJobs/:name")
.setHeader("content-type", "application/json")
.setBody("{\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/recipeJobs/:name"))
.header("content-type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0\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 \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/recipeJobs/:name")
.put(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/recipeJobs/:name")
.header("content-type", "application/json")
.body("{\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0\n}")
.asString();
const data = JSON.stringify({
EncryptionKeyArn: '',
EncryptionMode: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
Outputs: [
{
CompressionFormat: '',
Format: '',
PartitionColumns: '',
Location: '',
Overwrite: '',
FormatOptions: '',
MaxOutputFiles: ''
}
],
DataCatalogOutputs: [
{
CatalogId: '',
DatabaseName: '',
TableName: '',
S3Options: '',
DatabaseOptions: '',
Overwrite: ''
}
],
DatabaseOutputs: [
{
GlueConnectionName: '',
DatabaseOptions: '',
DatabaseOutputMode: ''
}
],
RoleArn: '',
Timeout: 0
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/recipeJobs/:name');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/recipeJobs/:name',
headers: {'content-type': 'application/json'},
data: {
EncryptionKeyArn: '',
EncryptionMode: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
Outputs: [
{
CompressionFormat: '',
Format: '',
PartitionColumns: '',
Location: '',
Overwrite: '',
FormatOptions: '',
MaxOutputFiles: ''
}
],
DataCatalogOutputs: [
{
CatalogId: '',
DatabaseName: '',
TableName: '',
S3Options: '',
DatabaseOptions: '',
Overwrite: ''
}
],
DatabaseOutputs: [{GlueConnectionName: '', DatabaseOptions: '', DatabaseOutputMode: ''}],
RoleArn: '',
Timeout: 0
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/recipeJobs/:name';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"EncryptionKeyArn":"","EncryptionMode":"","LogSubscription":"","MaxCapacity":0,"MaxRetries":0,"Outputs":[{"CompressionFormat":"","Format":"","PartitionColumns":"","Location":"","Overwrite":"","FormatOptions":"","MaxOutputFiles":""}],"DataCatalogOutputs":[{"CatalogId":"","DatabaseName":"","TableName":"","S3Options":"","DatabaseOptions":"","Overwrite":""}],"DatabaseOutputs":[{"GlueConnectionName":"","DatabaseOptions":"","DatabaseOutputMode":""}],"RoleArn":"","Timeout":0}'
};
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}}/recipeJobs/:name',
method: 'PUT',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "EncryptionKeyArn": "",\n "EncryptionMode": "",\n "LogSubscription": "",\n "MaxCapacity": 0,\n "MaxRetries": 0,\n "Outputs": [\n {\n "CompressionFormat": "",\n "Format": "",\n "PartitionColumns": "",\n "Location": "",\n "Overwrite": "",\n "FormatOptions": "",\n "MaxOutputFiles": ""\n }\n ],\n "DataCatalogOutputs": [\n {\n "CatalogId": "",\n "DatabaseName": "",\n "TableName": "",\n "S3Options": "",\n "DatabaseOptions": "",\n "Overwrite": ""\n }\n ],\n "DatabaseOutputs": [\n {\n "GlueConnectionName": "",\n "DatabaseOptions": "",\n "DatabaseOutputMode": ""\n }\n ],\n "RoleArn": "",\n "Timeout": 0\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0\n}")
val request = Request.Builder()
.url("{{baseUrl}}/recipeJobs/:name")
.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/recipeJobs/:name',
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({
EncryptionKeyArn: '',
EncryptionMode: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
Outputs: [
{
CompressionFormat: '',
Format: '',
PartitionColumns: '',
Location: '',
Overwrite: '',
FormatOptions: '',
MaxOutputFiles: ''
}
],
DataCatalogOutputs: [
{
CatalogId: '',
DatabaseName: '',
TableName: '',
S3Options: '',
DatabaseOptions: '',
Overwrite: ''
}
],
DatabaseOutputs: [{GlueConnectionName: '', DatabaseOptions: '', DatabaseOutputMode: ''}],
RoleArn: '',
Timeout: 0
}));
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/recipeJobs/:name',
headers: {'content-type': 'application/json'},
body: {
EncryptionKeyArn: '',
EncryptionMode: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
Outputs: [
{
CompressionFormat: '',
Format: '',
PartitionColumns: '',
Location: '',
Overwrite: '',
FormatOptions: '',
MaxOutputFiles: ''
}
],
DataCatalogOutputs: [
{
CatalogId: '',
DatabaseName: '',
TableName: '',
S3Options: '',
DatabaseOptions: '',
Overwrite: ''
}
],
DatabaseOutputs: [{GlueConnectionName: '', DatabaseOptions: '', DatabaseOutputMode: ''}],
RoleArn: '',
Timeout: 0
},
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}}/recipeJobs/:name');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
EncryptionKeyArn: '',
EncryptionMode: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
Outputs: [
{
CompressionFormat: '',
Format: '',
PartitionColumns: '',
Location: '',
Overwrite: '',
FormatOptions: '',
MaxOutputFiles: ''
}
],
DataCatalogOutputs: [
{
CatalogId: '',
DatabaseName: '',
TableName: '',
S3Options: '',
DatabaseOptions: '',
Overwrite: ''
}
],
DatabaseOutputs: [
{
GlueConnectionName: '',
DatabaseOptions: '',
DatabaseOutputMode: ''
}
],
RoleArn: '',
Timeout: 0
});
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}}/recipeJobs/:name',
headers: {'content-type': 'application/json'},
data: {
EncryptionKeyArn: '',
EncryptionMode: '',
LogSubscription: '',
MaxCapacity: 0,
MaxRetries: 0,
Outputs: [
{
CompressionFormat: '',
Format: '',
PartitionColumns: '',
Location: '',
Overwrite: '',
FormatOptions: '',
MaxOutputFiles: ''
}
],
DataCatalogOutputs: [
{
CatalogId: '',
DatabaseName: '',
TableName: '',
S3Options: '',
DatabaseOptions: '',
Overwrite: ''
}
],
DatabaseOutputs: [{GlueConnectionName: '', DatabaseOptions: '', DatabaseOutputMode: ''}],
RoleArn: '',
Timeout: 0
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/recipeJobs/:name';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"EncryptionKeyArn":"","EncryptionMode":"","LogSubscription":"","MaxCapacity":0,"MaxRetries":0,"Outputs":[{"CompressionFormat":"","Format":"","PartitionColumns":"","Location":"","Overwrite":"","FormatOptions":"","MaxOutputFiles":""}],"DataCatalogOutputs":[{"CatalogId":"","DatabaseName":"","TableName":"","S3Options":"","DatabaseOptions":"","Overwrite":""}],"DatabaseOutputs":[{"GlueConnectionName":"","DatabaseOptions":"","DatabaseOutputMode":""}],"RoleArn":"","Timeout":0}'
};
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 = @{ @"EncryptionKeyArn": @"",
@"EncryptionMode": @"",
@"LogSubscription": @"",
@"MaxCapacity": @0,
@"MaxRetries": @0,
@"Outputs": @[ @{ @"CompressionFormat": @"", @"Format": @"", @"PartitionColumns": @"", @"Location": @"", @"Overwrite": @"", @"FormatOptions": @"", @"MaxOutputFiles": @"" } ],
@"DataCatalogOutputs": @[ @{ @"CatalogId": @"", @"DatabaseName": @"", @"TableName": @"", @"S3Options": @"", @"DatabaseOptions": @"", @"Overwrite": @"" } ],
@"DatabaseOutputs": @[ @{ @"GlueConnectionName": @"", @"DatabaseOptions": @"", @"DatabaseOutputMode": @"" } ],
@"RoleArn": @"",
@"Timeout": @0 };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/recipeJobs/:name"]
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}}/recipeJobs/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0\n}" in
Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/recipeJobs/:name",
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([
'EncryptionKeyArn' => '',
'EncryptionMode' => '',
'LogSubscription' => '',
'MaxCapacity' => 0,
'MaxRetries' => 0,
'Outputs' => [
[
'CompressionFormat' => '',
'Format' => '',
'PartitionColumns' => '',
'Location' => '',
'Overwrite' => '',
'FormatOptions' => '',
'MaxOutputFiles' => ''
]
],
'DataCatalogOutputs' => [
[
'CatalogId' => '',
'DatabaseName' => '',
'TableName' => '',
'S3Options' => '',
'DatabaseOptions' => '',
'Overwrite' => ''
]
],
'DatabaseOutputs' => [
[
'GlueConnectionName' => '',
'DatabaseOptions' => '',
'DatabaseOutputMode' => ''
]
],
'RoleArn' => '',
'Timeout' => 0
]),
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}}/recipeJobs/:name', [
'body' => '{
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": [
{
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
}
],
"DataCatalogOutputs": [
{
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
}
],
"DatabaseOutputs": [
{
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
}
],
"RoleArn": "",
"Timeout": 0
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/recipeJobs/:name');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'EncryptionKeyArn' => '',
'EncryptionMode' => '',
'LogSubscription' => '',
'MaxCapacity' => 0,
'MaxRetries' => 0,
'Outputs' => [
[
'CompressionFormat' => '',
'Format' => '',
'PartitionColumns' => '',
'Location' => '',
'Overwrite' => '',
'FormatOptions' => '',
'MaxOutputFiles' => ''
]
],
'DataCatalogOutputs' => [
[
'CatalogId' => '',
'DatabaseName' => '',
'TableName' => '',
'S3Options' => '',
'DatabaseOptions' => '',
'Overwrite' => ''
]
],
'DatabaseOutputs' => [
[
'GlueConnectionName' => '',
'DatabaseOptions' => '',
'DatabaseOutputMode' => ''
]
],
'RoleArn' => '',
'Timeout' => 0
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'EncryptionKeyArn' => '',
'EncryptionMode' => '',
'LogSubscription' => '',
'MaxCapacity' => 0,
'MaxRetries' => 0,
'Outputs' => [
[
'CompressionFormat' => '',
'Format' => '',
'PartitionColumns' => '',
'Location' => '',
'Overwrite' => '',
'FormatOptions' => '',
'MaxOutputFiles' => ''
]
],
'DataCatalogOutputs' => [
[
'CatalogId' => '',
'DatabaseName' => '',
'TableName' => '',
'S3Options' => '',
'DatabaseOptions' => '',
'Overwrite' => ''
]
],
'DatabaseOutputs' => [
[
'GlueConnectionName' => '',
'DatabaseOptions' => '',
'DatabaseOutputMode' => ''
]
],
'RoleArn' => '',
'Timeout' => 0
]));
$request->setRequestUrl('{{baseUrl}}/recipeJobs/:name');
$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}}/recipeJobs/:name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": [
{
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
}
],
"DataCatalogOutputs": [
{
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
}
],
"DatabaseOutputs": [
{
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
}
],
"RoleArn": "",
"Timeout": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/recipeJobs/:name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": [
{
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
}
],
"DataCatalogOutputs": [
{
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
}
],
"DatabaseOutputs": [
{
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
}
],
"RoleArn": "",
"Timeout": 0
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0\n}"
headers = { 'content-type': "application/json" }
conn.request("PUT", "/baseUrl/recipeJobs/:name", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/recipeJobs/:name"
payload = {
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": [
{
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
}
],
"DataCatalogOutputs": [
{
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
}
],
"DatabaseOutputs": [
{
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
}
],
"RoleArn": "",
"Timeout": 0
}
headers = {"content-type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/recipeJobs/:name"
payload <- "{\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0\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}}/recipeJobs/:name")
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 \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0\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/recipeJobs/:name') do |req|
req.body = "{\n \"EncryptionKeyArn\": \"\",\n \"EncryptionMode\": \"\",\n \"LogSubscription\": \"\",\n \"MaxCapacity\": 0,\n \"MaxRetries\": 0,\n \"Outputs\": [\n {\n \"CompressionFormat\": \"\",\n \"Format\": \"\",\n \"PartitionColumns\": \"\",\n \"Location\": \"\",\n \"Overwrite\": \"\",\n \"FormatOptions\": \"\",\n \"MaxOutputFiles\": \"\"\n }\n ],\n \"DataCatalogOutputs\": [\n {\n \"CatalogId\": \"\",\n \"DatabaseName\": \"\",\n \"TableName\": \"\",\n \"S3Options\": \"\",\n \"DatabaseOptions\": \"\",\n \"Overwrite\": \"\"\n }\n ],\n \"DatabaseOutputs\": [\n {\n \"GlueConnectionName\": \"\",\n \"DatabaseOptions\": \"\",\n \"DatabaseOutputMode\": \"\"\n }\n ],\n \"RoleArn\": \"\",\n \"Timeout\": 0\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}}/recipeJobs/:name";
let payload = json!({
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": (
json!({
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
})
),
"DataCatalogOutputs": (
json!({
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
})
),
"DatabaseOutputs": (
json!({
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
})
),
"RoleArn": "",
"Timeout": 0
});
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}}/recipeJobs/:name \
--header 'content-type: application/json' \
--data '{
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": [
{
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
}
],
"DataCatalogOutputs": [
{
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
}
],
"DatabaseOutputs": [
{
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
}
],
"RoleArn": "",
"Timeout": 0
}'
echo '{
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": [
{
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
}
],
"DataCatalogOutputs": [
{
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
}
],
"DatabaseOutputs": [
{
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
}
],
"RoleArn": "",
"Timeout": 0
}' | \
http PUT {{baseUrl}}/recipeJobs/:name \
content-type:application/json
wget --quiet \
--method PUT \
--header 'content-type: application/json' \
--body-data '{\n "EncryptionKeyArn": "",\n "EncryptionMode": "",\n "LogSubscription": "",\n "MaxCapacity": 0,\n "MaxRetries": 0,\n "Outputs": [\n {\n "CompressionFormat": "",\n "Format": "",\n "PartitionColumns": "",\n "Location": "",\n "Overwrite": "",\n "FormatOptions": "",\n "MaxOutputFiles": ""\n }\n ],\n "DataCatalogOutputs": [\n {\n "CatalogId": "",\n "DatabaseName": "",\n "TableName": "",\n "S3Options": "",\n "DatabaseOptions": "",\n "Overwrite": ""\n }\n ],\n "DatabaseOutputs": [\n {\n "GlueConnectionName": "",\n "DatabaseOptions": "",\n "DatabaseOutputMode": ""\n }\n ],\n "RoleArn": "",\n "Timeout": 0\n}' \
--output-document \
- {{baseUrl}}/recipeJobs/:name
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"EncryptionKeyArn": "",
"EncryptionMode": "",
"LogSubscription": "",
"MaxCapacity": 0,
"MaxRetries": 0,
"Outputs": [
[
"CompressionFormat": "",
"Format": "",
"PartitionColumns": "",
"Location": "",
"Overwrite": "",
"FormatOptions": "",
"MaxOutputFiles": ""
]
],
"DataCatalogOutputs": [
[
"CatalogId": "",
"DatabaseName": "",
"TableName": "",
"S3Options": "",
"DatabaseOptions": "",
"Overwrite": ""
]
],
"DatabaseOutputs": [
[
"GlueConnectionName": "",
"DatabaseOptions": "",
"DatabaseOutputMode": ""
]
],
"RoleArn": "",
"Timeout": 0
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/recipeJobs/:name")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
UpdateRuleset
{{baseUrl}}/rulesets/:name
QUERY PARAMS
name
BODY json
{
"Description": "",
"Rules": [
{
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
}
]
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/rulesets/:name");
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 \"Description\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ]\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/rulesets/:name" {:content-type :json
:form-params {:Description ""
:Rules [{:Name ""
:Disabled ""
:CheckExpression ""
:SubstitutionMap ""
:Threshold ""
:ColumnSelectors ""}]}})
require "http/client"
url = "{{baseUrl}}/rulesets/:name"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"Description\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\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}}/rulesets/:name"),
Content = new StringContent("{\n \"Description\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\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}}/rulesets/:name");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"Description\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/rulesets/:name"
payload := strings.NewReader("{\n \"Description\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\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/rulesets/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 202
{
"Description": "",
"Rules": [
{
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
}
]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/rulesets/:name")
.setHeader("content-type", "application/json")
.setBody("{\n \"Description\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ]\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/rulesets/:name"))
.header("content-type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"Description\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\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 \"Description\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ]\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/rulesets/:name")
.put(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/rulesets/:name")
.header("content-type", "application/json")
.body("{\n \"Description\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ]\n}")
.asString();
const data = JSON.stringify({
Description: '',
Rules: [
{
Name: '',
Disabled: '',
CheckExpression: '',
SubstitutionMap: '',
Threshold: '',
ColumnSelectors: ''
}
]
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/rulesets/:name');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/rulesets/:name',
headers: {'content-type': 'application/json'},
data: {
Description: '',
Rules: [
{
Name: '',
Disabled: '',
CheckExpression: '',
SubstitutionMap: '',
Threshold: '',
ColumnSelectors: ''
}
]
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/rulesets/:name';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"Description":"","Rules":[{"Name":"","Disabled":"","CheckExpression":"","SubstitutionMap":"","Threshold":"","ColumnSelectors":""}]}'
};
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}}/rulesets/:name',
method: 'PUT',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "Description": "",\n "Rules": [\n {\n "Name": "",\n "Disabled": "",\n "CheckExpression": "",\n "SubstitutionMap": "",\n "Threshold": "",\n "ColumnSelectors": ""\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 \"Description\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ]\n}")
val request = Request.Builder()
.url("{{baseUrl}}/rulesets/:name")
.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/rulesets/:name',
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({
Description: '',
Rules: [
{
Name: '',
Disabled: '',
CheckExpression: '',
SubstitutionMap: '',
Threshold: '',
ColumnSelectors: ''
}
]
}));
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/rulesets/:name',
headers: {'content-type': 'application/json'},
body: {
Description: '',
Rules: [
{
Name: '',
Disabled: '',
CheckExpression: '',
SubstitutionMap: '',
Threshold: '',
ColumnSelectors: ''
}
]
},
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}}/rulesets/:name');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
Description: '',
Rules: [
{
Name: '',
Disabled: '',
CheckExpression: '',
SubstitutionMap: '',
Threshold: '',
ColumnSelectors: ''
}
]
});
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}}/rulesets/:name',
headers: {'content-type': 'application/json'},
data: {
Description: '',
Rules: [
{
Name: '',
Disabled: '',
CheckExpression: '',
SubstitutionMap: '',
Threshold: '',
ColumnSelectors: ''
}
]
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/rulesets/:name';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"Description":"","Rules":[{"Name":"","Disabled":"","CheckExpression":"","SubstitutionMap":"","Threshold":"","ColumnSelectors":""}]}'
};
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 = @{ @"Description": @"",
@"Rules": @[ @{ @"Name": @"", @"Disabled": @"", @"CheckExpression": @"", @"SubstitutionMap": @"", @"Threshold": @"", @"ColumnSelectors": @"" } ] };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/rulesets/:name"]
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}}/rulesets/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"Description\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ]\n}" in
Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/rulesets/:name",
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([
'Description' => '',
'Rules' => [
[
'Name' => '',
'Disabled' => '',
'CheckExpression' => '',
'SubstitutionMap' => '',
'Threshold' => '',
'ColumnSelectors' => ''
]
]
]),
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}}/rulesets/:name', [
'body' => '{
"Description": "",
"Rules": [
{
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
}
]
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/rulesets/:name');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'Description' => '',
'Rules' => [
[
'Name' => '',
'Disabled' => '',
'CheckExpression' => '',
'SubstitutionMap' => '',
'Threshold' => '',
'ColumnSelectors' => ''
]
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'Description' => '',
'Rules' => [
[
'Name' => '',
'Disabled' => '',
'CheckExpression' => '',
'SubstitutionMap' => '',
'Threshold' => '',
'ColumnSelectors' => ''
]
]
]));
$request->setRequestUrl('{{baseUrl}}/rulesets/:name');
$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}}/rulesets/:name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"Description": "",
"Rules": [
{
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
}
]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/rulesets/:name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"Description": "",
"Rules": [
{
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
}
]
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"Description\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\n }\n ]\n}"
headers = { 'content-type': "application/json" }
conn.request("PUT", "/baseUrl/rulesets/:name", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/rulesets/:name"
payload = {
"Description": "",
"Rules": [
{
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
}
]
}
headers = {"content-type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/rulesets/:name"
payload <- "{\n \"Description\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\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}}/rulesets/:name")
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 \"Description\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\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/rulesets/:name') do |req|
req.body = "{\n \"Description\": \"\",\n \"Rules\": [\n {\n \"Name\": \"\",\n \"Disabled\": \"\",\n \"CheckExpression\": \"\",\n \"SubstitutionMap\": \"\",\n \"Threshold\": \"\",\n \"ColumnSelectors\": \"\"\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}}/rulesets/:name";
let payload = json!({
"Description": "",
"Rules": (
json!({
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
})
)
});
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}}/rulesets/:name \
--header 'content-type: application/json' \
--data '{
"Description": "",
"Rules": [
{
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
}
]
}'
echo '{
"Description": "",
"Rules": [
{
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
}
]
}' | \
http PUT {{baseUrl}}/rulesets/:name \
content-type:application/json
wget --quiet \
--method PUT \
--header 'content-type: application/json' \
--body-data '{\n "Description": "",\n "Rules": [\n {\n "Name": "",\n "Disabled": "",\n "CheckExpression": "",\n "SubstitutionMap": "",\n "Threshold": "",\n "ColumnSelectors": ""\n }\n ]\n}' \
--output-document \
- {{baseUrl}}/rulesets/:name
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"Description": "",
"Rules": [
[
"Name": "",
"Disabled": "",
"CheckExpression": "",
"SubstitutionMap": "",
"Threshold": "",
"ColumnSelectors": ""
]
]
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/rulesets/:name")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
UpdateSchedule
{{baseUrl}}/schedules/:name
QUERY PARAMS
name
BODY json
{
"JobNames": [],
"CronExpression": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/schedules/:name");
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 \"JobNames\": [],\n \"CronExpression\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/schedules/:name" {:content-type :json
:form-params {:JobNames []
:CronExpression ""}})
require "http/client"
url = "{{baseUrl}}/schedules/:name"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"JobNames\": [],\n \"CronExpression\": \"\"\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}}/schedules/:name"),
Content = new StringContent("{\n \"JobNames\": [],\n \"CronExpression\": \"\"\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}}/schedules/:name");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"JobNames\": [],\n \"CronExpression\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/schedules/:name"
payload := strings.NewReader("{\n \"JobNames\": [],\n \"CronExpression\": \"\"\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/schedules/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 44
{
"JobNames": [],
"CronExpression": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/schedules/:name")
.setHeader("content-type", "application/json")
.setBody("{\n \"JobNames\": [],\n \"CronExpression\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/schedules/:name"))
.header("content-type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"JobNames\": [],\n \"CronExpression\": \"\"\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 \"JobNames\": [],\n \"CronExpression\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/schedules/:name")
.put(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/schedules/:name")
.header("content-type", "application/json")
.body("{\n \"JobNames\": [],\n \"CronExpression\": \"\"\n}")
.asString();
const data = JSON.stringify({
JobNames: [],
CronExpression: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/schedules/:name');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/schedules/:name',
headers: {'content-type': 'application/json'},
data: {JobNames: [], CronExpression: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/schedules/:name';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"JobNames":[],"CronExpression":""}'
};
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}}/schedules/:name',
method: 'PUT',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "JobNames": [],\n "CronExpression": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"JobNames\": [],\n \"CronExpression\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/schedules/:name")
.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/schedules/:name',
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({JobNames: [], CronExpression: ''}));
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/schedules/:name',
headers: {'content-type': 'application/json'},
body: {JobNames: [], CronExpression: ''},
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}}/schedules/:name');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
JobNames: [],
CronExpression: ''
});
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}}/schedules/:name',
headers: {'content-type': 'application/json'},
data: {JobNames: [], CronExpression: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/schedules/:name';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"JobNames":[],"CronExpression":""}'
};
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 = @{ @"JobNames": @[ ],
@"CronExpression": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/schedules/:name"]
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}}/schedules/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"JobNames\": [],\n \"CronExpression\": \"\"\n}" in
Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/schedules/:name",
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([
'JobNames' => [
],
'CronExpression' => ''
]),
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}}/schedules/:name', [
'body' => '{
"JobNames": [],
"CronExpression": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/schedules/:name');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'JobNames' => [
],
'CronExpression' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'JobNames' => [
],
'CronExpression' => ''
]));
$request->setRequestUrl('{{baseUrl}}/schedules/:name');
$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}}/schedules/:name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"JobNames": [],
"CronExpression": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/schedules/:name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"JobNames": [],
"CronExpression": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"JobNames\": [],\n \"CronExpression\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("PUT", "/baseUrl/schedules/:name", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/schedules/:name"
payload = {
"JobNames": [],
"CronExpression": ""
}
headers = {"content-type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/schedules/:name"
payload <- "{\n \"JobNames\": [],\n \"CronExpression\": \"\"\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}}/schedules/:name")
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 \"JobNames\": [],\n \"CronExpression\": \"\"\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/schedules/:name') do |req|
req.body = "{\n \"JobNames\": [],\n \"CronExpression\": \"\"\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}}/schedules/:name";
let payload = json!({
"JobNames": (),
"CronExpression": ""
});
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}}/schedules/:name \
--header 'content-type: application/json' \
--data '{
"JobNames": [],
"CronExpression": ""
}'
echo '{
"JobNames": [],
"CronExpression": ""
}' | \
http PUT {{baseUrl}}/schedules/:name \
content-type:application/json
wget --quiet \
--method PUT \
--header 'content-type: application/json' \
--body-data '{\n "JobNames": [],\n "CronExpression": ""\n}' \
--output-document \
- {{baseUrl}}/schedules/:name
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"JobNames": [],
"CronExpression": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/schedules/:name")! 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()