apfIdServiceApisGet
Retrieve all published APIs.
/{apfId}/service-apis
Usage and SDK Samples
curl -X GET \
-H "Accept: application/json,application/problem+json" \
"https://example.com/published-apis/v1/{apfId}/service-apis"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String apfId = apfId_example; // String |
try {
array[ServiceAPIDescription] result = apiInstance.apfIdServiceApisGet(apfId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#apfIdServiceApisGet");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final String apfId = new String(); // String |
try {
final result = await api_instance.apfIdServiceApisGet(apfId);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->apfIdServiceApisGet: $e\n');
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String apfId = apfId_example; // String |
try {
array[ServiceAPIDescription] result = apiInstance.apfIdServiceApisGet(apfId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#apfIdServiceApisGet");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *apfId = apfId_example; // (default to null)
[apiInstance apfIdServiceApisGetWith:apfId
completionHandler: ^(array[ServiceAPIDescription] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var CapifPublishServiceApi = require('capif_publish_service_api');
// Create an instance of the API class
var api = new CapifPublishServiceApi.DefaultApi()
var apfId = apfId_example; // {String}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.apfIdServiceApisGet(apfId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class apfIdServiceApisGetExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var apfId = apfId_example; // String | (default to null)
try {
array[ServiceAPIDescription] result = apiInstance.apfIdServiceApisGet(apfId);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.apfIdServiceApisGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$apfId = apfId_example; // String |
try {
$result = $api_instance->apfIdServiceApisGet($apfId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->apfIdServiceApisGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $apfId = apfId_example; # String |
eval {
my $result = $api_instance->apfIdServiceApisGet(apfId => $apfId);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->apfIdServiceApisGet: $@\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.DefaultApi()
apfId = apfId_example # String | (default to null)
try:
api_response = api_instance.apf_id_service_apis_get(apfId)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->apfIdServiceApisGet: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let apfId = apfId_example; // String
let mut context = DefaultApi::Context::default();
let result = client.apfIdServiceApisGet(apfId, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Path parameters
Name | Description |
---|---|
apfId* |
String
Required
|
Responses
Name | Type | Format | Description |
---|---|---|---|
Location | String | An alternative URI of the resource. |
Name | Type | Format | Description |
---|---|---|---|
Location | String | An alternative URI of the resource. |