registrationsPost
Registers a new API Provider domain with API provider domain functions profiles.
/registrations
Usage and SDK Samples
curl -X POST \
-H "Accept: application/json,application/problem+json" \
-H "Content-Type: application/json" \
"https://example.com/api-provider-management/v1/registrations" \
-d '{
"apiProvFuncs" : [ {
"apiProvFuncId" : "apiProvFuncId",
"apiProvFuncInfo" : "apiProvFuncInfo",
"regInfo" : {
"apiProvCert" : "apiProvCert",
"apiProvPubKey" : "apiProvPubKey"
},
"apiProvFuncRole" : "AEF"
}, {
"apiProvFuncId" : "apiProvFuncId",
"apiProvFuncInfo" : "apiProvFuncInfo",
"regInfo" : {
"apiProvCert" : "apiProvCert",
"apiProvPubKey" : "apiProvPubKey"
},
"apiProvFuncRole" : "AEF"
} ],
"failReason" : "failReason",
"regSec" : "regSec",
"apiProvDomId" : "apiProvDomId",
"apiProvDomInfo" : "apiProvDomInfo",
"suppFeat" : "suppFeat"
}'
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();
APIProviderEnrolmentDetails aPIProviderEnrolmentDetails = ; // APIProviderEnrolmentDetails |
try {
APIProviderEnrolmentDetails result = apiInstance.registrationsPost(aPIProviderEnrolmentDetails);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#registrationsPost");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final APIProviderEnrolmentDetails aPIProviderEnrolmentDetails = new APIProviderEnrolmentDetails(); // APIProviderEnrolmentDetails |
try {
final result = await api_instance.registrationsPost(aPIProviderEnrolmentDetails);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->registrationsPost: $e\n');
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
APIProviderEnrolmentDetails aPIProviderEnrolmentDetails = ; // APIProviderEnrolmentDetails |
try {
APIProviderEnrolmentDetails result = apiInstance.registrationsPost(aPIProviderEnrolmentDetails);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#registrationsPost");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
APIProviderEnrolmentDetails *aPIProviderEnrolmentDetails = ; //
[apiInstance registrationsPostWith:aPIProviderEnrolmentDetails
completionHandler: ^(APIProviderEnrolmentDetails output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var CapifApiProviderManagementApi = require('capif_api_provider_management_api');
// Create an instance of the API class
var api = new CapifApiProviderManagementApi.DefaultApi()
var aPIProviderEnrolmentDetails = ; // {APIProviderEnrolmentDetails}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.registrationsPost(aPIProviderEnrolmentDetails, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class registrationsPostExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var aPIProviderEnrolmentDetails = new APIProviderEnrolmentDetails(); // APIProviderEnrolmentDetails |
try {
APIProviderEnrolmentDetails result = apiInstance.registrationsPost(aPIProviderEnrolmentDetails);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.registrationsPost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$aPIProviderEnrolmentDetails = ; // APIProviderEnrolmentDetails |
try {
$result = $api_instance->registrationsPost($aPIProviderEnrolmentDetails);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->registrationsPost: ', $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 $aPIProviderEnrolmentDetails = WWW::OPenAPIClient::Object::APIProviderEnrolmentDetails->new(); # APIProviderEnrolmentDetails |
eval {
my $result = $api_instance->registrationsPost(aPIProviderEnrolmentDetails => $aPIProviderEnrolmentDetails);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->registrationsPost: $@\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()
aPIProviderEnrolmentDetails = # APIProviderEnrolmentDetails |
try:
api_response = api_instance.registrations_post(aPIProviderEnrolmentDetails)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->registrationsPost: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let aPIProviderEnrolmentDetails = ; // APIProviderEnrolmentDetails
let mut context = DefaultApi::Context::default();
let result = client.registrationsPost(aPIProviderEnrolmentDetails, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Body parameters
Name | Description |
---|---|
aPIProviderEnrolmentDetails * |
Responses
Name | Type | Format | Description |
---|---|---|---|
Location | String | An alternative URI of the resource. |