settingsGet
Query the database for configuration setting values.
/settings
Usage and SDK Samples
curl -X GET\
-H "Accept: application/vnd.intersystems.com.hs.patient-index.settings.v1+json"\
"<base url>/csp/healthshare/hspi/app/api/settings"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SettingsApi;
import java.io.File;
import java.util.*;
public class SettingsApiExample {
public static void main(String[] args) {
SettingsApi apiInstance = new SettingsApi();
try {
settings_collection result = apiInstance.settingsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SettingsApi#settingsGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.SettingsApi;
public class SettingsApiExample {
public static void main(String[] args) {
SettingsApi apiInstance = new SettingsApi();
try {
settings_collection result = apiInstance.settingsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SettingsApi#settingsGet");
e.printStackTrace();
}
}
}
SettingsApi *apiInstance = [[SettingsApi alloc] init];
[apiInstance settingsGetWithCompletionHandler:
^(settings_collection output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var HealthSharePatientIndexPublicApi = require('health_share_patient_index_public_api');
var api = new HealthSharePatientIndexPublicApi.SettingsApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.settingsGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class settingsGetExample
{
public void main()
{
var apiInstance = new SettingsApi();
try
{
settings_collection result = apiInstance.settingsGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SettingsApi.settingsGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiSettingsApi();
try {
$result = $api_instance->settingsGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SettingsApi->settingsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SettingsApi;
my $api_instance = WWW::SwaggerClient::SettingsApi->new();
eval {
my $result = $api_instance->settingsGet();
print Dumper($result);
};
if ($@) {
warn "Exception when calling SettingsApi->settingsGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.SettingsApi()
try:
api_response = api_instance.settings_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling SettingsApi->settingsGet: %s\n" % e)