acknowledgeUsingPOST
Accept new network parameters
NOTIMPLEMENTED For the node operator to acknowledge network map that new parameters were accepted for future update.
/ack-parameters
Usage and SDK Samples
curl -X POST "http://localhost:8080/network-map/ack-parameters"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CordaNetworkMapAPIApi;
import java.io.File;
import java.util.*;
public class CordaNetworkMapAPIApiExample {
public static void main(String[] args) {
CordaNetworkMapAPIApi apiInstance = new CordaNetworkMapAPIApi();
try {
apiInstance.acknowledgeUsingPOST();
} catch (ApiException e) {
System.err.println("Exception when calling CordaNetworkMapAPIApi#acknowledgeUsingPOST");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.CordaNetworkMapAPIApi;
public class CordaNetworkMapAPIApiExample {
public static void main(String[] args) {
CordaNetworkMapAPIApi apiInstance = new CordaNetworkMapAPIApi();
try {
apiInstance.acknowledgeUsingPOST();
} catch (ApiException e) {
System.err.println("Exception when calling CordaNetworkMapAPIApi#acknowledgeUsingPOST");
e.printStackTrace();
}
}
}
CordaNetworkMapAPIApi *apiInstance = [[CordaNetworkMapAPIApi alloc] init];
// Accept new network parameters
[apiInstance acknowledgeUsingPOSTWithCompletionHandler:
^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var CordaNetworkMap = require('corda_network_map');
var api = new CordaNetworkMap.CordaNetworkMapAPIApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.acknowledgeUsingPOST(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class acknowledgeUsingPOSTExample
{
public void main()
{
var apiInstance = new CordaNetworkMapAPIApi();
try
{
// Accept new network parameters
apiInstance.acknowledgeUsingPOST();
}
catch (Exception e)
{
Debug.Print("Exception when calling CordaNetworkMapAPIApi.acknowledgeUsingPOST: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new OpenAPITools\Client\Api\CordaNetworkMapAPIApi();
try {
$api_instance->acknowledgeUsingPOST();
} catch (Exception $e) {
echo 'Exception when calling CordaNetworkMapAPIApi->acknowledgeUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CordaNetworkMapAPIApi;
my $api_instance = WWW::OPenAPIClient::CordaNetworkMapAPIApi->new();
eval {
$api_instance->acknowledgeUsingPOST();
};
if ($@) {
warn "Exception when calling CordaNetworkMapAPIApi->acknowledgeUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = openapi_client.CordaNetworkMapAPIApi()
try:
# Accept new network parameters
api_instance.acknowledge_using_post()
except ApiException as e:
print("Exception when calling CordaNetworkMapAPIApi->acknowledgeUsingPOST: %s\n" % e)
extern crate CordaNetworkMapAPIApi;
pub fn main() {
let mut context = CordaNetworkMapAPIApi::Context::default();
let result = client.acknowledgeUsingPOST(&context).wait();
println!("{:?}", result);
}