Documenten API
PUT
Upload een bestandsdeel.
{{baseUrl}}/bestandsdelen/:uuid
HEADERS
Content-Type
QUERY PARAMS
uuid
BODY multipartForm
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/bestandsdelen/:uuid");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: multipart/form-data; boundary=---011000010111000001101001");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inhoud\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"lock\"\r\n\r\n\r\n-----011000010111000001101001--\r\n");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/bestandsdelen/:uuid" {:multipart [{:name "inhoud"
:content ""} {:name "lock"
:content ""}]})
require "http/client"
url = "{{baseUrl}}/bestandsdelen/:uuid"
headers = HTTP::Headers{
"content-type" => "multipart/form-data; boundary=---011000010111000001101001"
}
reqBody = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inhoud\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"lock\"\r\n\r\n\r\n-----011000010111000001101001--\r\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}}/bestandsdelen/:uuid"),
Content = new MultipartFormDataContent
{
new StringContent("")
{
Headers =
{
ContentDisposition = new ContentDispositionHeaderValue("form-data")
{
Name = "inhoud",
}
}
},
new StringContent("")
{
Headers =
{
ContentDisposition = new ContentDispositionHeaderValue("form-data")
{
Name = "lock",
}
}
},
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/bestandsdelen/:uuid");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001");
request.AddParameter("multipart/form-data; boundary=---011000010111000001101001", "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inhoud\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"lock\"\r\n\r\n\r\n-----011000010111000001101001--\r\n", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/bestandsdelen/:uuid"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inhoud\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"lock\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("content-type", "multipart/form-data; boundary=---011000010111000001101001")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/bestandsdelen/:uuid HTTP/1.1
Content-Type: multipart/form-data; boundary=---011000010111000001101001
Host: example.com
Content-Length: 195
-----011000010111000001101001
Content-Disposition: form-data; name="inhoud"
-----011000010111000001101001
Content-Disposition: form-data; name="lock"
-----011000010111000001101001--
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/bestandsdelen/:uuid")
.setHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001")
.setBody("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inhoud\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"lock\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/bestandsdelen/:uuid"))
.header("content-type", "multipart/form-data; boundary=---011000010111000001101001")
.method("PUT", HttpRequest.BodyPublishers.ofString("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inhoud\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"lock\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("multipart/form-data; boundary=---011000010111000001101001");
RequestBody body = RequestBody.create(mediaType, "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inhoud\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"lock\"\r\n\r\n\r\n-----011000010111000001101001--\r\n");
Request request = new Request.Builder()
.url("{{baseUrl}}/bestandsdelen/:uuid")
.put(body)
.addHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/bestandsdelen/:uuid")
.header("content-type", "multipart/form-data; boundary=---011000010111000001101001")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inhoud\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"lock\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")
.asString();
const data = new FormData();
data.append('inhoud', '');
data.append('lock', '');
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/bestandsdelen/:uuid');
xhr.send(data);
import axios from 'axios';
const form = new FormData();
form.append('inhoud', '');
form.append('lock', '');
const options = {
method: 'PUT',
url: '{{baseUrl}}/bestandsdelen/:uuid',
headers: {'content-type': 'multipart/form-data; boundary=---011000010111000001101001'},
data: '[form]'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/bestandsdelen/:uuid';
const form = new FormData();
form.append('inhoud', '');
form.append('lock', '');
const options = {method: 'PUT'};
options.body = form;
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const form = new FormData();
form.append('inhoud', '');
form.append('lock', '');
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/bestandsdelen/:uuid',
method: 'PUT',
headers: {},
processData: false,
contentType: false,
mimeType: 'multipart/form-data',
data: form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("multipart/form-data; boundary=---011000010111000001101001")
val body = RequestBody.create(mediaType, "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inhoud\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"lock\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")
val request = Request.Builder()
.url("{{baseUrl}}/bestandsdelen/:uuid")
.put(body)
.addHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/bestandsdelen/:uuid',
headers: {
'content-type': 'multipart/form-data; boundary=---011000010111000001101001'
}
};
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('-----011000010111000001101001\r\nContent-Disposition: form-data; name="inhoud"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name="lock"\r\n\r\n\r\n-----011000010111000001101001--\r\n');
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/bestandsdelen/:uuid',
headers: {'content-type': 'multipart/form-data; boundary=---011000010111000001101001'},
formData: {inhoud: '', lock: ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/bestandsdelen/:uuid');
req.headers({
'content-type': 'multipart/form-data; boundary=---011000010111000001101001'
});
req.multipart([]);
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}}/bestandsdelen/:uuid',
headers: {'content-type': 'multipart/form-data; boundary=---011000010111000001101001'},
data: '-----011000010111000001101001\r\nContent-Disposition: form-data; name="inhoud"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name="lock"\r\n\r\n\r\n-----011000010111000001101001--\r\n'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const FormData = require('form-data');
const fetch = require('node-fetch');
const formData = new FormData();
formData.append('inhoud', '');
formData.append('lock', '');
const url = '{{baseUrl}}/bestandsdelen/:uuid';
const options = {method: 'PUT'};
options.body = formData;
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": @"multipart/form-data; boundary=---011000010111000001101001" };
NSArray *parameters = @[ @{ @"name": @"inhoud", @"value": @"" },
@{ @"name": @"lock", @"value": @"" } ];
NSString *boundary = @"---011000010111000001101001";
NSError *error;
NSMutableString *body = [NSMutableString string];
for (NSDictionary *param in parameters) {
[body appendFormat:@"--%@\r\n", boundary];
if (param[@"fileName"]) {
[body appendFormat:@"Content-Disposition:form-data; name=\"%@\"; filename=\"%@\"\r\n", param[@"name"], param[@"fileName"]];
[body appendFormat:@"Content-Type: %@\r\n\r\n", param[@"contentType"]];
[body appendFormat:@"%@", [NSString stringWithContentsOfFile:param[@"fileName"] encoding:NSUTF8StringEncoding error:&error]];
if (error) {
NSLog(@"%@", error);
}
} else {
[body appendFormat:@"Content-Disposition:form-data; name=\"%@\"\r\n\r\n", param[@"name"]];
[body appendFormat:@"%@", param[@"value"]];
}
}
[body appendFormat:@"\r\n--%@--\r\n", boundary];
NSData *postData = [body dataUsingEncoding:NSUTF8StringEncoding];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/bestandsdelen/:uuid"]
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}}/bestandsdelen/:uuid" in
let headers = Header.add (Header.init ()) "content-type" "multipart/form-data; boundary=---011000010111000001101001" in
let body = Cohttp_lwt_body.of_string "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inhoud\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"lock\"\r\n\r\n\r\n-----011000010111000001101001--\r\n" in
Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/bestandsdelen/:uuid",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inhoud\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"lock\"\r\n\r\n\r\n-----011000010111000001101001--\r\n",
CURLOPT_HTTPHEADER => [
"content-type: multipart/form-data; boundary=---011000010111000001101001"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/bestandsdelen/:uuid', [
'headers' => [
'content-type' => 'multipart/form-data; boundary=---011000010111000001101001',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/bestandsdelen/:uuid');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'content-type' => 'multipart/form-data; boundary=---011000010111000001101001'
]);
$request->setBody('-----011000010111000001101001
Content-Disposition: form-data; name="inhoud"
-----011000010111000001101001
Content-Disposition: form-data; name="lock"
-----011000010111000001101001--
');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
addForm(null, null);
$request->setRequestUrl('{{baseUrl}}/bestandsdelen/:uuid');
$request->setRequestMethod('PUT');
$request->setBody($body);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "multipart/form-data; boundary=---011000010111000001101001")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/bestandsdelen/:uuid' -Method PUT -Headers $headers -ContentType 'multipart/form-data; boundary=---011000010111000001101001' -Body '-----011000010111000001101001
Content-Disposition: form-data; name="inhoud"
-----011000010111000001101001
Content-Disposition: form-data; name="lock"
-----011000010111000001101001--
'
$headers=@{}
$headers.Add("content-type", "multipart/form-data; boundary=---011000010111000001101001")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/bestandsdelen/:uuid' -Method PUT -Headers $headers -ContentType 'multipart/form-data; boundary=---011000010111000001101001' -Body '-----011000010111000001101001
Content-Disposition: form-data; name="inhoud"
-----011000010111000001101001
Content-Disposition: form-data; name="lock"
-----011000010111000001101001--
'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inhoud\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"lock\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"
headers = { 'content-type': "multipart/form-data; boundary=---011000010111000001101001" }
conn.request("PUT", "/baseUrl/bestandsdelen/:uuid", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/bestandsdelen/:uuid"
payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inhoud\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"lock\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"
headers = {"content-type": "multipart/form-data; boundary=---011000010111000001101001"}
response = requests.put(url, data=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/bestandsdelen/:uuid"
payload <- "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inhoud\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"lock\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"
encode <- "multipart"
response <- VERB("PUT", url, body = payload, content_type("multipart/form-data"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/bestandsdelen/:uuid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["content-type"] = 'multipart/form-data; boundary=---011000010111000001101001'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inhoud\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"lock\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'multipart/form-data; boundary=---011000010111000001101001'}
)
response = conn.put('/baseUrl/bestandsdelen/:uuid') do |req|
req.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inhoud\"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"lock\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/bestandsdelen/:uuid";
let form = reqwest::multipart::Form::new()
.text("inhoud", "")
.text("lock", "");
let mut headers = reqwest::header::HeaderMap::new();
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.multipart(form)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/bestandsdelen/:uuid \
--header 'content-type: multipart/form-data' \
--form inhoud= \
--form lock=
echo '-----011000010111000001101001
Content-Disposition: form-data; name="inhoud"
-----011000010111000001101001
Content-Disposition: form-data; name="lock"
-----011000010111000001101001--
' | \
http PUT {{baseUrl}}/bestandsdelen/:uuid \
content-type:'multipart/form-data; boundary=---011000010111000001101001'
wget --quiet \
--method PUT \
--header 'content-type: multipart/form-data; boundary=---011000010111000001101001' \
--body-data '-----011000010111000001101001\r\nContent-Disposition: form-data; name="inhoud"\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name="lock"\r\n\r\n\r\n-----011000010111000001101001--\r\n' \
--output-document \
- {{baseUrl}}/bestandsdelen/:uuid
import Foundation
let headers = ["content-type": "multipart/form-data; boundary=---011000010111000001101001"]
let parameters = [
[
"name": "inhoud",
"value": ""
],
[
"name": "lock",
"value": ""
]
]
let boundary = "---011000010111000001101001"
var body = ""
var error: NSError? = nil
for param in parameters {
let paramName = param["name"]!
body += "--\(boundary)\r\n"
body += "Content-Disposition:form-data; name=\"\(paramName)\""
if let filename = param["fileName"] {
let contentType = param["content-type"]!
let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)
if (error != nil) {
print(error as Any)
}
body += "; filename=\"\(filename)\"\r\n"
body += "Content-Type: \(contentType)\r\n\r\n"
body += fileContent
} else if let paramValue = param["value"] {
body += "\r\n\r\n\(paramValue)"
}
}
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/bestandsdelen/:uuid")! 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()
GET
Alle (ENKELVOUDIGe) INFORMATIEOBJECTen opvragen.
{{baseUrl}}/enkelvoudiginformatieobjecten
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/enkelvoudiginformatieobjecten");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/enkelvoudiginformatieobjecten")
require "http/client"
url = "{{baseUrl}}/enkelvoudiginformatieobjecten"
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}}/enkelvoudiginformatieobjecten"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/enkelvoudiginformatieobjecten");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/enkelvoudiginformatieobjecten"
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/enkelvoudiginformatieobjecten HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/enkelvoudiginformatieobjecten")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/enkelvoudiginformatieobjecten"))
.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}}/enkelvoudiginformatieobjecten")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/enkelvoudiginformatieobjecten")
.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}}/enkelvoudiginformatieobjecten');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten';
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}}/enkelvoudiginformatieobjecten',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/enkelvoudiginformatieobjecten")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/enkelvoudiginformatieobjecten',
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}}/enkelvoudiginformatieobjecten'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/enkelvoudiginformatieobjecten');
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}}/enkelvoudiginformatieobjecten'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten';
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}}/enkelvoudiginformatieobjecten"]
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}}/enkelvoudiginformatieobjecten" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/enkelvoudiginformatieobjecten",
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}}/enkelvoudiginformatieobjecten');
echo $response->getBody();
setUrl('{{baseUrl}}/enkelvoudiginformatieobjecten');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/enkelvoudiginformatieobjecten');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/enkelvoudiginformatieobjecten")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/enkelvoudiginformatieobjecten"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/enkelvoudiginformatieobjecten"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/enkelvoudiginformatieobjecten")
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/enkelvoudiginformatieobjecten') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/enkelvoudiginformatieobjecten";
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}}/enkelvoudiginformatieobjecten
http GET {{baseUrl}}/enkelvoudiginformatieobjecten
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/enkelvoudiginformatieobjecten
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/enkelvoudiginformatieobjecten")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"count": 123,
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}
GET
Alle audit trail regels behorend bij het INFORMATIEOBJECT.
{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail
QUERY PARAMS
enkelvoudiginformatieobject_uuid
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail")
require "http/client"
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail"
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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail"
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/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail"))
.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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail")
.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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail';
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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail',
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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail');
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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail';
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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail"]
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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail",
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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail');
echo $response->getBody();
setUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail")
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/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail";
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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail
http GET {{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail")! 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()
HEAD
De headers voor een specifiek(e) ENKELVOUDIG INFORMATIE OBJECT opvragen
{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid
QUERY PARAMS
uuid
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "HEAD");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/head "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
require "http/client"
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
response = HTTP::Client.head url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Head,
RequestUri = new Uri("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid");
var request = new RestRequest("", Method.Head);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
req, _ := http.NewRequest("HEAD", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
HEAD /baseUrl/enkelvoudiginformatieobjecten/:uuid HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("HEAD", "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"))
.method("HEAD", 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}}/enkelvoudiginformatieobjecten/:uuid")
.head()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.head("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
.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('HEAD', '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'HEAD',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid';
const options = {method: 'HEAD'};
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}}/enkelvoudiginformatieobjecten/:uuid',
method: 'HEAD',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
.head()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'HEAD',
hostname: 'example.com',
port: null,
path: '/baseUrl/enkelvoudiginformatieobjecten/:uuid',
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: 'HEAD',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('HEAD', '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'HEAD',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid';
const options = {method: 'HEAD'};
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}}/enkelvoudiginformatieobjecten/:uuid"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"HEAD"];
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}}/enkelvoudiginformatieobjecten/:uuid" in
Client.call `HEAD uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "HEAD",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('HEAD', '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid');
echo $response->getBody();
setUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid');
$request->setMethod(HTTP_METH_HEAD);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid');
$request->setRequestMethod('HEAD');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid' -Method HEAD
$response = Invoke-RestMethod -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid' -Method HEAD
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("HEAD", "/baseUrl/enkelvoudiginformatieobjecten/:uuid")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
response = requests.head(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
response <- VERB("HEAD", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Head.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.head('/baseUrl/enkelvoudiginformatieobjecten/:uuid') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid";
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("HEAD").unwrap(), url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request HEAD \
--url {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid
http HEAD {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid
wget --quiet \
--method HEAD \
--output-document \
- {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "HEAD"
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
Download de binaire data van het (ENKELVOUDIG) INFORMATIEOBJECT.
{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download
QUERY PARAMS
uuid
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download")
require "http/client"
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download"
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}}/enkelvoudiginformatieobjecten/:uuid/download"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download"
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/enkelvoudiginformatieobjecten/:uuid/download HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download"))
.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}}/enkelvoudiginformatieobjecten/:uuid/download")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download")
.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}}/enkelvoudiginformatieobjecten/:uuid/download');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download';
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}}/enkelvoudiginformatieobjecten/:uuid/download',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/enkelvoudiginformatieobjecten/:uuid/download',
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}}/enkelvoudiginformatieobjecten/:uuid/download'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download');
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}}/enkelvoudiginformatieobjecten/:uuid/download'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download';
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}}/enkelvoudiginformatieobjecten/:uuid/download"]
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}}/enkelvoudiginformatieobjecten/:uuid/download" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download",
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}}/enkelvoudiginformatieobjecten/:uuid/download');
echo $response->getBody();
setUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/enkelvoudiginformatieobjecten/:uuid/download")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download")
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/enkelvoudiginformatieobjecten/:uuid/download') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download";
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}}/enkelvoudiginformatieobjecten/:uuid/download
http GET {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/download")! 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
Een specifiek (ENKELVOUDIG) INFORMATIEOBJECT opvragen.
{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid
QUERY PARAMS
uuid
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
require "http/client"
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
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}}/enkelvoudiginformatieobjecten/:uuid"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
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/enkelvoudiginformatieobjecten/:uuid HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"))
.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}}/enkelvoudiginformatieobjecten/:uuid")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
.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}}/enkelvoudiginformatieobjecten/:uuid');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid';
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}}/enkelvoudiginformatieobjecten/:uuid',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/enkelvoudiginformatieobjecten/:uuid',
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}}/enkelvoudiginformatieobjecten/:uuid'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid');
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}}/enkelvoudiginformatieobjecten/:uuid'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid';
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}}/enkelvoudiginformatieobjecten/:uuid"]
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}}/enkelvoudiginformatieobjecten/:uuid" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid",
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}}/enkelvoudiginformatieobjecten/:uuid');
echo $response->getBody();
setUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/enkelvoudiginformatieobjecten/:uuid")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
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/enkelvoudiginformatieobjecten/:uuid') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid";
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}}/enkelvoudiginformatieobjecten/:uuid
http GET {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")! 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
Een specifieke audit trail regel opvragen.
{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid
QUERY PARAMS
uuid
enkelvoudiginformatieobject_uuid
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid")
require "http/client"
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid"
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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid"
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/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid"))
.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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid")
.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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid';
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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid',
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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid');
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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid';
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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid"]
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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid",
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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid');
echo $response->getBody();
setUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid")
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/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid";
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}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid
http GET {{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/enkelvoudiginformatieobjecten/:enkelvoudiginformatieobject_uuid/audittrail/:uuid")! 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
Maak een (ENKELVOUDIG) INFORMATIEOBJECT aan.
{{baseUrl}}/enkelvoudiginformatieobjecten
HEADERS
Content-Type
BODY json
{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": []
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/enkelvoudiginformatieobjecten");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": []\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/enkelvoudiginformatieobjecten" {:content-type :json
:form-params {:identificatie ""
:bronorganisatie ""
:creatiedatum ""
:titel ""
:vertrouwelijkheidaanduiding ""
:auteur ""
:status ""
:inhoudIsVervallen false
:formaat ""
:taal ""
:bestandsnaam ""
:inhoud ""
:bestandsomvang 0
:link ""
:beschrijving ""
:ontvangstdatum ""
:verzenddatum ""
:indicatieGebruiksrecht false
:verschijningsvorm ""
:ondertekening ""
:integriteit ""
:informatieobjecttype ""
:trefwoorden []}})
require "http/client"
url = "{{baseUrl}}/enkelvoudiginformatieobjecten"
headers = HTTP::Headers{
"content-type" => ""
}
reqBody = "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": []\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}}/enkelvoudiginformatieobjecten"),
Content = new StringContent("{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": []\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}}/enkelvoudiginformatieobjecten");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
request.AddParameter("", "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/enkelvoudiginformatieobjecten"
payload := strings.NewReader("{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/enkelvoudiginformatieobjecten HTTP/1.1
Content-Type:
Host: example.com
Content-Length: 517
{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/enkelvoudiginformatieobjecten")
.setHeader("content-type", "")
.setBody("{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": []\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/enkelvoudiginformatieobjecten"))
.header("content-type", "")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": []\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 \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": []\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/enkelvoudiginformatieobjecten")
.post(body)
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/enkelvoudiginformatieobjecten")
.header("content-type", "")
.body("{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": []\n}")
.asString();
const data = JSON.stringify({
identificatie: '',
bronorganisatie: '',
creatiedatum: '',
titel: '',
vertrouwelijkheidaanduiding: '',
auteur: '',
status: '',
inhoudIsVervallen: false,
formaat: '',
taal: '',
bestandsnaam: '',
inhoud: '',
bestandsomvang: 0,
link: '',
beschrijving: '',
ontvangstdatum: '',
verzenddatum: '',
indicatieGebruiksrecht: false,
verschijningsvorm: '',
ondertekening: '',
integriteit: '',
informatieobjecttype: '',
trefwoorden: []
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/enkelvoudiginformatieobjecten');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten',
headers: {'content-type': ''},
data: {
identificatie: '',
bronorganisatie: '',
creatiedatum: '',
titel: '',
vertrouwelijkheidaanduiding: '',
auteur: '',
status: '',
inhoudIsVervallen: false,
formaat: '',
taal: '',
bestandsnaam: '',
inhoud: '',
bestandsomvang: 0,
link: '',
beschrijving: '',
ontvangstdatum: '',
verzenddatum: '',
indicatieGebruiksrecht: false,
verschijningsvorm: '',
ondertekening: '',
integriteit: '',
informatieobjecttype: '',
trefwoorden: []
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten';
const options = {
method: 'POST',
headers: {'content-type': ''},
body: '{"identificatie":"","bronorganisatie":"","creatiedatum":"","titel":"","vertrouwelijkheidaanduiding":"","auteur":"","status":"","inhoudIsVervallen":false,"formaat":"","taal":"","bestandsnaam":"","inhoud":"","bestandsomvang":0,"link":"","beschrijving":"","ontvangstdatum":"","verzenddatum":"","indicatieGebruiksrecht":false,"verschijningsvorm":"","ondertekening":"","integriteit":"","informatieobjecttype":"","trefwoorden":[]}'
};
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}}/enkelvoudiginformatieobjecten',
method: 'POST',
headers: {
'content-type': ''
},
processData: false,
data: '{\n "identificatie": "",\n "bronorganisatie": "",\n "creatiedatum": "",\n "titel": "",\n "vertrouwelijkheidaanduiding": "",\n "auteur": "",\n "status": "",\n "inhoudIsVervallen": false,\n "formaat": "",\n "taal": "",\n "bestandsnaam": "",\n "inhoud": "",\n "bestandsomvang": 0,\n "link": "",\n "beschrijving": "",\n "ontvangstdatum": "",\n "verzenddatum": "",\n "indicatieGebruiksrecht": false,\n "verschijningsvorm": "",\n "ondertekening": "",\n "integriteit": "",\n "informatieobjecttype": "",\n "trefwoorden": []\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": []\n}")
val request = Request.Builder()
.url("{{baseUrl}}/enkelvoudiginformatieobjecten")
.post(body)
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/enkelvoudiginformatieobjecten',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
identificatie: '',
bronorganisatie: '',
creatiedatum: '',
titel: '',
vertrouwelijkheidaanduiding: '',
auteur: '',
status: '',
inhoudIsVervallen: false,
formaat: '',
taal: '',
bestandsnaam: '',
inhoud: '',
bestandsomvang: 0,
link: '',
beschrijving: '',
ontvangstdatum: '',
verzenddatum: '',
indicatieGebruiksrecht: false,
verschijningsvorm: '',
ondertekening: '',
integriteit: '',
informatieobjecttype: '',
trefwoorden: []
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten',
headers: {'content-type': ''},
body: {
identificatie: '',
bronorganisatie: '',
creatiedatum: '',
titel: '',
vertrouwelijkheidaanduiding: '',
auteur: '',
status: '',
inhoudIsVervallen: false,
formaat: '',
taal: '',
bestandsnaam: '',
inhoud: '',
bestandsomvang: 0,
link: '',
beschrijving: '',
ontvangstdatum: '',
verzenddatum: '',
indicatieGebruiksrecht: false,
verschijningsvorm: '',
ondertekening: '',
integriteit: '',
informatieobjecttype: '',
trefwoorden: []
},
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}}/enkelvoudiginformatieobjecten');
req.headers({
'content-type': ''
});
req.type('json');
req.send({
identificatie: '',
bronorganisatie: '',
creatiedatum: '',
titel: '',
vertrouwelijkheidaanduiding: '',
auteur: '',
status: '',
inhoudIsVervallen: false,
formaat: '',
taal: '',
bestandsnaam: '',
inhoud: '',
bestandsomvang: 0,
link: '',
beschrijving: '',
ontvangstdatum: '',
verzenddatum: '',
indicatieGebruiksrecht: false,
verschijningsvorm: '',
ondertekening: '',
integriteit: '',
informatieobjecttype: '',
trefwoorden: []
});
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}}/enkelvoudiginformatieobjecten',
headers: {'content-type': ''},
data: {
identificatie: '',
bronorganisatie: '',
creatiedatum: '',
titel: '',
vertrouwelijkheidaanduiding: '',
auteur: '',
status: '',
inhoudIsVervallen: false,
formaat: '',
taal: '',
bestandsnaam: '',
inhoud: '',
bestandsomvang: 0,
link: '',
beschrijving: '',
ontvangstdatum: '',
verzenddatum: '',
indicatieGebruiksrecht: false,
verschijningsvorm: '',
ondertekening: '',
integriteit: '',
informatieobjecttype: '',
trefwoorden: []
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten';
const options = {
method: 'POST',
headers: {'content-type': ''},
body: '{"identificatie":"","bronorganisatie":"","creatiedatum":"","titel":"","vertrouwelijkheidaanduiding":"","auteur":"","status":"","inhoudIsVervallen":false,"formaat":"","taal":"","bestandsnaam":"","inhoud":"","bestandsomvang":0,"link":"","beschrijving":"","ontvangstdatum":"","verzenddatum":"","indicatieGebruiksrecht":false,"verschijningsvorm":"","ondertekening":"","integriteit":"","informatieobjecttype":"","trefwoorden":[]}'
};
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": @"" };
NSDictionary *parameters = @{ @"identificatie": @"",
@"bronorganisatie": @"",
@"creatiedatum": @"",
@"titel": @"",
@"vertrouwelijkheidaanduiding": @"",
@"auteur": @"",
@"status": @"",
@"inhoudIsVervallen": @NO,
@"formaat": @"",
@"taal": @"",
@"bestandsnaam": @"",
@"inhoud": @"",
@"bestandsomvang": @0,
@"link": @"",
@"beschrijving": @"",
@"ontvangstdatum": @"",
@"verzenddatum": @"",
@"indicatieGebruiksrecht": @NO,
@"verschijningsvorm": @"",
@"ondertekening": @"",
@"integriteit": @"",
@"informatieobjecttype": @"",
@"trefwoorden": @[ ] };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/enkelvoudiginformatieobjecten"]
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}}/enkelvoudiginformatieobjecten" in
let headers = Header.add (Header.init ()) "content-type" "" in
let body = Cohttp_lwt_body.of_string "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": []\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/enkelvoudiginformatieobjecten",
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([
'identificatie' => '',
'bronorganisatie' => '',
'creatiedatum' => '',
'titel' => '',
'vertrouwelijkheidaanduiding' => '',
'auteur' => '',
'status' => '',
'inhoudIsVervallen' => null,
'formaat' => '',
'taal' => '',
'bestandsnaam' => '',
'inhoud' => '',
'bestandsomvang' => 0,
'link' => '',
'beschrijving' => '',
'ontvangstdatum' => '',
'verzenddatum' => '',
'indicatieGebruiksrecht' => null,
'verschijningsvorm' => '',
'ondertekening' => '',
'integriteit' => '',
'informatieobjecttype' => '',
'trefwoorden' => [
]
]),
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/enkelvoudiginformatieobjecten', [
'body' => '{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": []
}',
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/enkelvoudiginformatieobjecten');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => ''
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'identificatie' => '',
'bronorganisatie' => '',
'creatiedatum' => '',
'titel' => '',
'vertrouwelijkheidaanduiding' => '',
'auteur' => '',
'status' => '',
'inhoudIsVervallen' => null,
'formaat' => '',
'taal' => '',
'bestandsnaam' => '',
'inhoud' => '',
'bestandsomvang' => 0,
'link' => '',
'beschrijving' => '',
'ontvangstdatum' => '',
'verzenddatum' => '',
'indicatieGebruiksrecht' => null,
'verschijningsvorm' => '',
'ondertekening' => '',
'integriteit' => '',
'informatieobjecttype' => '',
'trefwoorden' => [
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'identificatie' => '',
'bronorganisatie' => '',
'creatiedatum' => '',
'titel' => '',
'vertrouwelijkheidaanduiding' => '',
'auteur' => '',
'status' => '',
'inhoudIsVervallen' => null,
'formaat' => '',
'taal' => '',
'bestandsnaam' => '',
'inhoud' => '',
'bestandsomvang' => 0,
'link' => '',
'beschrijving' => '',
'ontvangstdatum' => '',
'verzenddatum' => '',
'indicatieGebruiksrecht' => null,
'verschijningsvorm' => '',
'ondertekening' => '',
'integriteit' => '',
'informatieobjecttype' => '',
'trefwoorden' => [
]
]));
$request->setRequestUrl('{{baseUrl}}/enkelvoudiginformatieobjecten');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten' -Method POST -Headers $headers -ContentType '' -Body '{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": []
}'
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten' -Method POST -Headers $headers -ContentType '' -Body '{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": []
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": []\n}"
headers = { 'content-type': "" }
conn.request("POST", "/baseUrl/enkelvoudiginformatieobjecten", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/enkelvoudiginformatieobjecten"
payload = {
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": False,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": False,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": []
}
headers = {"content-type": ""}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/enkelvoudiginformatieobjecten"
payload <- "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": []\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}}/enkelvoudiginformatieobjecten")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = ''
request.body = "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": []\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/enkelvoudiginformatieobjecten') do |req|
req.body = "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": []\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/enkelvoudiginformatieobjecten";
let payload = json!({
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": ()
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/enkelvoudiginformatieobjecten \
--header 'content-type: ' \
--data '{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": []
}'
echo '{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": []
}' | \
http POST {{baseUrl}}/enkelvoudiginformatieobjecten \
content-type:''
wget --quiet \
--method POST \
--header 'content-type: ' \
--body-data '{\n "identificatie": "",\n "bronorganisatie": "",\n "creatiedatum": "",\n "titel": "",\n "vertrouwelijkheidaanduiding": "",\n "auteur": "",\n "status": "",\n "inhoudIsVervallen": false,\n "formaat": "",\n "taal": "",\n "bestandsnaam": "",\n "inhoud": "",\n "bestandsomvang": 0,\n "link": "",\n "beschrijving": "",\n "ontvangstdatum": "",\n "verzenddatum": "",\n "indicatieGebruiksrecht": false,\n "verschijningsvorm": "",\n "ondertekening": "",\n "integriteit": "",\n "informatieobjecttype": "",\n "trefwoorden": []\n}' \
--output-document \
- {{baseUrl}}/enkelvoudiginformatieobjecten
import Foundation
let headers = ["content-type": ""]
let parameters = [
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": []
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/enkelvoudiginformatieobjecten")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"trefwoorden": [
"bouwtekening",
"vergunning",
"aanvraag"
]
}
POST
Ontgrendel een (ENKELVOUDIG) INFORMATIEOBJECT.
{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock
HEADERS
Content-Type
QUERY PARAMS
uuid
BODY json
{
"lock": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"lock\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock" {:content-type :json
:form-params {:lock ""}})
require "http/client"
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock"
headers = HTTP::Headers{
"content-type" => ""
}
reqBody = "{\n \"lock\": \"\"\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}}/enkelvoudiginformatieobjecten/:uuid/unlock"),
Content = new StringContent("{\n \"lock\": \"\"\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}}/enkelvoudiginformatieobjecten/:uuid/unlock");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
request.AddParameter("", "{\n \"lock\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock"
payload := strings.NewReader("{\n \"lock\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/enkelvoudiginformatieobjecten/:uuid/unlock HTTP/1.1
Content-Type:
Host: example.com
Content-Length: 16
{
"lock": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock")
.setHeader("content-type", "")
.setBody("{\n \"lock\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock"))
.header("content-type", "")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"lock\": \"\"\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 \"lock\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock")
.post(body)
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock")
.header("content-type", "")
.body("{\n \"lock\": \"\"\n}")
.asString();
const data = JSON.stringify({
lock: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock',
headers: {'content-type': ''},
data: {lock: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock';
const options = {method: 'POST', headers: {'content-type': ''}, body: '{"lock":""}'};
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}}/enkelvoudiginformatieobjecten/:uuid/unlock',
method: 'POST',
headers: {
'content-type': ''
},
processData: false,
data: '{\n "lock": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"lock\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock")
.post(body)
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/enkelvoudiginformatieobjecten/:uuid/unlock',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({lock: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock',
headers: {'content-type': ''},
body: {lock: ''},
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}}/enkelvoudiginformatieobjecten/:uuid/unlock');
req.headers({
'content-type': ''
});
req.type('json');
req.send({
lock: ''
});
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}}/enkelvoudiginformatieobjecten/:uuid/unlock',
headers: {'content-type': ''},
data: {lock: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock';
const options = {method: 'POST', headers: {'content-type': ''}, body: '{"lock":""}'};
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": @"" };
NSDictionary *parameters = @{ @"lock": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock"]
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}}/enkelvoudiginformatieobjecten/:uuid/unlock" in
let headers = Header.add (Header.init ()) "content-type" "" in
let body = Cohttp_lwt_body.of_string "{\n \"lock\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock",
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([
'lock' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock', [
'body' => '{
"lock": ""
}',
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => ''
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'lock' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'lock' => ''
]));
$request->setRequestUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock' -Method POST -Headers $headers -ContentType '' -Body '{
"lock": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock' -Method POST -Headers $headers -ContentType '' -Body '{
"lock": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"lock\": \"\"\n}"
headers = { 'content-type': "" }
conn.request("POST", "/baseUrl/enkelvoudiginformatieobjecten/:uuid/unlock", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock"
payload = { "lock": "" }
headers = {"content-type": ""}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock"
payload <- "{\n \"lock\": \"\"\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}}/enkelvoudiginformatieobjecten/:uuid/unlock")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = ''
request.body = "{\n \"lock\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/enkelvoudiginformatieobjecten/:uuid/unlock') do |req|
req.body = "{\n \"lock\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock";
let payload = json!({"lock": ""});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock \
--header 'content-type: ' \
--data '{
"lock": ""
}'
echo '{
"lock": ""
}' | \
http POST {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock \
content-type:''
wget --quiet \
--method POST \
--header 'content-type: ' \
--body-data '{\n "lock": ""\n}' \
--output-document \
- {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock
import Foundation
let headers = ["content-type": ""]
let parameters = ["lock": ""] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/unlock")! 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
Vergrendel een (ENKELVOUDIG) INFORMATIEOBJECT.
{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock
HEADERS
Content-Type
QUERY PARAMS
uuid
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock" {:headers {:content-type ""}})
require "http/client"
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock"
headers = HTTP::Headers{
"content-type" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/enkelvoudiginformatieobjecten/:uuid/lock HTTP/1.1
Content-Type:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock")
.setHeader("content-type", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock"))
.header("content-type", "")
.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}}/enkelvoudiginformatieobjecten/:uuid/lock")
.post(null)
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock")
.header("content-type", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock',
headers: {'content-type': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock';
const options = {method: 'POST', headers: {'content-type': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock',
method: 'POST',
headers: {
'content-type': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock")
.post(null)
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/enkelvoudiginformatieobjecten/:uuid/lock',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock',
headers: {'content-type': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock');
req.headers({
'content-type': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock',
headers: {'content-type': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock';
const options = {method: 'POST', headers: {'content-type': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock" in
let headers = Header.add (Header.init ()) "content-type" "" in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock', [
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock');
$request->setRequestMethod('POST');
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock' -Method POST -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'content-type': "" }
conn.request("POST", "/baseUrl/enkelvoudiginformatieobjecten/:uuid/lock", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock"
headers = {"content-type": ""}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock"
response <- VERB("POST", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/enkelvoudiginformatieobjecten/:uuid/lock') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock \
--header 'content-type: '
http POST {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock \
content-type:''
wget --quiet \
--method POST \
--header 'content-type: ' \
--output-document \
- {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock
import Foundation
let headers = ["content-type": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid/lock")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
Verwijder een (ENKELVOUDIG) INFORMATIEOBJECT.
{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid
QUERY PARAMS
uuid
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
require "http/client"
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
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}}/enkelvoudiginformatieobjecten/:uuid"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
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/enkelvoudiginformatieobjecten/:uuid HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"))
.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}}/enkelvoudiginformatieobjecten/:uuid")
.delete(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
.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}}/enkelvoudiginformatieobjecten/:uuid');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid';
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}}/enkelvoudiginformatieobjecten/:uuid',
method: 'DELETE',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
.delete(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/enkelvoudiginformatieobjecten/:uuid',
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}}/enkelvoudiginformatieobjecten/:uuid'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid');
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}}/enkelvoudiginformatieobjecten/:uuid'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid';
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}}/enkelvoudiginformatieobjecten/:uuid"]
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}}/enkelvoudiginformatieobjecten/:uuid" in
Client.call `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid",
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}}/enkelvoudiginformatieobjecten/:uuid');
echo $response->getBody();
setUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid');
$request->setMethod(HTTP_METH_DELETE);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid' -Method DELETE
$response = Invoke-RestMethod -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid' -Method DELETE
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("DELETE", "/baseUrl/enkelvoudiginformatieobjecten/:uuid")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
response = requests.delete(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
response <- VERB("DELETE", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
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/enkelvoudiginformatieobjecten/:uuid') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid";
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}}/enkelvoudiginformatieobjecten/:uuid
http DELETE {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid
wget --quiet \
--method DELETE \
--output-document \
- {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")! 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()
POST
Voer een zoekopdracht uit op (ENKELVOUDIG) INFORMATIEOBJECTen.
{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek
HEADERS
Content-Type
BODY json
{
"uuid__in": [],
"identificatie": "",
"bronorganisatie": "",
"expand": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"uuid__in\": [],\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"expand\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek" {:content-type :json
:form-params {:uuid__in []
:identificatie ""
:bronorganisatie ""
:expand ""}})
require "http/client"
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek"
headers = HTTP::Headers{
"content-type" => ""
}
reqBody = "{\n \"uuid__in\": [],\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"expand\": \"\"\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}}/enkelvoudiginformatieobjecten/_zoek"),
Content = new StringContent("{\n \"uuid__in\": [],\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"expand\": \"\"\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}}/enkelvoudiginformatieobjecten/_zoek");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
request.AddParameter("", "{\n \"uuid__in\": [],\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"expand\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek"
payload := strings.NewReader("{\n \"uuid__in\": [],\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"expand\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/enkelvoudiginformatieobjecten/_zoek HTTP/1.1
Content-Type:
Host: example.com
Content-Length: 84
{
"uuid__in": [],
"identificatie": "",
"bronorganisatie": "",
"expand": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek")
.setHeader("content-type", "")
.setBody("{\n \"uuid__in\": [],\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"expand\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek"))
.header("content-type", "")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"uuid__in\": [],\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"expand\": \"\"\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 \"uuid__in\": [],\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"expand\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek")
.post(body)
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek")
.header("content-type", "")
.body("{\n \"uuid__in\": [],\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"expand\": \"\"\n}")
.asString();
const data = JSON.stringify({
uuid__in: [],
identificatie: '',
bronorganisatie: '',
expand: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek',
headers: {'content-type': ''},
data: {uuid__in: [], identificatie: '', bronorganisatie: '', expand: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek';
const options = {
method: 'POST',
headers: {'content-type': ''},
body: '{"uuid__in":[],"identificatie":"","bronorganisatie":"","expand":""}'
};
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}}/enkelvoudiginformatieobjecten/_zoek',
method: 'POST',
headers: {
'content-type': ''
},
processData: false,
data: '{\n "uuid__in": [],\n "identificatie": "",\n "bronorganisatie": "",\n "expand": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"uuid__in\": [],\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"expand\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek")
.post(body)
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/enkelvoudiginformatieobjecten/_zoek',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({uuid__in: [], identificatie: '', bronorganisatie: '', expand: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek',
headers: {'content-type': ''},
body: {uuid__in: [], identificatie: '', bronorganisatie: '', expand: ''},
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}}/enkelvoudiginformatieobjecten/_zoek');
req.headers({
'content-type': ''
});
req.type('json');
req.send({
uuid__in: [],
identificatie: '',
bronorganisatie: '',
expand: ''
});
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}}/enkelvoudiginformatieobjecten/_zoek',
headers: {'content-type': ''},
data: {uuid__in: [], identificatie: '', bronorganisatie: '', expand: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek';
const options = {
method: 'POST',
headers: {'content-type': ''},
body: '{"uuid__in":[],"identificatie":"","bronorganisatie":"","expand":""}'
};
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": @"" };
NSDictionary *parameters = @{ @"uuid__in": @[ ],
@"identificatie": @"",
@"bronorganisatie": @"",
@"expand": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek"]
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}}/enkelvoudiginformatieobjecten/_zoek" in
let headers = Header.add (Header.init ()) "content-type" "" in
let body = Cohttp_lwt_body.of_string "{\n \"uuid__in\": [],\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"expand\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek",
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([
'uuid__in' => [
],
'identificatie' => '',
'bronorganisatie' => '',
'expand' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek', [
'body' => '{
"uuid__in": [],
"identificatie": "",
"bronorganisatie": "",
"expand": ""
}',
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => ''
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'uuid__in' => [
],
'identificatie' => '',
'bronorganisatie' => '',
'expand' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'uuid__in' => [
],
'identificatie' => '',
'bronorganisatie' => '',
'expand' => ''
]));
$request->setRequestUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek' -Method POST -Headers $headers -ContentType '' -Body '{
"uuid__in": [],
"identificatie": "",
"bronorganisatie": "",
"expand": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek' -Method POST -Headers $headers -ContentType '' -Body '{
"uuid__in": [],
"identificatie": "",
"bronorganisatie": "",
"expand": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"uuid__in\": [],\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"expand\": \"\"\n}"
headers = { 'content-type': "" }
conn.request("POST", "/baseUrl/enkelvoudiginformatieobjecten/_zoek", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek"
payload = {
"uuid__in": [],
"identificatie": "",
"bronorganisatie": "",
"expand": ""
}
headers = {"content-type": ""}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek"
payload <- "{\n \"uuid__in\": [],\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"expand\": \"\"\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}}/enkelvoudiginformatieobjecten/_zoek")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = ''
request.body = "{\n \"uuid__in\": [],\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"expand\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/enkelvoudiginformatieobjecten/_zoek') do |req|
req.body = "{\n \"uuid__in\": [],\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"expand\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek";
let payload = json!({
"uuid__in": (),
"identificatie": "",
"bronorganisatie": "",
"expand": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/enkelvoudiginformatieobjecten/_zoek \
--header 'content-type: ' \
--data '{
"uuid__in": [],
"identificatie": "",
"bronorganisatie": "",
"expand": ""
}'
echo '{
"uuid__in": [],
"identificatie": "",
"bronorganisatie": "",
"expand": ""
}' | \
http POST {{baseUrl}}/enkelvoudiginformatieobjecten/_zoek \
content-type:''
wget --quiet \
--method POST \
--header 'content-type: ' \
--body-data '{\n "uuid__in": [],\n "identificatie": "",\n "bronorganisatie": "",\n "expand": ""\n}' \
--output-document \
- {{baseUrl}}/enkelvoudiginformatieobjecten/_zoek
import Foundation
let headers = ["content-type": ""]
let parameters = [
"uuid__in": [],
"identificatie": "",
"bronorganisatie": "",
"expand": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/enkelvoudiginformatieobjecten/_zoek")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"count": 123,
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}
PATCH
Werk een (ENKELVOUDIG) INFORMATIEOBJECT deels bij.
{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid
HEADERS
Content-Type
QUERY PARAMS
uuid
BODY json
{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"lock": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"lock\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/patch "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid" {:content-type :json
:form-params {:identificatie ""
:bronorganisatie ""
:creatiedatum ""
:titel ""
:vertrouwelijkheidaanduiding ""
:auteur ""
:status ""
:inhoudIsVervallen false
:formaat ""
:taal ""
:bestandsnaam ""
:inhoud ""
:bestandsomvang 0
:link ""
:beschrijving ""
:ontvangstdatum ""
:verzenddatum ""
:indicatieGebruiksrecht false
:verschijningsvorm ""
:ondertekening ""
:integriteit ""
:informatieobjecttype ""
:lock ""}})
require "http/client"
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
headers = HTTP::Headers{
"content-type" => ""
}
reqBody = "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"lock\": \"\"\n}"
response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Patch,
RequestUri = new Uri("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"),
Content = new StringContent("{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"lock\": \"\"\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}}/enkelvoudiginformatieobjecten/:uuid");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "");
request.AddParameter("", "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"lock\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
payload := strings.NewReader("{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"lock\": \"\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PATCH /baseUrl/enkelvoudiginformatieobjecten/:uuid HTTP/1.1
Content-Type:
Host: example.com
Content-Length: 510
{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"lock": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
.setHeader("content-type", "")
.setBody("{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"lock\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"))
.header("content-type", "")
.method("PATCH", HttpRequest.BodyPublishers.ofString("{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"lock\": \"\"\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 \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"lock\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
.patch(body)
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
.header("content-type", "")
.body("{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"lock\": \"\"\n}")
.asString();
const data = JSON.stringify({
identificatie: '',
bronorganisatie: '',
creatiedatum: '',
titel: '',
vertrouwelijkheidaanduiding: '',
auteur: '',
status: '',
inhoudIsVervallen: false,
formaat: '',
taal: '',
bestandsnaam: '',
inhoud: '',
bestandsomvang: 0,
link: '',
beschrijving: '',
ontvangstdatum: '',
verzenddatum: '',
indicatieGebruiksrecht: false,
verschijningsvorm: '',
ondertekening: '',
integriteit: '',
informatieobjecttype: '',
lock: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PATCH', '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PATCH',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid',
headers: {'content-type': ''},
data: {
identificatie: '',
bronorganisatie: '',
creatiedatum: '',
titel: '',
vertrouwelijkheidaanduiding: '',
auteur: '',
status: '',
inhoudIsVervallen: false,
formaat: '',
taal: '',
bestandsnaam: '',
inhoud: '',
bestandsomvang: 0,
link: '',
beschrijving: '',
ontvangstdatum: '',
verzenddatum: '',
indicatieGebruiksrecht: false,
verschijningsvorm: '',
ondertekening: '',
integriteit: '',
informatieobjecttype: '',
lock: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid';
const options = {
method: 'PATCH',
headers: {'content-type': ''},
body: '{"identificatie":"","bronorganisatie":"","creatiedatum":"","titel":"","vertrouwelijkheidaanduiding":"","auteur":"","status":"","inhoudIsVervallen":false,"formaat":"","taal":"","bestandsnaam":"","inhoud":"","bestandsomvang":0,"link":"","beschrijving":"","ontvangstdatum":"","verzenddatum":"","indicatieGebruiksrecht":false,"verschijningsvorm":"","ondertekening":"","integriteit":"","informatieobjecttype":"","lock":""}'
};
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}}/enkelvoudiginformatieobjecten/:uuid',
method: 'PATCH',
headers: {
'content-type': ''
},
processData: false,
data: '{\n "identificatie": "",\n "bronorganisatie": "",\n "creatiedatum": "",\n "titel": "",\n "vertrouwelijkheidaanduiding": "",\n "auteur": "",\n "status": "",\n "inhoudIsVervallen": false,\n "formaat": "",\n "taal": "",\n "bestandsnaam": "",\n "inhoud": "",\n "bestandsomvang": 0,\n "link": "",\n "beschrijving": "",\n "ontvangstdatum": "",\n "verzenddatum": "",\n "indicatieGebruiksrecht": false,\n "verschijningsvorm": "",\n "ondertekening": "",\n "integriteit": "",\n "informatieobjecttype": "",\n "lock": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"lock\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
.patch(body)
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PATCH',
hostname: 'example.com',
port: null,
path: '/baseUrl/enkelvoudiginformatieobjecten/:uuid',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
identificatie: '',
bronorganisatie: '',
creatiedatum: '',
titel: '',
vertrouwelijkheidaanduiding: '',
auteur: '',
status: '',
inhoudIsVervallen: false,
formaat: '',
taal: '',
bestandsnaam: '',
inhoud: '',
bestandsomvang: 0,
link: '',
beschrijving: '',
ontvangstdatum: '',
verzenddatum: '',
indicatieGebruiksrecht: false,
verschijningsvorm: '',
ondertekening: '',
integriteit: '',
informatieobjecttype: '',
lock: ''
}));
req.end();
const request = require('request');
const options = {
method: 'PATCH',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid',
headers: {'content-type': ''},
body: {
identificatie: '',
bronorganisatie: '',
creatiedatum: '',
titel: '',
vertrouwelijkheidaanduiding: '',
auteur: '',
status: '',
inhoudIsVervallen: false,
formaat: '',
taal: '',
bestandsnaam: '',
inhoud: '',
bestandsomvang: 0,
link: '',
beschrijving: '',
ontvangstdatum: '',
verzenddatum: '',
indicatieGebruiksrecht: false,
verschijningsvorm: '',
ondertekening: '',
integriteit: '',
informatieobjecttype: '',
lock: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PATCH', '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid');
req.headers({
'content-type': ''
});
req.type('json');
req.send({
identificatie: '',
bronorganisatie: '',
creatiedatum: '',
titel: '',
vertrouwelijkheidaanduiding: '',
auteur: '',
status: '',
inhoudIsVervallen: false,
formaat: '',
taal: '',
bestandsnaam: '',
inhoud: '',
bestandsomvang: 0,
link: '',
beschrijving: '',
ontvangstdatum: '',
verzenddatum: '',
indicatieGebruiksrecht: false,
verschijningsvorm: '',
ondertekening: '',
integriteit: '',
informatieobjecttype: '',
lock: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PATCH',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid',
headers: {'content-type': ''},
data: {
identificatie: '',
bronorganisatie: '',
creatiedatum: '',
titel: '',
vertrouwelijkheidaanduiding: '',
auteur: '',
status: '',
inhoudIsVervallen: false,
formaat: '',
taal: '',
bestandsnaam: '',
inhoud: '',
bestandsomvang: 0,
link: '',
beschrijving: '',
ontvangstdatum: '',
verzenddatum: '',
indicatieGebruiksrecht: false,
verschijningsvorm: '',
ondertekening: '',
integriteit: '',
informatieobjecttype: '',
lock: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid';
const options = {
method: 'PATCH',
headers: {'content-type': ''},
body: '{"identificatie":"","bronorganisatie":"","creatiedatum":"","titel":"","vertrouwelijkheidaanduiding":"","auteur":"","status":"","inhoudIsVervallen":false,"formaat":"","taal":"","bestandsnaam":"","inhoud":"","bestandsomvang":0,"link":"","beschrijving":"","ontvangstdatum":"","verzenddatum":"","indicatieGebruiksrecht":false,"verschijningsvorm":"","ondertekening":"","integriteit":"","informatieobjecttype":"","lock":""}'
};
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": @"" };
NSDictionary *parameters = @{ @"identificatie": @"",
@"bronorganisatie": @"",
@"creatiedatum": @"",
@"titel": @"",
@"vertrouwelijkheidaanduiding": @"",
@"auteur": @"",
@"status": @"",
@"inhoudIsVervallen": @NO,
@"formaat": @"",
@"taal": @"",
@"bestandsnaam": @"",
@"inhoud": @"",
@"bestandsomvang": @0,
@"link": @"",
@"beschrijving": @"",
@"ontvangstdatum": @"",
@"verzenddatum": @"",
@"indicatieGebruiksrecht": @NO,
@"verschijningsvorm": @"",
@"ondertekening": @"",
@"integriteit": @"",
@"informatieobjecttype": @"",
@"lock": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[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}}/enkelvoudiginformatieobjecten/:uuid" in
let headers = Header.add (Header.init ()) "content-type" "" in
let body = Cohttp_lwt_body.of_string "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"lock\": \"\"\n}" in
Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'identificatie' => '',
'bronorganisatie' => '',
'creatiedatum' => '',
'titel' => '',
'vertrouwelijkheidaanduiding' => '',
'auteur' => '',
'status' => '',
'inhoudIsVervallen' => null,
'formaat' => '',
'taal' => '',
'bestandsnaam' => '',
'inhoud' => '',
'bestandsomvang' => 0,
'link' => '',
'beschrijving' => '',
'ontvangstdatum' => '',
'verzenddatum' => '',
'indicatieGebruiksrecht' => null,
'verschijningsvorm' => '',
'ondertekening' => '',
'integriteit' => '',
'informatieobjecttype' => '',
'lock' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PATCH', '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid', [
'body' => '{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"lock": ""
}',
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);
$request->setHeaders([
'content-type' => ''
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'identificatie' => '',
'bronorganisatie' => '',
'creatiedatum' => '',
'titel' => '',
'vertrouwelijkheidaanduiding' => '',
'auteur' => '',
'status' => '',
'inhoudIsVervallen' => null,
'formaat' => '',
'taal' => '',
'bestandsnaam' => '',
'inhoud' => '',
'bestandsomvang' => 0,
'link' => '',
'beschrijving' => '',
'ontvangstdatum' => '',
'verzenddatum' => '',
'indicatieGebruiksrecht' => null,
'verschijningsvorm' => '',
'ondertekening' => '',
'integriteit' => '',
'informatieobjecttype' => '',
'lock' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'identificatie' => '',
'bronorganisatie' => '',
'creatiedatum' => '',
'titel' => '',
'vertrouwelijkheidaanduiding' => '',
'auteur' => '',
'status' => '',
'inhoudIsVervallen' => null,
'formaat' => '',
'taal' => '',
'bestandsnaam' => '',
'inhoud' => '',
'bestandsomvang' => 0,
'link' => '',
'beschrijving' => '',
'ontvangstdatum' => '',
'verzenddatum' => '',
'indicatieGebruiksrecht' => null,
'verschijningsvorm' => '',
'ondertekening' => '',
'integriteit' => '',
'informatieobjecttype' => '',
'lock' => ''
]));
$request->setRequestUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid');
$request->setRequestMethod('PATCH');
$request->setBody($body);
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid' -Method PATCH -Headers $headers -ContentType '' -Body '{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"lock": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid' -Method PATCH -Headers $headers -ContentType '' -Body '{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"lock": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"lock\": \"\"\n}"
headers = { 'content-type': "" }
conn.request("PATCH", "/baseUrl/enkelvoudiginformatieobjecten/:uuid", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
payload = {
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": False,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": False,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"lock": ""
}
headers = {"content-type": ""}
response = requests.patch(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
payload <- "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"lock\": \"\"\n}"
encode <- "json"
response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["content-type"] = ''
request.body = "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"lock\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.patch('/baseUrl/enkelvoudiginformatieobjecten/:uuid') do |req|
req.body = "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"lock\": \"\"\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}}/enkelvoudiginformatieobjecten/:uuid";
let payload = json!({
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"lock": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PATCH \
--url {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid \
--header 'content-type: ' \
--data '{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"lock": ""
}'
echo '{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"lock": ""
}' | \
http PATCH {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid \
content-type:''
wget --quiet \
--method PATCH \
--header 'content-type: ' \
--body-data '{\n "identificatie": "",\n "bronorganisatie": "",\n "creatiedatum": "",\n "titel": "",\n "vertrouwelijkheidaanduiding": "",\n "auteur": "",\n "status": "",\n "inhoudIsVervallen": false,\n "formaat": "",\n "taal": "",\n "bestandsnaam": "",\n "inhoud": "",\n "bestandsomvang": 0,\n "link": "",\n "beschrijving": "",\n "ontvangstdatum": "",\n "verzenddatum": "",\n "indicatieGebruiksrecht": false,\n "verschijningsvorm": "",\n "ondertekening": "",\n "integriteit": "",\n "informatieobjecttype": "",\n "lock": ""\n}' \
--output-document \
- {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid
import Foundation
let headers = ["content-type": ""]
let parameters = [
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"lock": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"trefwoorden": [
"bouwtekening",
"vergunning",
"aanvraag"
]
}
PUT
Werk een (ENKELVOUDIG) INFORMATIEOBJECT in zijn geheel bij.
{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid
HEADERS
Content-Type
QUERY PARAMS
uuid
BODY json
{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": [],
"lock": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": [],\n \"lock\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid" {:content-type :json
:form-params {:identificatie ""
:bronorganisatie ""
:creatiedatum ""
:titel ""
:vertrouwelijkheidaanduiding ""
:auteur ""
:status ""
:inhoudIsVervallen false
:formaat ""
:taal ""
:bestandsnaam ""
:inhoud ""
:bestandsomvang 0
:link ""
:beschrijving ""
:ontvangstdatum ""
:verzenddatum ""
:indicatieGebruiksrecht false
:verschijningsvorm ""
:ondertekening ""
:integriteit ""
:informatieobjecttype ""
:trefwoorden []
:lock ""}})
require "http/client"
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
headers = HTTP::Headers{
"content-type" => ""
}
reqBody = "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": [],\n \"lock\": \"\"\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}}/enkelvoudiginformatieobjecten/:uuid"),
Content = new StringContent("{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": [],\n \"lock\": \"\"\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}}/enkelvoudiginformatieobjecten/:uuid");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "");
request.AddParameter("", "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": [],\n \"lock\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
payload := strings.NewReader("{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": [],\n \"lock\": \"\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/enkelvoudiginformatieobjecten/:uuid HTTP/1.1
Content-Type:
Host: example.com
Content-Length: 531
{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": [],
"lock": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
.setHeader("content-type", "")
.setBody("{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": [],\n \"lock\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"))
.header("content-type", "")
.method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": [],\n \"lock\": \"\"\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 \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": [],\n \"lock\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
.put(body)
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
.header("content-type", "")
.body("{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": [],\n \"lock\": \"\"\n}")
.asString();
const data = JSON.stringify({
identificatie: '',
bronorganisatie: '',
creatiedatum: '',
titel: '',
vertrouwelijkheidaanduiding: '',
auteur: '',
status: '',
inhoudIsVervallen: false,
formaat: '',
taal: '',
bestandsnaam: '',
inhoud: '',
bestandsomvang: 0,
link: '',
beschrijving: '',
ontvangstdatum: '',
verzenddatum: '',
indicatieGebruiksrecht: false,
verschijningsvorm: '',
ondertekening: '',
integriteit: '',
informatieobjecttype: '',
trefwoorden: [],
lock: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid',
headers: {'content-type': ''},
data: {
identificatie: '',
bronorganisatie: '',
creatiedatum: '',
titel: '',
vertrouwelijkheidaanduiding: '',
auteur: '',
status: '',
inhoudIsVervallen: false,
formaat: '',
taal: '',
bestandsnaam: '',
inhoud: '',
bestandsomvang: 0,
link: '',
beschrijving: '',
ontvangstdatum: '',
verzenddatum: '',
indicatieGebruiksrecht: false,
verschijningsvorm: '',
ondertekening: '',
integriteit: '',
informatieobjecttype: '',
trefwoorden: [],
lock: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid';
const options = {
method: 'PUT',
headers: {'content-type': ''},
body: '{"identificatie":"","bronorganisatie":"","creatiedatum":"","titel":"","vertrouwelijkheidaanduiding":"","auteur":"","status":"","inhoudIsVervallen":false,"formaat":"","taal":"","bestandsnaam":"","inhoud":"","bestandsomvang":0,"link":"","beschrijving":"","ontvangstdatum":"","verzenddatum":"","indicatieGebruiksrecht":false,"verschijningsvorm":"","ondertekening":"","integriteit":"","informatieobjecttype":"","trefwoorden":[],"lock":""}'
};
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}}/enkelvoudiginformatieobjecten/:uuid',
method: 'PUT',
headers: {
'content-type': ''
},
processData: false,
data: '{\n "identificatie": "",\n "bronorganisatie": "",\n "creatiedatum": "",\n "titel": "",\n "vertrouwelijkheidaanduiding": "",\n "auteur": "",\n "status": "",\n "inhoudIsVervallen": false,\n "formaat": "",\n "taal": "",\n "bestandsnaam": "",\n "inhoud": "",\n "bestandsomvang": 0,\n "link": "",\n "beschrijving": "",\n "ontvangstdatum": "",\n "verzenddatum": "",\n "indicatieGebruiksrecht": false,\n "verschijningsvorm": "",\n "ondertekening": "",\n "integriteit": "",\n "informatieobjecttype": "",\n "trefwoorden": [],\n "lock": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": [],\n \"lock\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")
.put(body)
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/enkelvoudiginformatieobjecten/:uuid',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
identificatie: '',
bronorganisatie: '',
creatiedatum: '',
titel: '',
vertrouwelijkheidaanduiding: '',
auteur: '',
status: '',
inhoudIsVervallen: false,
formaat: '',
taal: '',
bestandsnaam: '',
inhoud: '',
bestandsomvang: 0,
link: '',
beschrijving: '',
ontvangstdatum: '',
verzenddatum: '',
indicatieGebruiksrecht: false,
verschijningsvorm: '',
ondertekening: '',
integriteit: '',
informatieobjecttype: '',
trefwoorden: [],
lock: ''
}));
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid',
headers: {'content-type': ''},
body: {
identificatie: '',
bronorganisatie: '',
creatiedatum: '',
titel: '',
vertrouwelijkheidaanduiding: '',
auteur: '',
status: '',
inhoudIsVervallen: false,
formaat: '',
taal: '',
bestandsnaam: '',
inhoud: '',
bestandsomvang: 0,
link: '',
beschrijving: '',
ontvangstdatum: '',
verzenddatum: '',
indicatieGebruiksrecht: false,
verschijningsvorm: '',
ondertekening: '',
integriteit: '',
informatieobjecttype: '',
trefwoorden: [],
lock: ''
},
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}}/enkelvoudiginformatieobjecten/:uuid');
req.headers({
'content-type': ''
});
req.type('json');
req.send({
identificatie: '',
bronorganisatie: '',
creatiedatum: '',
titel: '',
vertrouwelijkheidaanduiding: '',
auteur: '',
status: '',
inhoudIsVervallen: false,
formaat: '',
taal: '',
bestandsnaam: '',
inhoud: '',
bestandsomvang: 0,
link: '',
beschrijving: '',
ontvangstdatum: '',
verzenddatum: '',
indicatieGebruiksrecht: false,
verschijningsvorm: '',
ondertekening: '',
integriteit: '',
informatieobjecttype: '',
trefwoorden: [],
lock: ''
});
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}}/enkelvoudiginformatieobjecten/:uuid',
headers: {'content-type': ''},
data: {
identificatie: '',
bronorganisatie: '',
creatiedatum: '',
titel: '',
vertrouwelijkheidaanduiding: '',
auteur: '',
status: '',
inhoudIsVervallen: false,
formaat: '',
taal: '',
bestandsnaam: '',
inhoud: '',
bestandsomvang: 0,
link: '',
beschrijving: '',
ontvangstdatum: '',
verzenddatum: '',
indicatieGebruiksrecht: false,
verschijningsvorm: '',
ondertekening: '',
integriteit: '',
informatieobjecttype: '',
trefwoorden: [],
lock: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid';
const options = {
method: 'PUT',
headers: {'content-type': ''},
body: '{"identificatie":"","bronorganisatie":"","creatiedatum":"","titel":"","vertrouwelijkheidaanduiding":"","auteur":"","status":"","inhoudIsVervallen":false,"formaat":"","taal":"","bestandsnaam":"","inhoud":"","bestandsomvang":0,"link":"","beschrijving":"","ontvangstdatum":"","verzenddatum":"","indicatieGebruiksrecht":false,"verschijningsvorm":"","ondertekening":"","integriteit":"","informatieobjecttype":"","trefwoorden":[],"lock":""}'
};
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": @"" };
NSDictionary *parameters = @{ @"identificatie": @"",
@"bronorganisatie": @"",
@"creatiedatum": @"",
@"titel": @"",
@"vertrouwelijkheidaanduiding": @"",
@"auteur": @"",
@"status": @"",
@"inhoudIsVervallen": @NO,
@"formaat": @"",
@"taal": @"",
@"bestandsnaam": @"",
@"inhoud": @"",
@"bestandsomvang": @0,
@"link": @"",
@"beschrijving": @"",
@"ontvangstdatum": @"",
@"verzenddatum": @"",
@"indicatieGebruiksrecht": @NO,
@"verschijningsvorm": @"",
@"ondertekening": @"",
@"integriteit": @"",
@"informatieobjecttype": @"",
@"trefwoorden": @[ ],
@"lock": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"]
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}}/enkelvoudiginformatieobjecten/:uuid" in
let headers = Header.add (Header.init ()) "content-type" "" in
let body = Cohttp_lwt_body.of_string "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": [],\n \"lock\": \"\"\n}" in
Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid",
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([
'identificatie' => '',
'bronorganisatie' => '',
'creatiedatum' => '',
'titel' => '',
'vertrouwelijkheidaanduiding' => '',
'auteur' => '',
'status' => '',
'inhoudIsVervallen' => null,
'formaat' => '',
'taal' => '',
'bestandsnaam' => '',
'inhoud' => '',
'bestandsomvang' => 0,
'link' => '',
'beschrijving' => '',
'ontvangstdatum' => '',
'verzenddatum' => '',
'indicatieGebruiksrecht' => null,
'verschijningsvorm' => '',
'ondertekening' => '',
'integriteit' => '',
'informatieobjecttype' => '',
'trefwoorden' => [
],
'lock' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid', [
'body' => '{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": [],
"lock": ""
}',
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'content-type' => ''
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'identificatie' => '',
'bronorganisatie' => '',
'creatiedatum' => '',
'titel' => '',
'vertrouwelijkheidaanduiding' => '',
'auteur' => '',
'status' => '',
'inhoudIsVervallen' => null,
'formaat' => '',
'taal' => '',
'bestandsnaam' => '',
'inhoud' => '',
'bestandsomvang' => 0,
'link' => '',
'beschrijving' => '',
'ontvangstdatum' => '',
'verzenddatum' => '',
'indicatieGebruiksrecht' => null,
'verschijningsvorm' => '',
'ondertekening' => '',
'integriteit' => '',
'informatieobjecttype' => '',
'trefwoorden' => [
],
'lock' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'identificatie' => '',
'bronorganisatie' => '',
'creatiedatum' => '',
'titel' => '',
'vertrouwelijkheidaanduiding' => '',
'auteur' => '',
'status' => '',
'inhoudIsVervallen' => null,
'formaat' => '',
'taal' => '',
'bestandsnaam' => '',
'inhoud' => '',
'bestandsomvang' => 0,
'link' => '',
'beschrijving' => '',
'ontvangstdatum' => '',
'verzenddatum' => '',
'indicatieGebruiksrecht' => null,
'verschijningsvorm' => '',
'ondertekening' => '',
'integriteit' => '',
'informatieobjecttype' => '',
'trefwoorden' => [
],
'lock' => ''
]));
$request->setRequestUrl('{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid');
$request->setRequestMethod('PUT');
$request->setBody($body);
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid' -Method PUT -Headers $headers -ContentType '' -Body '{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": [],
"lock": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid' -Method PUT -Headers $headers -ContentType '' -Body '{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": [],
"lock": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": [],\n \"lock\": \"\"\n}"
headers = { 'content-type': "" }
conn.request("PUT", "/baseUrl/enkelvoudiginformatieobjecten/:uuid", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
payload = {
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": False,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": False,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": [],
"lock": ""
}
headers = {"content-type": ""}
response = requests.put(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid"
payload <- "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": [],\n \"lock\": \"\"\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}}/enkelvoudiginformatieobjecten/:uuid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["content-type"] = ''
request.body = "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": [],\n \"lock\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/enkelvoudiginformatieobjecten/:uuid') do |req|
req.body = "{\n \"identificatie\": \"\",\n \"bronorganisatie\": \"\",\n \"creatiedatum\": \"\",\n \"titel\": \"\",\n \"vertrouwelijkheidaanduiding\": \"\",\n \"auteur\": \"\",\n \"status\": \"\",\n \"inhoudIsVervallen\": false,\n \"formaat\": \"\",\n \"taal\": \"\",\n \"bestandsnaam\": \"\",\n \"inhoud\": \"\",\n \"bestandsomvang\": 0,\n \"link\": \"\",\n \"beschrijving\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"indicatieGebruiksrecht\": false,\n \"verschijningsvorm\": \"\",\n \"ondertekening\": \"\",\n \"integriteit\": \"\",\n \"informatieobjecttype\": \"\",\n \"trefwoorden\": [],\n \"lock\": \"\"\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}}/enkelvoudiginformatieobjecten/:uuid";
let payload = json!({
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": (),
"lock": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid \
--header 'content-type: ' \
--data '{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": [],
"lock": ""
}'
echo '{
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": [],
"lock": ""
}' | \
http PUT {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid \
content-type:''
wget --quiet \
--method PUT \
--header 'content-type: ' \
--body-data '{\n "identificatie": "",\n "bronorganisatie": "",\n "creatiedatum": "",\n "titel": "",\n "vertrouwelijkheidaanduiding": "",\n "auteur": "",\n "status": "",\n "inhoudIsVervallen": false,\n "formaat": "",\n "taal": "",\n "bestandsnaam": "",\n "inhoud": "",\n "bestandsomvang": 0,\n "link": "",\n "beschrijving": "",\n "ontvangstdatum": "",\n "verzenddatum": "",\n "indicatieGebruiksrecht": false,\n "verschijningsvorm": "",\n "ondertekening": "",\n "integriteit": "",\n "informatieobjecttype": "",\n "trefwoorden": [],\n "lock": ""\n}' \
--output-document \
- {{baseUrl}}/enkelvoudiginformatieobjecten/:uuid
import Foundation
let headers = ["content-type": ""]
let parameters = [
"identificatie": "",
"bronorganisatie": "",
"creatiedatum": "",
"titel": "",
"vertrouwelijkheidaanduiding": "",
"auteur": "",
"status": "",
"inhoudIsVervallen": false,
"formaat": "",
"taal": "",
"bestandsnaam": "",
"inhoud": "",
"bestandsomvang": 0,
"link": "",
"beschrijving": "",
"ontvangstdatum": "",
"verzenddatum": "",
"indicatieGebruiksrecht": false,
"verschijningsvorm": "",
"ondertekening": "",
"integriteit": "",
"informatieobjecttype": "",
"trefwoorden": [],
"lock": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/enkelvoudiginformatieobjecten/:uuid")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"trefwoorden": [
"bouwtekening",
"vergunning",
"aanvraag"
]
}
GET
Alle GEBRUIKSRECHTen opvragen.
{{baseUrl}}/gebruiksrechten
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/gebruiksrechten");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/gebruiksrechten")
require "http/client"
url = "{{baseUrl}}/gebruiksrechten"
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}}/gebruiksrechten"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/gebruiksrechten");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/gebruiksrechten"
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/gebruiksrechten HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/gebruiksrechten")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/gebruiksrechten"))
.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}}/gebruiksrechten")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/gebruiksrechten")
.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}}/gebruiksrechten');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/gebruiksrechten'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/gebruiksrechten';
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}}/gebruiksrechten',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/gebruiksrechten")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/gebruiksrechten',
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}}/gebruiksrechten'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/gebruiksrechten');
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}}/gebruiksrechten'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/gebruiksrechten';
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}}/gebruiksrechten"]
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}}/gebruiksrechten" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/gebruiksrechten",
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}}/gebruiksrechten');
echo $response->getBody();
setUrl('{{baseUrl}}/gebruiksrechten');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/gebruiksrechten');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/gebruiksrechten' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/gebruiksrechten' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/gebruiksrechten")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/gebruiksrechten"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/gebruiksrechten"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/gebruiksrechten")
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/gebruiksrechten') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/gebruiksrechten";
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}}/gebruiksrechten
http GET {{baseUrl}}/gebruiksrechten
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/gebruiksrechten
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/gebruiksrechten")! 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()
HEAD
De headers voor een specifiek(e) GEBRUIKSRECHT INFORMATIEOBJECT opvragen
{{baseUrl}}/gebruiksrechten/:uuid
QUERY PARAMS
uuid
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "HEAD");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/gebruiksrechten/:uuid");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/head "{{baseUrl}}/gebruiksrechten/:uuid")
require "http/client"
url = "{{baseUrl}}/gebruiksrechten/:uuid"
response = HTTP::Client.head url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Head,
RequestUri = new Uri("{{baseUrl}}/gebruiksrechten/:uuid"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/gebruiksrechten/:uuid");
var request = new RestRequest("", Method.Head);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/gebruiksrechten/:uuid"
req, _ := http.NewRequest("HEAD", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
HEAD /baseUrl/gebruiksrechten/:uuid HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("HEAD", "{{baseUrl}}/gebruiksrechten/:uuid")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/gebruiksrechten/:uuid"))
.method("HEAD", 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}}/gebruiksrechten/:uuid")
.head()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.head("{{baseUrl}}/gebruiksrechten/:uuid")
.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('HEAD', '{{baseUrl}}/gebruiksrechten/:uuid');
xhr.send(data);
import axios from 'axios';
const options = {method: 'HEAD', url: '{{baseUrl}}/gebruiksrechten/:uuid'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/gebruiksrechten/:uuid';
const options = {method: 'HEAD'};
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}}/gebruiksrechten/:uuid',
method: 'HEAD',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/gebruiksrechten/:uuid")
.head()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'HEAD',
hostname: 'example.com',
port: null,
path: '/baseUrl/gebruiksrechten/:uuid',
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: 'HEAD', url: '{{baseUrl}}/gebruiksrechten/:uuid'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('HEAD', '{{baseUrl}}/gebruiksrechten/:uuid');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'HEAD', url: '{{baseUrl}}/gebruiksrechten/:uuid'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/gebruiksrechten/:uuid';
const options = {method: 'HEAD'};
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}}/gebruiksrechten/:uuid"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"HEAD"];
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}}/gebruiksrechten/:uuid" in
Client.call `HEAD uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/gebruiksrechten/:uuid",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "HEAD",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('HEAD', '{{baseUrl}}/gebruiksrechten/:uuid');
echo $response->getBody();
setUrl('{{baseUrl}}/gebruiksrechten/:uuid');
$request->setMethod(HTTP_METH_HEAD);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/gebruiksrechten/:uuid');
$request->setRequestMethod('HEAD');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/gebruiksrechten/:uuid' -Method HEAD
$response = Invoke-RestMethod -Uri '{{baseUrl}}/gebruiksrechten/:uuid' -Method HEAD
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("HEAD", "/baseUrl/gebruiksrechten/:uuid")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/gebruiksrechten/:uuid"
response = requests.head(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/gebruiksrechten/:uuid"
response <- VERB("HEAD", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/gebruiksrechten/:uuid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Head.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.head('/baseUrl/gebruiksrechten/:uuid') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/gebruiksrechten/:uuid";
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("HEAD").unwrap(), url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request HEAD \
--url {{baseUrl}}/gebruiksrechten/:uuid
http HEAD {{baseUrl}}/gebruiksrechten/:uuid
wget --quiet \
--method HEAD \
--output-document \
- {{baseUrl}}/gebruiksrechten/:uuid
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/gebruiksrechten/:uuid")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "HEAD"
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
Een specifieke GEBRUIKSRECHT opvragen.
{{baseUrl}}/gebruiksrechten/:uuid
QUERY PARAMS
uuid
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/gebruiksrechten/:uuid");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/gebruiksrechten/:uuid")
require "http/client"
url = "{{baseUrl}}/gebruiksrechten/:uuid"
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}}/gebruiksrechten/:uuid"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/gebruiksrechten/:uuid");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/gebruiksrechten/:uuid"
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/gebruiksrechten/:uuid HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/gebruiksrechten/:uuid")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/gebruiksrechten/:uuid"))
.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}}/gebruiksrechten/:uuid")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/gebruiksrechten/:uuid")
.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}}/gebruiksrechten/:uuid');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/gebruiksrechten/:uuid'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/gebruiksrechten/:uuid';
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}}/gebruiksrechten/:uuid',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/gebruiksrechten/:uuid")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/gebruiksrechten/:uuid',
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}}/gebruiksrechten/:uuid'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/gebruiksrechten/:uuid');
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}}/gebruiksrechten/:uuid'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/gebruiksrechten/:uuid';
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}}/gebruiksrechten/:uuid"]
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}}/gebruiksrechten/:uuid" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/gebruiksrechten/:uuid",
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}}/gebruiksrechten/:uuid');
echo $response->getBody();
setUrl('{{baseUrl}}/gebruiksrechten/:uuid');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/gebruiksrechten/:uuid');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/gebruiksrechten/:uuid' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/gebruiksrechten/:uuid' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/gebruiksrechten/:uuid")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/gebruiksrechten/:uuid"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/gebruiksrechten/:uuid"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/gebruiksrechten/:uuid")
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/gebruiksrechten/:uuid') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/gebruiksrechten/:uuid";
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}}/gebruiksrechten/:uuid
http GET {{baseUrl}}/gebruiksrechten/:uuid
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/gebruiksrechten/:uuid
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/gebruiksrechten/:uuid")! 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
Maak een GEBRUIKSRECHT aan.
{{baseUrl}}/gebruiksrechten
HEADERS
Content-Type
BODY json
{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/gebruiksrechten");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/gebruiksrechten" {:content-type :json
:form-params {:informatieobject ""
:startdatum ""
:einddatum ""
:omschrijvingVoorwaarden ""}})
require "http/client"
url = "{{baseUrl}}/gebruiksrechten"
headers = HTTP::Headers{
"content-type" => ""
}
reqBody = "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\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}}/gebruiksrechten"),
Content = new StringContent("{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\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}}/gebruiksrechten");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
request.AddParameter("", "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/gebruiksrechten"
payload := strings.NewReader("{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/gebruiksrechten HTTP/1.1
Content-Type:
Host: example.com
Content-Length: 100
{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/gebruiksrechten")
.setHeader("content-type", "")
.setBody("{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/gebruiksrechten"))
.header("content-type", "")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\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 \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/gebruiksrechten")
.post(body)
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/gebruiksrechten")
.header("content-type", "")
.body("{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}")
.asString();
const data = JSON.stringify({
informatieobject: '',
startdatum: '',
einddatum: '',
omschrijvingVoorwaarden: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/gebruiksrechten');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/gebruiksrechten',
headers: {'content-type': ''},
data: {
informatieobject: '',
startdatum: '',
einddatum: '',
omschrijvingVoorwaarden: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/gebruiksrechten';
const options = {
method: 'POST',
headers: {'content-type': ''},
body: '{"informatieobject":"","startdatum":"","einddatum":"","omschrijvingVoorwaarden":""}'
};
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}}/gebruiksrechten',
method: 'POST',
headers: {
'content-type': ''
},
processData: false,
data: '{\n "informatieobject": "",\n "startdatum": "",\n "einddatum": "",\n "omschrijvingVoorwaarden": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/gebruiksrechten")
.post(body)
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/gebruiksrechten',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
informatieobject: '',
startdatum: '',
einddatum: '',
omschrijvingVoorwaarden: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/gebruiksrechten',
headers: {'content-type': ''},
body: {
informatieobject: '',
startdatum: '',
einddatum: '',
omschrijvingVoorwaarden: ''
},
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}}/gebruiksrechten');
req.headers({
'content-type': ''
});
req.type('json');
req.send({
informatieobject: '',
startdatum: '',
einddatum: '',
omschrijvingVoorwaarden: ''
});
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}}/gebruiksrechten',
headers: {'content-type': ''},
data: {
informatieobject: '',
startdatum: '',
einddatum: '',
omschrijvingVoorwaarden: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/gebruiksrechten';
const options = {
method: 'POST',
headers: {'content-type': ''},
body: '{"informatieobject":"","startdatum":"","einddatum":"","omschrijvingVoorwaarden":""}'
};
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": @"" };
NSDictionary *parameters = @{ @"informatieobject": @"",
@"startdatum": @"",
@"einddatum": @"",
@"omschrijvingVoorwaarden": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/gebruiksrechten"]
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}}/gebruiksrechten" in
let headers = Header.add (Header.init ()) "content-type" "" in
let body = Cohttp_lwt_body.of_string "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/gebruiksrechten",
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([
'informatieobject' => '',
'startdatum' => '',
'einddatum' => '',
'omschrijvingVoorwaarden' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/gebruiksrechten', [
'body' => '{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}',
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/gebruiksrechten');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => ''
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'informatieobject' => '',
'startdatum' => '',
'einddatum' => '',
'omschrijvingVoorwaarden' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'informatieobject' => '',
'startdatum' => '',
'einddatum' => '',
'omschrijvingVoorwaarden' => ''
]));
$request->setRequestUrl('{{baseUrl}}/gebruiksrechten');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/gebruiksrechten' -Method POST -Headers $headers -ContentType '' -Body '{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/gebruiksrechten' -Method POST -Headers $headers -ContentType '' -Body '{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}"
headers = { 'content-type': "" }
conn.request("POST", "/baseUrl/gebruiksrechten", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/gebruiksrechten"
payload = {
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}
headers = {"content-type": ""}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/gebruiksrechten"
payload <- "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\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}}/gebruiksrechten")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = ''
request.body = "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/gebruiksrechten') do |req|
req.body = "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/gebruiksrechten";
let payload = json!({
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/gebruiksrechten \
--header 'content-type: ' \
--data '{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}'
echo '{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}' | \
http POST {{baseUrl}}/gebruiksrechten \
content-type:''
wget --quiet \
--method POST \
--header 'content-type: ' \
--body-data '{\n "informatieobject": "",\n "startdatum": "",\n "einddatum": "",\n "omschrijvingVoorwaarden": ""\n}' \
--output-document \
- {{baseUrl}}/gebruiksrechten
import Foundation
let headers = ["content-type": ""]
let parameters = [
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/gebruiksrechten")! 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
Verwijder een GEBRUIKSRECHT.
{{baseUrl}}/gebruiksrechten/:uuid
QUERY PARAMS
uuid
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/gebruiksrechten/:uuid");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/gebruiksrechten/:uuid")
require "http/client"
url = "{{baseUrl}}/gebruiksrechten/:uuid"
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}}/gebruiksrechten/:uuid"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/gebruiksrechten/:uuid");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/gebruiksrechten/:uuid"
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/gebruiksrechten/:uuid HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/gebruiksrechten/:uuid")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/gebruiksrechten/:uuid"))
.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}}/gebruiksrechten/:uuid")
.delete(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/gebruiksrechten/:uuid")
.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}}/gebruiksrechten/:uuid');
xhr.send(data);
import axios from 'axios';
const options = {method: 'DELETE', url: '{{baseUrl}}/gebruiksrechten/:uuid'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/gebruiksrechten/:uuid';
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}}/gebruiksrechten/:uuid',
method: 'DELETE',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/gebruiksrechten/:uuid")
.delete(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/gebruiksrechten/:uuid',
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}}/gebruiksrechten/:uuid'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/gebruiksrechten/:uuid');
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}}/gebruiksrechten/:uuid'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/gebruiksrechten/:uuid';
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}}/gebruiksrechten/:uuid"]
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}}/gebruiksrechten/:uuid" in
Client.call `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/gebruiksrechten/:uuid",
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}}/gebruiksrechten/:uuid');
echo $response->getBody();
setUrl('{{baseUrl}}/gebruiksrechten/:uuid');
$request->setMethod(HTTP_METH_DELETE);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/gebruiksrechten/:uuid');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/gebruiksrechten/:uuid' -Method DELETE
$response = Invoke-RestMethod -Uri '{{baseUrl}}/gebruiksrechten/:uuid' -Method DELETE
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("DELETE", "/baseUrl/gebruiksrechten/:uuid")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/gebruiksrechten/:uuid"
response = requests.delete(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/gebruiksrechten/:uuid"
response <- VERB("DELETE", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/gebruiksrechten/:uuid")
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/gebruiksrechten/:uuid') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/gebruiksrechten/:uuid";
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}}/gebruiksrechten/:uuid
http DELETE {{baseUrl}}/gebruiksrechten/:uuid
wget --quiet \
--method DELETE \
--output-document \
- {{baseUrl}}/gebruiksrechten/:uuid
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/gebruiksrechten/:uuid")! 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
Werk een GEBRUIKSRECHT in zijn geheel bij.
{{baseUrl}}/gebruiksrechten/:uuid
HEADERS
Content-Type
QUERY PARAMS
uuid
BODY json
{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/gebruiksrechten/:uuid");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/gebruiksrechten/:uuid" {:content-type :json
:form-params {:informatieobject ""
:startdatum ""
:einddatum ""
:omschrijvingVoorwaarden ""}})
require "http/client"
url = "{{baseUrl}}/gebruiksrechten/:uuid"
headers = HTTP::Headers{
"content-type" => ""
}
reqBody = "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\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}}/gebruiksrechten/:uuid"),
Content = new StringContent("{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\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}}/gebruiksrechten/:uuid");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "");
request.AddParameter("", "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/gebruiksrechten/:uuid"
payload := strings.NewReader("{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/gebruiksrechten/:uuid HTTP/1.1
Content-Type:
Host: example.com
Content-Length: 100
{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/gebruiksrechten/:uuid")
.setHeader("content-type", "")
.setBody("{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/gebruiksrechten/:uuid"))
.header("content-type", "")
.method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\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 \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/gebruiksrechten/:uuid")
.put(body)
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/gebruiksrechten/:uuid")
.header("content-type", "")
.body("{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}")
.asString();
const data = JSON.stringify({
informatieobject: '',
startdatum: '',
einddatum: '',
omschrijvingVoorwaarden: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/gebruiksrechten/:uuid');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/gebruiksrechten/:uuid',
headers: {'content-type': ''},
data: {
informatieobject: '',
startdatum: '',
einddatum: '',
omschrijvingVoorwaarden: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/gebruiksrechten/:uuid';
const options = {
method: 'PUT',
headers: {'content-type': ''},
body: '{"informatieobject":"","startdatum":"","einddatum":"","omschrijvingVoorwaarden":""}'
};
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}}/gebruiksrechten/:uuid',
method: 'PUT',
headers: {
'content-type': ''
},
processData: false,
data: '{\n "informatieobject": "",\n "startdatum": "",\n "einddatum": "",\n "omschrijvingVoorwaarden": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/gebruiksrechten/:uuid")
.put(body)
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/gebruiksrechten/:uuid',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
informatieobject: '',
startdatum: '',
einddatum: '',
omschrijvingVoorwaarden: ''
}));
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/gebruiksrechten/:uuid',
headers: {'content-type': ''},
body: {
informatieobject: '',
startdatum: '',
einddatum: '',
omschrijvingVoorwaarden: ''
},
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}}/gebruiksrechten/:uuid');
req.headers({
'content-type': ''
});
req.type('json');
req.send({
informatieobject: '',
startdatum: '',
einddatum: '',
omschrijvingVoorwaarden: ''
});
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}}/gebruiksrechten/:uuid',
headers: {'content-type': ''},
data: {
informatieobject: '',
startdatum: '',
einddatum: '',
omschrijvingVoorwaarden: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/gebruiksrechten/:uuid';
const options = {
method: 'PUT',
headers: {'content-type': ''},
body: '{"informatieobject":"","startdatum":"","einddatum":"","omschrijvingVoorwaarden":""}'
};
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": @"" };
NSDictionary *parameters = @{ @"informatieobject": @"",
@"startdatum": @"",
@"einddatum": @"",
@"omschrijvingVoorwaarden": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/gebruiksrechten/:uuid"]
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}}/gebruiksrechten/:uuid" in
let headers = Header.add (Header.init ()) "content-type" "" in
let body = Cohttp_lwt_body.of_string "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}" in
Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/gebruiksrechten/:uuid",
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([
'informatieobject' => '',
'startdatum' => '',
'einddatum' => '',
'omschrijvingVoorwaarden' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/gebruiksrechten/:uuid', [
'body' => '{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}',
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/gebruiksrechten/:uuid');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'content-type' => ''
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'informatieobject' => '',
'startdatum' => '',
'einddatum' => '',
'omschrijvingVoorwaarden' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'informatieobject' => '',
'startdatum' => '',
'einddatum' => '',
'omschrijvingVoorwaarden' => ''
]));
$request->setRequestUrl('{{baseUrl}}/gebruiksrechten/:uuid');
$request->setRequestMethod('PUT');
$request->setBody($body);
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/gebruiksrechten/:uuid' -Method PUT -Headers $headers -ContentType '' -Body '{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/gebruiksrechten/:uuid' -Method PUT -Headers $headers -ContentType '' -Body '{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}"
headers = { 'content-type': "" }
conn.request("PUT", "/baseUrl/gebruiksrechten/:uuid", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/gebruiksrechten/:uuid"
payload = {
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}
headers = {"content-type": ""}
response = requests.put(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/gebruiksrechten/:uuid"
payload <- "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\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}}/gebruiksrechten/:uuid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["content-type"] = ''
request.body = "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/gebruiksrechten/:uuid') do |req|
req.body = "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\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}}/gebruiksrechten/:uuid";
let payload = json!({
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/gebruiksrechten/:uuid \
--header 'content-type: ' \
--data '{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}'
echo '{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}' | \
http PUT {{baseUrl}}/gebruiksrechten/:uuid \
content-type:''
wget --quiet \
--method PUT \
--header 'content-type: ' \
--body-data '{\n "informatieobject": "",\n "startdatum": "",\n "einddatum": "",\n "omschrijvingVoorwaarden": ""\n}' \
--output-document \
- {{baseUrl}}/gebruiksrechten/:uuid
import Foundation
let headers = ["content-type": ""]
let parameters = [
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/gebruiksrechten/:uuid")! 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()
PATCH
Werk een GEBRUIKSRECHT relatie deels bij.
{{baseUrl}}/gebruiksrechten/:uuid
HEADERS
Content-Type
QUERY PARAMS
uuid
BODY json
{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/gebruiksrechten/:uuid");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/patch "{{baseUrl}}/gebruiksrechten/:uuid" {:content-type :json
:form-params {:informatieobject ""
:startdatum ""
:einddatum ""
:omschrijvingVoorwaarden ""}})
require "http/client"
url = "{{baseUrl}}/gebruiksrechten/:uuid"
headers = HTTP::Headers{
"content-type" => ""
}
reqBody = "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}"
response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Patch,
RequestUri = new Uri("{{baseUrl}}/gebruiksrechten/:uuid"),
Content = new StringContent("{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\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}}/gebruiksrechten/:uuid");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "");
request.AddParameter("", "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/gebruiksrechten/:uuid"
payload := strings.NewReader("{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PATCH /baseUrl/gebruiksrechten/:uuid HTTP/1.1
Content-Type:
Host: example.com
Content-Length: 100
{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/gebruiksrechten/:uuid")
.setHeader("content-type", "")
.setBody("{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/gebruiksrechten/:uuid"))
.header("content-type", "")
.method("PATCH", HttpRequest.BodyPublishers.ofString("{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\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 \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/gebruiksrechten/:uuid")
.patch(body)
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/gebruiksrechten/:uuid")
.header("content-type", "")
.body("{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}")
.asString();
const data = JSON.stringify({
informatieobject: '',
startdatum: '',
einddatum: '',
omschrijvingVoorwaarden: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PATCH', '{{baseUrl}}/gebruiksrechten/:uuid');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PATCH',
url: '{{baseUrl}}/gebruiksrechten/:uuid',
headers: {'content-type': ''},
data: {
informatieobject: '',
startdatum: '',
einddatum: '',
omschrijvingVoorwaarden: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/gebruiksrechten/:uuid';
const options = {
method: 'PATCH',
headers: {'content-type': ''},
body: '{"informatieobject":"","startdatum":"","einddatum":"","omschrijvingVoorwaarden":""}'
};
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}}/gebruiksrechten/:uuid',
method: 'PATCH',
headers: {
'content-type': ''
},
processData: false,
data: '{\n "informatieobject": "",\n "startdatum": "",\n "einddatum": "",\n "omschrijvingVoorwaarden": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/gebruiksrechten/:uuid")
.patch(body)
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PATCH',
hostname: 'example.com',
port: null,
path: '/baseUrl/gebruiksrechten/:uuid',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
informatieobject: '',
startdatum: '',
einddatum: '',
omschrijvingVoorwaarden: ''
}));
req.end();
const request = require('request');
const options = {
method: 'PATCH',
url: '{{baseUrl}}/gebruiksrechten/:uuid',
headers: {'content-type': ''},
body: {
informatieobject: '',
startdatum: '',
einddatum: '',
omschrijvingVoorwaarden: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PATCH', '{{baseUrl}}/gebruiksrechten/:uuid');
req.headers({
'content-type': ''
});
req.type('json');
req.send({
informatieobject: '',
startdatum: '',
einddatum: '',
omschrijvingVoorwaarden: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PATCH',
url: '{{baseUrl}}/gebruiksrechten/:uuid',
headers: {'content-type': ''},
data: {
informatieobject: '',
startdatum: '',
einddatum: '',
omschrijvingVoorwaarden: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/gebruiksrechten/:uuid';
const options = {
method: 'PATCH',
headers: {'content-type': ''},
body: '{"informatieobject":"","startdatum":"","einddatum":"","omschrijvingVoorwaarden":""}'
};
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": @"" };
NSDictionary *parameters = @{ @"informatieobject": @"",
@"startdatum": @"",
@"einddatum": @"",
@"omschrijvingVoorwaarden": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/gebruiksrechten/:uuid"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[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}}/gebruiksrechten/:uuid" in
let headers = Header.add (Header.init ()) "content-type" "" in
let body = Cohttp_lwt_body.of_string "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}" in
Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/gebruiksrechten/:uuid",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'informatieobject' => '',
'startdatum' => '',
'einddatum' => '',
'omschrijvingVoorwaarden' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PATCH', '{{baseUrl}}/gebruiksrechten/:uuid', [
'body' => '{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}',
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/gebruiksrechten/:uuid');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);
$request->setHeaders([
'content-type' => ''
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'informatieobject' => '',
'startdatum' => '',
'einddatum' => '',
'omschrijvingVoorwaarden' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'informatieobject' => '',
'startdatum' => '',
'einddatum' => '',
'omschrijvingVoorwaarden' => ''
]));
$request->setRequestUrl('{{baseUrl}}/gebruiksrechten/:uuid');
$request->setRequestMethod('PATCH');
$request->setBody($body);
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/gebruiksrechten/:uuid' -Method PATCH -Headers $headers -ContentType '' -Body '{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/gebruiksrechten/:uuid' -Method PATCH -Headers $headers -ContentType '' -Body '{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}"
headers = { 'content-type': "" }
conn.request("PATCH", "/baseUrl/gebruiksrechten/:uuid", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/gebruiksrechten/:uuid"
payload = {
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}
headers = {"content-type": ""}
response = requests.patch(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/gebruiksrechten/:uuid"
payload <- "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}"
encode <- "json"
response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/gebruiksrechten/:uuid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["content-type"] = ''
request.body = "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.patch('/baseUrl/gebruiksrechten/:uuid') do |req|
req.body = "{\n \"informatieobject\": \"\",\n \"startdatum\": \"\",\n \"einddatum\": \"\",\n \"omschrijvingVoorwaarden\": \"\"\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}}/gebruiksrechten/:uuid";
let payload = json!({
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PATCH \
--url {{baseUrl}}/gebruiksrechten/:uuid \
--header 'content-type: ' \
--data '{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}'
echo '{
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
}' | \
http PATCH {{baseUrl}}/gebruiksrechten/:uuid \
content-type:''
wget --quiet \
--method PATCH \
--header 'content-type: ' \
--body-data '{\n "informatieobject": "",\n "startdatum": "",\n "einddatum": "",\n "omschrijvingVoorwaarden": ""\n}' \
--output-document \
- {{baseUrl}}/gebruiksrechten/:uuid
import Foundation
let headers = ["content-type": ""]
let parameters = [
"informatieobject": "",
"startdatum": "",
"einddatum": "",
"omschrijvingVoorwaarden": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/gebruiksrechten/:uuid")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
Alle OBJECT-INFORMATIEOBJECT relaties opvragen.
{{baseUrl}}/objectinformatieobjecten
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/objectinformatieobjecten");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/objectinformatieobjecten")
require "http/client"
url = "{{baseUrl}}/objectinformatieobjecten"
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}}/objectinformatieobjecten"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/objectinformatieobjecten");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/objectinformatieobjecten"
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/objectinformatieobjecten HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/objectinformatieobjecten")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/objectinformatieobjecten"))
.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}}/objectinformatieobjecten")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/objectinformatieobjecten")
.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}}/objectinformatieobjecten');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/objectinformatieobjecten'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/objectinformatieobjecten';
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}}/objectinformatieobjecten',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/objectinformatieobjecten")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/objectinformatieobjecten',
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}}/objectinformatieobjecten'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/objectinformatieobjecten');
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}}/objectinformatieobjecten'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/objectinformatieobjecten';
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}}/objectinformatieobjecten"]
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}}/objectinformatieobjecten" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/objectinformatieobjecten",
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}}/objectinformatieobjecten');
echo $response->getBody();
setUrl('{{baseUrl}}/objectinformatieobjecten');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/objectinformatieobjecten');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/objectinformatieobjecten' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/objectinformatieobjecten' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/objectinformatieobjecten")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/objectinformatieobjecten"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/objectinformatieobjecten"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/objectinformatieobjecten")
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/objectinformatieobjecten') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/objectinformatieobjecten";
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}}/objectinformatieobjecten
http GET {{baseUrl}}/objectinformatieobjecten
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/objectinformatieobjecten
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/objectinformatieobjecten")! 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()
HEAD
De headers voor een specifiek(e) OOBJECT-INFORMATIEOBJECT opvragen
{{baseUrl}}/objectinformatieobjecten/:uuid
QUERY PARAMS
uuid
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "HEAD");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/objectinformatieobjecten/:uuid");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/head "{{baseUrl}}/objectinformatieobjecten/:uuid")
require "http/client"
url = "{{baseUrl}}/objectinformatieobjecten/:uuid"
response = HTTP::Client.head url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Head,
RequestUri = new Uri("{{baseUrl}}/objectinformatieobjecten/:uuid"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/objectinformatieobjecten/:uuid");
var request = new RestRequest("", Method.Head);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/objectinformatieobjecten/:uuid"
req, _ := http.NewRequest("HEAD", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
HEAD /baseUrl/objectinformatieobjecten/:uuid HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("HEAD", "{{baseUrl}}/objectinformatieobjecten/:uuid")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/objectinformatieobjecten/:uuid"))
.method("HEAD", 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}}/objectinformatieobjecten/:uuid")
.head()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.head("{{baseUrl}}/objectinformatieobjecten/:uuid")
.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('HEAD', '{{baseUrl}}/objectinformatieobjecten/:uuid');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'HEAD',
url: '{{baseUrl}}/objectinformatieobjecten/:uuid'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/objectinformatieobjecten/:uuid';
const options = {method: 'HEAD'};
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}}/objectinformatieobjecten/:uuid',
method: 'HEAD',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/objectinformatieobjecten/:uuid")
.head()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'HEAD',
hostname: 'example.com',
port: null,
path: '/baseUrl/objectinformatieobjecten/:uuid',
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: 'HEAD',
url: '{{baseUrl}}/objectinformatieobjecten/:uuid'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('HEAD', '{{baseUrl}}/objectinformatieobjecten/:uuid');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'HEAD',
url: '{{baseUrl}}/objectinformatieobjecten/:uuid'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/objectinformatieobjecten/:uuid';
const options = {method: 'HEAD'};
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}}/objectinformatieobjecten/:uuid"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"HEAD"];
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}}/objectinformatieobjecten/:uuid" in
Client.call `HEAD uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/objectinformatieobjecten/:uuid",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "HEAD",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('HEAD', '{{baseUrl}}/objectinformatieobjecten/:uuid');
echo $response->getBody();
setUrl('{{baseUrl}}/objectinformatieobjecten/:uuid');
$request->setMethod(HTTP_METH_HEAD);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/objectinformatieobjecten/:uuid');
$request->setRequestMethod('HEAD');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/objectinformatieobjecten/:uuid' -Method HEAD
$response = Invoke-RestMethod -Uri '{{baseUrl}}/objectinformatieobjecten/:uuid' -Method HEAD
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("HEAD", "/baseUrl/objectinformatieobjecten/:uuid")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/objectinformatieobjecten/:uuid"
response = requests.head(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/objectinformatieobjecten/:uuid"
response <- VERB("HEAD", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/objectinformatieobjecten/:uuid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Head.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.head('/baseUrl/objectinformatieobjecten/:uuid') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/objectinformatieobjecten/:uuid";
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("HEAD").unwrap(), url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request HEAD \
--url {{baseUrl}}/objectinformatieobjecten/:uuid
http HEAD {{baseUrl}}/objectinformatieobjecten/:uuid
wget --quiet \
--method HEAD \
--output-document \
- {{baseUrl}}/objectinformatieobjecten/:uuid
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/objectinformatieobjecten/:uuid")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "HEAD"
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
Een specifieke OBJECT-INFORMATIEOBJECT relatie opvragen.
{{baseUrl}}/objectinformatieobjecten/:uuid
QUERY PARAMS
uuid
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/objectinformatieobjecten/:uuid");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/objectinformatieobjecten/:uuid")
require "http/client"
url = "{{baseUrl}}/objectinformatieobjecten/:uuid"
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}}/objectinformatieobjecten/:uuid"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/objectinformatieobjecten/:uuid");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/objectinformatieobjecten/:uuid"
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/objectinformatieobjecten/:uuid HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/objectinformatieobjecten/:uuid")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/objectinformatieobjecten/:uuid"))
.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}}/objectinformatieobjecten/:uuid")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/objectinformatieobjecten/:uuid")
.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}}/objectinformatieobjecten/:uuid');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/objectinformatieobjecten/:uuid'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/objectinformatieobjecten/:uuid';
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}}/objectinformatieobjecten/:uuid',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/objectinformatieobjecten/:uuid")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/objectinformatieobjecten/:uuid',
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}}/objectinformatieobjecten/:uuid'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/objectinformatieobjecten/:uuid');
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}}/objectinformatieobjecten/:uuid'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/objectinformatieobjecten/:uuid';
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}}/objectinformatieobjecten/:uuid"]
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}}/objectinformatieobjecten/:uuid" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/objectinformatieobjecten/:uuid",
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}}/objectinformatieobjecten/:uuid');
echo $response->getBody();
setUrl('{{baseUrl}}/objectinformatieobjecten/:uuid');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/objectinformatieobjecten/:uuid');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/objectinformatieobjecten/:uuid' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/objectinformatieobjecten/:uuid' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/objectinformatieobjecten/:uuid")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/objectinformatieobjecten/:uuid"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/objectinformatieobjecten/:uuid"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/objectinformatieobjecten/:uuid")
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/objectinformatieobjecten/:uuid') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/objectinformatieobjecten/:uuid";
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}}/objectinformatieobjecten/:uuid
http GET {{baseUrl}}/objectinformatieobjecten/:uuid
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/objectinformatieobjecten/:uuid
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/objectinformatieobjecten/:uuid")! 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
Maak een OBJECT-INFORMATIEOBJECT relatie aan.
{{baseUrl}}/objectinformatieobjecten
HEADERS
Content-Type
BODY json
{
"informatieobject": "",
"object": "",
"objectType": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/objectinformatieobjecten");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"informatieobject\": \"\",\n \"object\": \"\",\n \"objectType\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/objectinformatieobjecten" {:content-type :json
:form-params {:informatieobject ""
:object ""
:objectType ""}})
require "http/client"
url = "{{baseUrl}}/objectinformatieobjecten"
headers = HTTP::Headers{
"content-type" => ""
}
reqBody = "{\n \"informatieobject\": \"\",\n \"object\": \"\",\n \"objectType\": \"\"\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}}/objectinformatieobjecten"),
Content = new StringContent("{\n \"informatieobject\": \"\",\n \"object\": \"\",\n \"objectType\": \"\"\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}}/objectinformatieobjecten");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
request.AddParameter("", "{\n \"informatieobject\": \"\",\n \"object\": \"\",\n \"objectType\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/objectinformatieobjecten"
payload := strings.NewReader("{\n \"informatieobject\": \"\",\n \"object\": \"\",\n \"objectType\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/objectinformatieobjecten HTTP/1.1
Content-Type:
Host: example.com
Content-Length: 64
{
"informatieobject": "",
"object": "",
"objectType": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/objectinformatieobjecten")
.setHeader("content-type", "")
.setBody("{\n \"informatieobject\": \"\",\n \"object\": \"\",\n \"objectType\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/objectinformatieobjecten"))
.header("content-type", "")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"informatieobject\": \"\",\n \"object\": \"\",\n \"objectType\": \"\"\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 \"informatieobject\": \"\",\n \"object\": \"\",\n \"objectType\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/objectinformatieobjecten")
.post(body)
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/objectinformatieobjecten")
.header("content-type", "")
.body("{\n \"informatieobject\": \"\",\n \"object\": \"\",\n \"objectType\": \"\"\n}")
.asString();
const data = JSON.stringify({
informatieobject: '',
object: '',
objectType: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/objectinformatieobjecten');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/objectinformatieobjecten',
headers: {'content-type': ''},
data: {informatieobject: '', object: '', objectType: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/objectinformatieobjecten';
const options = {
method: 'POST',
headers: {'content-type': ''},
body: '{"informatieobject":"","object":"","objectType":""}'
};
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}}/objectinformatieobjecten',
method: 'POST',
headers: {
'content-type': ''
},
processData: false,
data: '{\n "informatieobject": "",\n "object": "",\n "objectType": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"informatieobject\": \"\",\n \"object\": \"\",\n \"objectType\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/objectinformatieobjecten")
.post(body)
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/objectinformatieobjecten',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({informatieobject: '', object: '', objectType: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/objectinformatieobjecten',
headers: {'content-type': ''},
body: {informatieobject: '', object: '', objectType: ''},
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}}/objectinformatieobjecten');
req.headers({
'content-type': ''
});
req.type('json');
req.send({
informatieobject: '',
object: '',
objectType: ''
});
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}}/objectinformatieobjecten',
headers: {'content-type': ''},
data: {informatieobject: '', object: '', objectType: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/objectinformatieobjecten';
const options = {
method: 'POST',
headers: {'content-type': ''},
body: '{"informatieobject":"","object":"","objectType":""}'
};
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": @"" };
NSDictionary *parameters = @{ @"informatieobject": @"",
@"object": @"",
@"objectType": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/objectinformatieobjecten"]
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}}/objectinformatieobjecten" in
let headers = Header.add (Header.init ()) "content-type" "" in
let body = Cohttp_lwt_body.of_string "{\n \"informatieobject\": \"\",\n \"object\": \"\",\n \"objectType\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/objectinformatieobjecten",
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([
'informatieobject' => '',
'object' => '',
'objectType' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/objectinformatieobjecten', [
'body' => '{
"informatieobject": "",
"object": "",
"objectType": ""
}',
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/objectinformatieobjecten');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => ''
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'informatieobject' => '',
'object' => '',
'objectType' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'informatieobject' => '',
'object' => '',
'objectType' => ''
]));
$request->setRequestUrl('{{baseUrl}}/objectinformatieobjecten');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/objectinformatieobjecten' -Method POST -Headers $headers -ContentType '' -Body '{
"informatieobject": "",
"object": "",
"objectType": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/objectinformatieobjecten' -Method POST -Headers $headers -ContentType '' -Body '{
"informatieobject": "",
"object": "",
"objectType": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"informatieobject\": \"\",\n \"object\": \"\",\n \"objectType\": \"\"\n}"
headers = { 'content-type': "" }
conn.request("POST", "/baseUrl/objectinformatieobjecten", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/objectinformatieobjecten"
payload = {
"informatieobject": "",
"object": "",
"objectType": ""
}
headers = {"content-type": ""}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/objectinformatieobjecten"
payload <- "{\n \"informatieobject\": \"\",\n \"object\": \"\",\n \"objectType\": \"\"\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}}/objectinformatieobjecten")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = ''
request.body = "{\n \"informatieobject\": \"\",\n \"object\": \"\",\n \"objectType\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/objectinformatieobjecten') do |req|
req.body = "{\n \"informatieobject\": \"\",\n \"object\": \"\",\n \"objectType\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/objectinformatieobjecten";
let payload = json!({
"informatieobject": "",
"object": "",
"objectType": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/objectinformatieobjecten \
--header 'content-type: ' \
--data '{
"informatieobject": "",
"object": "",
"objectType": ""
}'
echo '{
"informatieobject": "",
"object": "",
"objectType": ""
}' | \
http POST {{baseUrl}}/objectinformatieobjecten \
content-type:''
wget --quiet \
--method POST \
--header 'content-type: ' \
--body-data '{\n "informatieobject": "",\n "object": "",\n "objectType": ""\n}' \
--output-document \
- {{baseUrl}}/objectinformatieobjecten
import Foundation
let headers = ["content-type": ""]
let parameters = [
"informatieobject": "",
"object": "",
"objectType": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/objectinformatieobjecten")! 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
Verwijder een OBJECT-INFORMATIEOBJECT relatie.
{{baseUrl}}/objectinformatieobjecten/:uuid
QUERY PARAMS
uuid
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/objectinformatieobjecten/:uuid");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/objectinformatieobjecten/:uuid")
require "http/client"
url = "{{baseUrl}}/objectinformatieobjecten/:uuid"
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}}/objectinformatieobjecten/:uuid"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/objectinformatieobjecten/:uuid");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/objectinformatieobjecten/:uuid"
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/objectinformatieobjecten/:uuid HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/objectinformatieobjecten/:uuid")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/objectinformatieobjecten/:uuid"))
.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}}/objectinformatieobjecten/:uuid")
.delete(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/objectinformatieobjecten/:uuid")
.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}}/objectinformatieobjecten/:uuid');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/objectinformatieobjecten/:uuid'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/objectinformatieobjecten/:uuid';
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}}/objectinformatieobjecten/:uuid',
method: 'DELETE',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/objectinformatieobjecten/:uuid")
.delete(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/objectinformatieobjecten/:uuid',
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}}/objectinformatieobjecten/:uuid'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/objectinformatieobjecten/:uuid');
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}}/objectinformatieobjecten/:uuid'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/objectinformatieobjecten/:uuid';
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}}/objectinformatieobjecten/:uuid"]
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}}/objectinformatieobjecten/:uuid" in
Client.call `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/objectinformatieobjecten/:uuid",
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}}/objectinformatieobjecten/:uuid');
echo $response->getBody();
setUrl('{{baseUrl}}/objectinformatieobjecten/:uuid');
$request->setMethod(HTTP_METH_DELETE);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/objectinformatieobjecten/:uuid');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/objectinformatieobjecten/:uuid' -Method DELETE
$response = Invoke-RestMethod -Uri '{{baseUrl}}/objectinformatieobjecten/:uuid' -Method DELETE
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("DELETE", "/baseUrl/objectinformatieobjecten/:uuid")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/objectinformatieobjecten/:uuid"
response = requests.delete(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/objectinformatieobjecten/:uuid"
response <- VERB("DELETE", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/objectinformatieobjecten/:uuid")
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/objectinformatieobjecten/:uuid') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/objectinformatieobjecten/:uuid";
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}}/objectinformatieobjecten/:uuid
http DELETE {{baseUrl}}/objectinformatieobjecten/:uuid
wget --quiet \
--method DELETE \
--output-document \
- {{baseUrl}}/objectinformatieobjecten/:uuid
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/objectinformatieobjecten/:uuid")! 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
Alle VERZENDINGen opvragen.
{{baseUrl}}/verzendingen
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/verzendingen");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/verzendingen")
require "http/client"
url = "{{baseUrl}}/verzendingen"
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}}/verzendingen"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/verzendingen");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/verzendingen"
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/verzendingen HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/verzendingen")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/verzendingen"))
.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}}/verzendingen")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/verzendingen")
.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}}/verzendingen');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/verzendingen'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/verzendingen';
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}}/verzendingen',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/verzendingen")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/verzendingen',
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}}/verzendingen'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/verzendingen');
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}}/verzendingen'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/verzendingen';
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}}/verzendingen"]
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}}/verzendingen" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/verzendingen",
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}}/verzendingen');
echo $response->getBody();
setUrl('{{baseUrl}}/verzendingen');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/verzendingen');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/verzendingen' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/verzendingen' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/verzendingen")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/verzendingen"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/verzendingen"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/verzendingen")
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/verzendingen') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/verzendingen";
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}}/verzendingen
http GET {{baseUrl}}/verzendingen
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/verzendingen
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/verzendingen")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"count": 123,
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}
HEAD
De headers voor een specifiek(e) VERZENDING opvragen
{{baseUrl}}/verzendingen/:uuid
QUERY PARAMS
uuid
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "HEAD");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/verzendingen/:uuid");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/head "{{baseUrl}}/verzendingen/:uuid")
require "http/client"
url = "{{baseUrl}}/verzendingen/:uuid"
response = HTTP::Client.head url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Head,
RequestUri = new Uri("{{baseUrl}}/verzendingen/:uuid"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/verzendingen/:uuid");
var request = new RestRequest("", Method.Head);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/verzendingen/:uuid"
req, _ := http.NewRequest("HEAD", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
HEAD /baseUrl/verzendingen/:uuid HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("HEAD", "{{baseUrl}}/verzendingen/:uuid")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/verzendingen/:uuid"))
.method("HEAD", 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}}/verzendingen/:uuid")
.head()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.head("{{baseUrl}}/verzendingen/:uuid")
.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('HEAD', '{{baseUrl}}/verzendingen/:uuid');
xhr.send(data);
import axios from 'axios';
const options = {method: 'HEAD', url: '{{baseUrl}}/verzendingen/:uuid'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/verzendingen/:uuid';
const options = {method: 'HEAD'};
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}}/verzendingen/:uuid',
method: 'HEAD',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/verzendingen/:uuid")
.head()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'HEAD',
hostname: 'example.com',
port: null,
path: '/baseUrl/verzendingen/:uuid',
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: 'HEAD', url: '{{baseUrl}}/verzendingen/:uuid'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('HEAD', '{{baseUrl}}/verzendingen/:uuid');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'HEAD', url: '{{baseUrl}}/verzendingen/:uuid'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/verzendingen/:uuid';
const options = {method: 'HEAD'};
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}}/verzendingen/:uuid"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"HEAD"];
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}}/verzendingen/:uuid" in
Client.call `HEAD uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/verzendingen/:uuid",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "HEAD",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('HEAD', '{{baseUrl}}/verzendingen/:uuid');
echo $response->getBody();
setUrl('{{baseUrl}}/verzendingen/:uuid');
$request->setMethod(HTTP_METH_HEAD);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/verzendingen/:uuid');
$request->setRequestMethod('HEAD');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/verzendingen/:uuid' -Method HEAD
$response = Invoke-RestMethod -Uri '{{baseUrl}}/verzendingen/:uuid' -Method HEAD
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("HEAD", "/baseUrl/verzendingen/:uuid")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/verzendingen/:uuid"
response = requests.head(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/verzendingen/:uuid"
response <- VERB("HEAD", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/verzendingen/:uuid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Head.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.head('/baseUrl/verzendingen/:uuid') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/verzendingen/:uuid";
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("HEAD").unwrap(), url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request HEAD \
--url {{baseUrl}}/verzendingen/:uuid
http HEAD {{baseUrl}}/verzendingen/:uuid
wget --quiet \
--method HEAD \
--output-document \
- {{baseUrl}}/verzendingen/:uuid
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/verzendingen/:uuid")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "HEAD"
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
Een specifieke VERZENDING opvragen.
{{baseUrl}}/verzendingen/:uuid
QUERY PARAMS
uuid
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/verzendingen/:uuid");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/verzendingen/:uuid")
require "http/client"
url = "{{baseUrl}}/verzendingen/:uuid"
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}}/verzendingen/:uuid"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/verzendingen/:uuid");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/verzendingen/:uuid"
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/verzendingen/:uuid HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/verzendingen/:uuid")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/verzendingen/:uuid"))
.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}}/verzendingen/:uuid")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/verzendingen/:uuid")
.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}}/verzendingen/:uuid');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/verzendingen/:uuid'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/verzendingen/:uuid';
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}}/verzendingen/:uuid',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/verzendingen/:uuid")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/verzendingen/:uuid',
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}}/verzendingen/:uuid'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/verzendingen/:uuid');
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}}/verzendingen/:uuid'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/verzendingen/:uuid';
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}}/verzendingen/:uuid"]
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}}/verzendingen/:uuid" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/verzendingen/:uuid",
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}}/verzendingen/:uuid');
echo $response->getBody();
setUrl('{{baseUrl}}/verzendingen/:uuid');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/verzendingen/:uuid');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/verzendingen/:uuid' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/verzendingen/:uuid' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/verzendingen/:uuid")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/verzendingen/:uuid"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/verzendingen/:uuid"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/verzendingen/:uuid")
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/verzendingen/:uuid') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/verzendingen/:uuid";
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}}/verzendingen/:uuid
http GET {{baseUrl}}/verzendingen/:uuid
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/verzendingen/:uuid
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/verzendingen/:uuid")! 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
Maak een VERZENDING aan.
{{baseUrl}}/verzendingen
HEADERS
Content-Type
BODY json
{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/verzendingen");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/verzendingen" {:content-type :json
:form-params {:betrokkene ""
:informatieobject ""
:aardRelatie ""
:toelichting ""
:ontvangstdatum ""
:verzenddatum ""
:contactPersoon ""
:contactpersoonnaam ""
:binnenlandsCorrespondentieadres ""
:buitenlandsCorrespondentieadres ""
:correspondentiePostadres ""
:faxnummer ""
:emailadres ""
:mijnOverheid false
:telefoonnummer ""}})
require "http/client"
url = "{{baseUrl}}/verzendingen"
headers = HTTP::Headers{
"content-type" => ""
}
reqBody = "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\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}}/verzendingen"),
Content = new StringContent("{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\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}}/verzendingen");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
request.AddParameter("", "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/verzendingen"
payload := strings.NewReader("{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/verzendingen HTTP/1.1
Content-Type:
Host: example.com
Content-Length: 392
{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/verzendingen")
.setHeader("content-type", "")
.setBody("{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/verzendingen"))
.header("content-type", "")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\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 \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/verzendingen")
.post(body)
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/verzendingen")
.header("content-type", "")
.body("{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}")
.asString();
const data = JSON.stringify({
betrokkene: '',
informatieobject: '',
aardRelatie: '',
toelichting: '',
ontvangstdatum: '',
verzenddatum: '',
contactPersoon: '',
contactpersoonnaam: '',
binnenlandsCorrespondentieadres: '',
buitenlandsCorrespondentieadres: '',
correspondentiePostadres: '',
faxnummer: '',
emailadres: '',
mijnOverheid: false,
telefoonnummer: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/verzendingen');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/verzendingen',
headers: {'content-type': ''},
data: {
betrokkene: '',
informatieobject: '',
aardRelatie: '',
toelichting: '',
ontvangstdatum: '',
verzenddatum: '',
contactPersoon: '',
contactpersoonnaam: '',
binnenlandsCorrespondentieadres: '',
buitenlandsCorrespondentieadres: '',
correspondentiePostadres: '',
faxnummer: '',
emailadres: '',
mijnOverheid: false,
telefoonnummer: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/verzendingen';
const options = {
method: 'POST',
headers: {'content-type': ''},
body: '{"betrokkene":"","informatieobject":"","aardRelatie":"","toelichting":"","ontvangstdatum":"","verzenddatum":"","contactPersoon":"","contactpersoonnaam":"","binnenlandsCorrespondentieadres":"","buitenlandsCorrespondentieadres":"","correspondentiePostadres":"","faxnummer":"","emailadres":"","mijnOverheid":false,"telefoonnummer":""}'
};
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}}/verzendingen',
method: 'POST',
headers: {
'content-type': ''
},
processData: false,
data: '{\n "betrokkene": "",\n "informatieobject": "",\n "aardRelatie": "",\n "toelichting": "",\n "ontvangstdatum": "",\n "verzenddatum": "",\n "contactPersoon": "",\n "contactpersoonnaam": "",\n "binnenlandsCorrespondentieadres": "",\n "buitenlandsCorrespondentieadres": "",\n "correspondentiePostadres": "",\n "faxnummer": "",\n "emailadres": "",\n "mijnOverheid": false,\n "telefoonnummer": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/verzendingen")
.post(body)
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/verzendingen',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
betrokkene: '',
informatieobject: '',
aardRelatie: '',
toelichting: '',
ontvangstdatum: '',
verzenddatum: '',
contactPersoon: '',
contactpersoonnaam: '',
binnenlandsCorrespondentieadres: '',
buitenlandsCorrespondentieadres: '',
correspondentiePostadres: '',
faxnummer: '',
emailadres: '',
mijnOverheid: false,
telefoonnummer: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/verzendingen',
headers: {'content-type': ''},
body: {
betrokkene: '',
informatieobject: '',
aardRelatie: '',
toelichting: '',
ontvangstdatum: '',
verzenddatum: '',
contactPersoon: '',
contactpersoonnaam: '',
binnenlandsCorrespondentieadres: '',
buitenlandsCorrespondentieadres: '',
correspondentiePostadres: '',
faxnummer: '',
emailadres: '',
mijnOverheid: false,
telefoonnummer: ''
},
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}}/verzendingen');
req.headers({
'content-type': ''
});
req.type('json');
req.send({
betrokkene: '',
informatieobject: '',
aardRelatie: '',
toelichting: '',
ontvangstdatum: '',
verzenddatum: '',
contactPersoon: '',
contactpersoonnaam: '',
binnenlandsCorrespondentieadres: '',
buitenlandsCorrespondentieadres: '',
correspondentiePostadres: '',
faxnummer: '',
emailadres: '',
mijnOverheid: false,
telefoonnummer: ''
});
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}}/verzendingen',
headers: {'content-type': ''},
data: {
betrokkene: '',
informatieobject: '',
aardRelatie: '',
toelichting: '',
ontvangstdatum: '',
verzenddatum: '',
contactPersoon: '',
contactpersoonnaam: '',
binnenlandsCorrespondentieadres: '',
buitenlandsCorrespondentieadres: '',
correspondentiePostadres: '',
faxnummer: '',
emailadres: '',
mijnOverheid: false,
telefoonnummer: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/verzendingen';
const options = {
method: 'POST',
headers: {'content-type': ''},
body: '{"betrokkene":"","informatieobject":"","aardRelatie":"","toelichting":"","ontvangstdatum":"","verzenddatum":"","contactPersoon":"","contactpersoonnaam":"","binnenlandsCorrespondentieadres":"","buitenlandsCorrespondentieadres":"","correspondentiePostadres":"","faxnummer":"","emailadres":"","mijnOverheid":false,"telefoonnummer":""}'
};
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": @"" };
NSDictionary *parameters = @{ @"betrokkene": @"",
@"informatieobject": @"",
@"aardRelatie": @"",
@"toelichting": @"",
@"ontvangstdatum": @"",
@"verzenddatum": @"",
@"contactPersoon": @"",
@"contactpersoonnaam": @"",
@"binnenlandsCorrespondentieadres": @"",
@"buitenlandsCorrespondentieadres": @"",
@"correspondentiePostadres": @"",
@"faxnummer": @"",
@"emailadres": @"",
@"mijnOverheid": @NO,
@"telefoonnummer": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/verzendingen"]
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}}/verzendingen" in
let headers = Header.add (Header.init ()) "content-type" "" in
let body = Cohttp_lwt_body.of_string "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/verzendingen",
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([
'betrokkene' => '',
'informatieobject' => '',
'aardRelatie' => '',
'toelichting' => '',
'ontvangstdatum' => '',
'verzenddatum' => '',
'contactPersoon' => '',
'contactpersoonnaam' => '',
'binnenlandsCorrespondentieadres' => '',
'buitenlandsCorrespondentieadres' => '',
'correspondentiePostadres' => '',
'faxnummer' => '',
'emailadres' => '',
'mijnOverheid' => null,
'telefoonnummer' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/verzendingen', [
'body' => '{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}',
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/verzendingen');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => ''
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'betrokkene' => '',
'informatieobject' => '',
'aardRelatie' => '',
'toelichting' => '',
'ontvangstdatum' => '',
'verzenddatum' => '',
'contactPersoon' => '',
'contactpersoonnaam' => '',
'binnenlandsCorrespondentieadres' => '',
'buitenlandsCorrespondentieadres' => '',
'correspondentiePostadres' => '',
'faxnummer' => '',
'emailadres' => '',
'mijnOverheid' => null,
'telefoonnummer' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'betrokkene' => '',
'informatieobject' => '',
'aardRelatie' => '',
'toelichting' => '',
'ontvangstdatum' => '',
'verzenddatum' => '',
'contactPersoon' => '',
'contactpersoonnaam' => '',
'binnenlandsCorrespondentieadres' => '',
'buitenlandsCorrespondentieadres' => '',
'correspondentiePostadres' => '',
'faxnummer' => '',
'emailadres' => '',
'mijnOverheid' => null,
'telefoonnummer' => ''
]));
$request->setRequestUrl('{{baseUrl}}/verzendingen');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/verzendingen' -Method POST -Headers $headers -ContentType '' -Body '{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/verzendingen' -Method POST -Headers $headers -ContentType '' -Body '{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}"
headers = { 'content-type': "" }
conn.request("POST", "/baseUrl/verzendingen", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/verzendingen"
payload = {
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": False,
"telefoonnummer": ""
}
headers = {"content-type": ""}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/verzendingen"
payload <- "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\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}}/verzendingen")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = ''
request.body = "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/verzendingen') do |req|
req.body = "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/verzendingen";
let payload = json!({
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/verzendingen \
--header 'content-type: ' \
--data '{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}'
echo '{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}' | \
http POST {{baseUrl}}/verzendingen \
content-type:''
wget --quiet \
--method POST \
--header 'content-type: ' \
--body-data '{\n "betrokkene": "",\n "informatieobject": "",\n "aardRelatie": "",\n "toelichting": "",\n "ontvangstdatum": "",\n "verzenddatum": "",\n "contactPersoon": "",\n "contactpersoonnaam": "",\n "binnenlandsCorrespondentieadres": "",\n "buitenlandsCorrespondentieadres": "",\n "correspondentiePostadres": "",\n "faxnummer": "",\n "emailadres": "",\n "mijnOverheid": false,\n "telefoonnummer": ""\n}' \
--output-document \
- {{baseUrl}}/verzendingen
import Foundation
let headers = ["content-type": ""]
let parameters = [
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/verzendingen")! 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
Verwijder een VERZENDING
{{baseUrl}}/verzendingen/:uuid
QUERY PARAMS
uuid
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/verzendingen/:uuid");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/verzendingen/:uuid")
require "http/client"
url = "{{baseUrl}}/verzendingen/:uuid"
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}}/verzendingen/:uuid"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/verzendingen/:uuid");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/verzendingen/:uuid"
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/verzendingen/:uuid HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/verzendingen/:uuid")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/verzendingen/:uuid"))
.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}}/verzendingen/:uuid")
.delete(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/verzendingen/:uuid")
.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}}/verzendingen/:uuid');
xhr.send(data);
import axios from 'axios';
const options = {method: 'DELETE', url: '{{baseUrl}}/verzendingen/:uuid'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/verzendingen/:uuid';
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}}/verzendingen/:uuid',
method: 'DELETE',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/verzendingen/:uuid")
.delete(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/verzendingen/:uuid',
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}}/verzendingen/:uuid'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/verzendingen/:uuid');
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}}/verzendingen/:uuid'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/verzendingen/:uuid';
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}}/verzendingen/:uuid"]
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}}/verzendingen/:uuid" in
Client.call `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/verzendingen/:uuid",
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}}/verzendingen/:uuid');
echo $response->getBody();
setUrl('{{baseUrl}}/verzendingen/:uuid');
$request->setMethod(HTTP_METH_DELETE);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/verzendingen/:uuid');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/verzendingen/:uuid' -Method DELETE
$response = Invoke-RestMethod -Uri '{{baseUrl}}/verzendingen/:uuid' -Method DELETE
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("DELETE", "/baseUrl/verzendingen/:uuid")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/verzendingen/:uuid"
response = requests.delete(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/verzendingen/:uuid"
response <- VERB("DELETE", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/verzendingen/:uuid")
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/verzendingen/:uuid') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/verzendingen/:uuid";
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}}/verzendingen/:uuid
http DELETE {{baseUrl}}/verzendingen/:uuid
wget --quiet \
--method DELETE \
--output-document \
- {{baseUrl}}/verzendingen/:uuid
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/verzendingen/:uuid")! 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
Werk een VERZENDING in zijn geheel bij.
{{baseUrl}}/verzendingen/:uuid
HEADERS
Content-Type
QUERY PARAMS
uuid
BODY json
{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/verzendingen/:uuid");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/verzendingen/:uuid" {:content-type :json
:form-params {:betrokkene ""
:informatieobject ""
:aardRelatie ""
:toelichting ""
:ontvangstdatum ""
:verzenddatum ""
:contactPersoon ""
:contactpersoonnaam ""
:binnenlandsCorrespondentieadres ""
:buitenlandsCorrespondentieadres ""
:correspondentiePostadres ""
:faxnummer ""
:emailadres ""
:mijnOverheid false
:telefoonnummer ""}})
require "http/client"
url = "{{baseUrl}}/verzendingen/:uuid"
headers = HTTP::Headers{
"content-type" => ""
}
reqBody = "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\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}}/verzendingen/:uuid"),
Content = new StringContent("{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\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}}/verzendingen/:uuid");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "");
request.AddParameter("", "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/verzendingen/:uuid"
payload := strings.NewReader("{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/verzendingen/:uuid HTTP/1.1
Content-Type:
Host: example.com
Content-Length: 392
{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/verzendingen/:uuid")
.setHeader("content-type", "")
.setBody("{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/verzendingen/:uuid"))
.header("content-type", "")
.method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\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 \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/verzendingen/:uuid")
.put(body)
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/verzendingen/:uuid")
.header("content-type", "")
.body("{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}")
.asString();
const data = JSON.stringify({
betrokkene: '',
informatieobject: '',
aardRelatie: '',
toelichting: '',
ontvangstdatum: '',
verzenddatum: '',
contactPersoon: '',
contactpersoonnaam: '',
binnenlandsCorrespondentieadres: '',
buitenlandsCorrespondentieadres: '',
correspondentiePostadres: '',
faxnummer: '',
emailadres: '',
mijnOverheid: false,
telefoonnummer: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/verzendingen/:uuid');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/verzendingen/:uuid',
headers: {'content-type': ''},
data: {
betrokkene: '',
informatieobject: '',
aardRelatie: '',
toelichting: '',
ontvangstdatum: '',
verzenddatum: '',
contactPersoon: '',
contactpersoonnaam: '',
binnenlandsCorrespondentieadres: '',
buitenlandsCorrespondentieadres: '',
correspondentiePostadres: '',
faxnummer: '',
emailadres: '',
mijnOverheid: false,
telefoonnummer: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/verzendingen/:uuid';
const options = {
method: 'PUT',
headers: {'content-type': ''},
body: '{"betrokkene":"","informatieobject":"","aardRelatie":"","toelichting":"","ontvangstdatum":"","verzenddatum":"","contactPersoon":"","contactpersoonnaam":"","binnenlandsCorrespondentieadres":"","buitenlandsCorrespondentieadres":"","correspondentiePostadres":"","faxnummer":"","emailadres":"","mijnOverheid":false,"telefoonnummer":""}'
};
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}}/verzendingen/:uuid',
method: 'PUT',
headers: {
'content-type': ''
},
processData: false,
data: '{\n "betrokkene": "",\n "informatieobject": "",\n "aardRelatie": "",\n "toelichting": "",\n "ontvangstdatum": "",\n "verzenddatum": "",\n "contactPersoon": "",\n "contactpersoonnaam": "",\n "binnenlandsCorrespondentieadres": "",\n "buitenlandsCorrespondentieadres": "",\n "correspondentiePostadres": "",\n "faxnummer": "",\n "emailadres": "",\n "mijnOverheid": false,\n "telefoonnummer": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/verzendingen/:uuid")
.put(body)
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/verzendingen/:uuid',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
betrokkene: '',
informatieobject: '',
aardRelatie: '',
toelichting: '',
ontvangstdatum: '',
verzenddatum: '',
contactPersoon: '',
contactpersoonnaam: '',
binnenlandsCorrespondentieadres: '',
buitenlandsCorrespondentieadres: '',
correspondentiePostadres: '',
faxnummer: '',
emailadres: '',
mijnOverheid: false,
telefoonnummer: ''
}));
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/verzendingen/:uuid',
headers: {'content-type': ''},
body: {
betrokkene: '',
informatieobject: '',
aardRelatie: '',
toelichting: '',
ontvangstdatum: '',
verzenddatum: '',
contactPersoon: '',
contactpersoonnaam: '',
binnenlandsCorrespondentieadres: '',
buitenlandsCorrespondentieadres: '',
correspondentiePostadres: '',
faxnummer: '',
emailadres: '',
mijnOverheid: false,
telefoonnummer: ''
},
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}}/verzendingen/:uuid');
req.headers({
'content-type': ''
});
req.type('json');
req.send({
betrokkene: '',
informatieobject: '',
aardRelatie: '',
toelichting: '',
ontvangstdatum: '',
verzenddatum: '',
contactPersoon: '',
contactpersoonnaam: '',
binnenlandsCorrespondentieadres: '',
buitenlandsCorrespondentieadres: '',
correspondentiePostadres: '',
faxnummer: '',
emailadres: '',
mijnOverheid: false,
telefoonnummer: ''
});
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}}/verzendingen/:uuid',
headers: {'content-type': ''},
data: {
betrokkene: '',
informatieobject: '',
aardRelatie: '',
toelichting: '',
ontvangstdatum: '',
verzenddatum: '',
contactPersoon: '',
contactpersoonnaam: '',
binnenlandsCorrespondentieadres: '',
buitenlandsCorrespondentieadres: '',
correspondentiePostadres: '',
faxnummer: '',
emailadres: '',
mijnOverheid: false,
telefoonnummer: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/verzendingen/:uuid';
const options = {
method: 'PUT',
headers: {'content-type': ''},
body: '{"betrokkene":"","informatieobject":"","aardRelatie":"","toelichting":"","ontvangstdatum":"","verzenddatum":"","contactPersoon":"","contactpersoonnaam":"","binnenlandsCorrespondentieadres":"","buitenlandsCorrespondentieadres":"","correspondentiePostadres":"","faxnummer":"","emailadres":"","mijnOverheid":false,"telefoonnummer":""}'
};
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": @"" };
NSDictionary *parameters = @{ @"betrokkene": @"",
@"informatieobject": @"",
@"aardRelatie": @"",
@"toelichting": @"",
@"ontvangstdatum": @"",
@"verzenddatum": @"",
@"contactPersoon": @"",
@"contactpersoonnaam": @"",
@"binnenlandsCorrespondentieadres": @"",
@"buitenlandsCorrespondentieadres": @"",
@"correspondentiePostadres": @"",
@"faxnummer": @"",
@"emailadres": @"",
@"mijnOverheid": @NO,
@"telefoonnummer": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/verzendingen/:uuid"]
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}}/verzendingen/:uuid" in
let headers = Header.add (Header.init ()) "content-type" "" in
let body = Cohttp_lwt_body.of_string "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}" in
Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/verzendingen/:uuid",
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([
'betrokkene' => '',
'informatieobject' => '',
'aardRelatie' => '',
'toelichting' => '',
'ontvangstdatum' => '',
'verzenddatum' => '',
'contactPersoon' => '',
'contactpersoonnaam' => '',
'binnenlandsCorrespondentieadres' => '',
'buitenlandsCorrespondentieadres' => '',
'correspondentiePostadres' => '',
'faxnummer' => '',
'emailadres' => '',
'mijnOverheid' => null,
'telefoonnummer' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/verzendingen/:uuid', [
'body' => '{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}',
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/verzendingen/:uuid');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'content-type' => ''
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'betrokkene' => '',
'informatieobject' => '',
'aardRelatie' => '',
'toelichting' => '',
'ontvangstdatum' => '',
'verzenddatum' => '',
'contactPersoon' => '',
'contactpersoonnaam' => '',
'binnenlandsCorrespondentieadres' => '',
'buitenlandsCorrespondentieadres' => '',
'correspondentiePostadres' => '',
'faxnummer' => '',
'emailadres' => '',
'mijnOverheid' => null,
'telefoonnummer' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'betrokkene' => '',
'informatieobject' => '',
'aardRelatie' => '',
'toelichting' => '',
'ontvangstdatum' => '',
'verzenddatum' => '',
'contactPersoon' => '',
'contactpersoonnaam' => '',
'binnenlandsCorrespondentieadres' => '',
'buitenlandsCorrespondentieadres' => '',
'correspondentiePostadres' => '',
'faxnummer' => '',
'emailadres' => '',
'mijnOverheid' => null,
'telefoonnummer' => ''
]));
$request->setRequestUrl('{{baseUrl}}/verzendingen/:uuid');
$request->setRequestMethod('PUT');
$request->setBody($body);
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/verzendingen/:uuid' -Method PUT -Headers $headers -ContentType '' -Body '{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/verzendingen/:uuid' -Method PUT -Headers $headers -ContentType '' -Body '{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}"
headers = { 'content-type': "" }
conn.request("PUT", "/baseUrl/verzendingen/:uuid", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/verzendingen/:uuid"
payload = {
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": False,
"telefoonnummer": ""
}
headers = {"content-type": ""}
response = requests.put(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/verzendingen/:uuid"
payload <- "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\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}}/verzendingen/:uuid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["content-type"] = ''
request.body = "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/verzendingen/:uuid') do |req|
req.body = "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\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}}/verzendingen/:uuid";
let payload = json!({
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/verzendingen/:uuid \
--header 'content-type: ' \
--data '{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}'
echo '{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}' | \
http PUT {{baseUrl}}/verzendingen/:uuid \
content-type:''
wget --quiet \
--method PUT \
--header 'content-type: ' \
--body-data '{\n "betrokkene": "",\n "informatieobject": "",\n "aardRelatie": "",\n "toelichting": "",\n "ontvangstdatum": "",\n "verzenddatum": "",\n "contactPersoon": "",\n "contactpersoonnaam": "",\n "binnenlandsCorrespondentieadres": "",\n "buitenlandsCorrespondentieadres": "",\n "correspondentiePostadres": "",\n "faxnummer": "",\n "emailadres": "",\n "mijnOverheid": false,\n "telefoonnummer": ""\n}' \
--output-document \
- {{baseUrl}}/verzendingen/:uuid
import Foundation
let headers = ["content-type": ""]
let parameters = [
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/verzendingen/:uuid")! 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()
PATCH
Werk een VERZENDING relatie deels bij.
{{baseUrl}}/verzendingen/:uuid
HEADERS
Content-Type
QUERY PARAMS
uuid
BODY json
{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/verzendingen/:uuid");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/patch "{{baseUrl}}/verzendingen/:uuid" {:content-type :json
:form-params {:betrokkene ""
:informatieobject ""
:aardRelatie ""
:toelichting ""
:ontvangstdatum ""
:verzenddatum ""
:contactPersoon ""
:contactpersoonnaam ""
:binnenlandsCorrespondentieadres ""
:buitenlandsCorrespondentieadres ""
:correspondentiePostadres ""
:faxnummer ""
:emailadres ""
:mijnOverheid false
:telefoonnummer ""}})
require "http/client"
url = "{{baseUrl}}/verzendingen/:uuid"
headers = HTTP::Headers{
"content-type" => ""
}
reqBody = "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}"
response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Patch,
RequestUri = new Uri("{{baseUrl}}/verzendingen/:uuid"),
Content = new StringContent("{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\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}}/verzendingen/:uuid");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "");
request.AddParameter("", "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/verzendingen/:uuid"
payload := strings.NewReader("{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("content-type", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PATCH /baseUrl/verzendingen/:uuid HTTP/1.1
Content-Type:
Host: example.com
Content-Length: 392
{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/verzendingen/:uuid")
.setHeader("content-type", "")
.setBody("{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/verzendingen/:uuid"))
.header("content-type", "")
.method("PATCH", HttpRequest.BodyPublishers.ofString("{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\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 \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/verzendingen/:uuid")
.patch(body)
.addHeader("content-type", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/verzendingen/:uuid")
.header("content-type", "")
.body("{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}")
.asString();
const data = JSON.stringify({
betrokkene: '',
informatieobject: '',
aardRelatie: '',
toelichting: '',
ontvangstdatum: '',
verzenddatum: '',
contactPersoon: '',
contactpersoonnaam: '',
binnenlandsCorrespondentieadres: '',
buitenlandsCorrespondentieadres: '',
correspondentiePostadres: '',
faxnummer: '',
emailadres: '',
mijnOverheid: false,
telefoonnummer: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PATCH', '{{baseUrl}}/verzendingen/:uuid');
xhr.setRequestHeader('content-type', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PATCH',
url: '{{baseUrl}}/verzendingen/:uuid',
headers: {'content-type': ''},
data: {
betrokkene: '',
informatieobject: '',
aardRelatie: '',
toelichting: '',
ontvangstdatum: '',
verzenddatum: '',
contactPersoon: '',
contactpersoonnaam: '',
binnenlandsCorrespondentieadres: '',
buitenlandsCorrespondentieadres: '',
correspondentiePostadres: '',
faxnummer: '',
emailadres: '',
mijnOverheid: false,
telefoonnummer: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/verzendingen/:uuid';
const options = {
method: 'PATCH',
headers: {'content-type': ''},
body: '{"betrokkene":"","informatieobject":"","aardRelatie":"","toelichting":"","ontvangstdatum":"","verzenddatum":"","contactPersoon":"","contactpersoonnaam":"","binnenlandsCorrespondentieadres":"","buitenlandsCorrespondentieadres":"","correspondentiePostadres":"","faxnummer":"","emailadres":"","mijnOverheid":false,"telefoonnummer":""}'
};
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}}/verzendingen/:uuid',
method: 'PATCH',
headers: {
'content-type': ''
},
processData: false,
data: '{\n "betrokkene": "",\n "informatieobject": "",\n "aardRelatie": "",\n "toelichting": "",\n "ontvangstdatum": "",\n "verzenddatum": "",\n "contactPersoon": "",\n "contactpersoonnaam": "",\n "binnenlandsCorrespondentieadres": "",\n "buitenlandsCorrespondentieadres": "",\n "correspondentiePostadres": "",\n "faxnummer": "",\n "emailadres": "",\n "mijnOverheid": false,\n "telefoonnummer": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/verzendingen/:uuid")
.patch(body)
.addHeader("content-type", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PATCH',
hostname: 'example.com',
port: null,
path: '/baseUrl/verzendingen/:uuid',
headers: {
'content-type': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
betrokkene: '',
informatieobject: '',
aardRelatie: '',
toelichting: '',
ontvangstdatum: '',
verzenddatum: '',
contactPersoon: '',
contactpersoonnaam: '',
binnenlandsCorrespondentieadres: '',
buitenlandsCorrespondentieadres: '',
correspondentiePostadres: '',
faxnummer: '',
emailadres: '',
mijnOverheid: false,
telefoonnummer: ''
}));
req.end();
const request = require('request');
const options = {
method: 'PATCH',
url: '{{baseUrl}}/verzendingen/:uuid',
headers: {'content-type': ''},
body: {
betrokkene: '',
informatieobject: '',
aardRelatie: '',
toelichting: '',
ontvangstdatum: '',
verzenddatum: '',
contactPersoon: '',
contactpersoonnaam: '',
binnenlandsCorrespondentieadres: '',
buitenlandsCorrespondentieadres: '',
correspondentiePostadres: '',
faxnummer: '',
emailadres: '',
mijnOverheid: false,
telefoonnummer: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PATCH', '{{baseUrl}}/verzendingen/:uuid');
req.headers({
'content-type': ''
});
req.type('json');
req.send({
betrokkene: '',
informatieobject: '',
aardRelatie: '',
toelichting: '',
ontvangstdatum: '',
verzenddatum: '',
contactPersoon: '',
contactpersoonnaam: '',
binnenlandsCorrespondentieadres: '',
buitenlandsCorrespondentieadres: '',
correspondentiePostadres: '',
faxnummer: '',
emailadres: '',
mijnOverheid: false,
telefoonnummer: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PATCH',
url: '{{baseUrl}}/verzendingen/:uuid',
headers: {'content-type': ''},
data: {
betrokkene: '',
informatieobject: '',
aardRelatie: '',
toelichting: '',
ontvangstdatum: '',
verzenddatum: '',
contactPersoon: '',
contactpersoonnaam: '',
binnenlandsCorrespondentieadres: '',
buitenlandsCorrespondentieadres: '',
correspondentiePostadres: '',
faxnummer: '',
emailadres: '',
mijnOverheid: false,
telefoonnummer: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/verzendingen/:uuid';
const options = {
method: 'PATCH',
headers: {'content-type': ''},
body: '{"betrokkene":"","informatieobject":"","aardRelatie":"","toelichting":"","ontvangstdatum":"","verzenddatum":"","contactPersoon":"","contactpersoonnaam":"","binnenlandsCorrespondentieadres":"","buitenlandsCorrespondentieadres":"","correspondentiePostadres":"","faxnummer":"","emailadres":"","mijnOverheid":false,"telefoonnummer":""}'
};
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": @"" };
NSDictionary *parameters = @{ @"betrokkene": @"",
@"informatieobject": @"",
@"aardRelatie": @"",
@"toelichting": @"",
@"ontvangstdatum": @"",
@"verzenddatum": @"",
@"contactPersoon": @"",
@"contactpersoonnaam": @"",
@"binnenlandsCorrespondentieadres": @"",
@"buitenlandsCorrespondentieadres": @"",
@"correspondentiePostadres": @"",
@"faxnummer": @"",
@"emailadres": @"",
@"mijnOverheid": @NO,
@"telefoonnummer": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/verzendingen/:uuid"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[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}}/verzendingen/:uuid" in
let headers = Header.add (Header.init ()) "content-type" "" in
let body = Cohttp_lwt_body.of_string "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}" in
Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/verzendingen/:uuid",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'betrokkene' => '',
'informatieobject' => '',
'aardRelatie' => '',
'toelichting' => '',
'ontvangstdatum' => '',
'verzenddatum' => '',
'contactPersoon' => '',
'contactpersoonnaam' => '',
'binnenlandsCorrespondentieadres' => '',
'buitenlandsCorrespondentieadres' => '',
'correspondentiePostadres' => '',
'faxnummer' => '',
'emailadres' => '',
'mijnOverheid' => null,
'telefoonnummer' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PATCH', '{{baseUrl}}/verzendingen/:uuid', [
'body' => '{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}',
'headers' => [
'content-type' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/verzendingen/:uuid');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);
$request->setHeaders([
'content-type' => ''
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'betrokkene' => '',
'informatieobject' => '',
'aardRelatie' => '',
'toelichting' => '',
'ontvangstdatum' => '',
'verzenddatum' => '',
'contactPersoon' => '',
'contactpersoonnaam' => '',
'binnenlandsCorrespondentieadres' => '',
'buitenlandsCorrespondentieadres' => '',
'correspondentiePostadres' => '',
'faxnummer' => '',
'emailadres' => '',
'mijnOverheid' => null,
'telefoonnummer' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'betrokkene' => '',
'informatieobject' => '',
'aardRelatie' => '',
'toelichting' => '',
'ontvangstdatum' => '',
'verzenddatum' => '',
'contactPersoon' => '',
'contactpersoonnaam' => '',
'binnenlandsCorrespondentieadres' => '',
'buitenlandsCorrespondentieadres' => '',
'correspondentiePostadres' => '',
'faxnummer' => '',
'emailadres' => '',
'mijnOverheid' => null,
'telefoonnummer' => ''
]));
$request->setRequestUrl('{{baseUrl}}/verzendingen/:uuid');
$request->setRequestMethod('PATCH');
$request->setBody($body);
$request->setHeaders([
'content-type' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/verzendingen/:uuid' -Method PATCH -Headers $headers -ContentType '' -Body '{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/verzendingen/:uuid' -Method PATCH -Headers $headers -ContentType '' -Body '{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}"
headers = { 'content-type': "" }
conn.request("PATCH", "/baseUrl/verzendingen/:uuid", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/verzendingen/:uuid"
payload = {
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": False,
"telefoonnummer": ""
}
headers = {"content-type": ""}
response = requests.patch(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/verzendingen/:uuid"
payload <- "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}"
encode <- "json"
response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/verzendingen/:uuid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["content-type"] = ''
request.body = "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.patch('/baseUrl/verzendingen/:uuid') do |req|
req.body = "{\n \"betrokkene\": \"\",\n \"informatieobject\": \"\",\n \"aardRelatie\": \"\",\n \"toelichting\": \"\",\n \"ontvangstdatum\": \"\",\n \"verzenddatum\": \"\",\n \"contactPersoon\": \"\",\n \"contactpersoonnaam\": \"\",\n \"binnenlandsCorrespondentieadres\": \"\",\n \"buitenlandsCorrespondentieadres\": \"\",\n \"correspondentiePostadres\": \"\",\n \"faxnummer\": \"\",\n \"emailadres\": \"\",\n \"mijnOverheid\": false,\n \"telefoonnummer\": \"\"\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}}/verzendingen/:uuid";
let payload = json!({
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PATCH \
--url {{baseUrl}}/verzendingen/:uuid \
--header 'content-type: ' \
--data '{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}'
echo '{
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
}' | \
http PATCH {{baseUrl}}/verzendingen/:uuid \
content-type:''
wget --quiet \
--method PATCH \
--header 'content-type: ' \
--body-data '{\n "betrokkene": "",\n "informatieobject": "",\n "aardRelatie": "",\n "toelichting": "",\n "ontvangstdatum": "",\n "verzenddatum": "",\n "contactPersoon": "",\n "contactpersoonnaam": "",\n "binnenlandsCorrespondentieadres": "",\n "buitenlandsCorrespondentieadres": "",\n "correspondentiePostadres": "",\n "faxnummer": "",\n "emailadres": "",\n "mijnOverheid": false,\n "telefoonnummer": ""\n}' \
--output-document \
- {{baseUrl}}/verzendingen/:uuid
import Foundation
let headers = ["content-type": ""]
let parameters = [
"betrokkene": "",
"informatieobject": "",
"aardRelatie": "",
"toelichting": "",
"ontvangstdatum": "",
"verzenddatum": "",
"contactPersoon": "",
"contactpersoonnaam": "",
"binnenlandsCorrespondentieadres": "",
"buitenlandsCorrespondentieadres": "",
"correspondentiePostadres": "",
"faxnummer": "",
"emailadres": "",
"mijnOverheid": false,
"telefoonnummer": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/verzendingen/:uuid")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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()