Skip to content

Latest commit

 

History

History
140 lines (86 loc) · 2.87 KB

CertificateServiceApi.md

File metadata and controls

140 lines (86 loc) · 2.87 KB

MadanaApiclient.CertificateServiceApi

All URIs are relative to http://api.madana.io/rest

Method HTTP request Description
authenticateCertificate POST /certificates Issues certificates for logged-in users.
getCertificateByFingerprint GET /certificates/{fingerprint}
getRootCertificate GET /certificates/root

authenticateCertificate

JsonMDNCertificate authenticateCertificate(opts)

Issues certificates for logged-in users.

Issues certificates for logged-in users

Example

import MadanaApiclient from 'madana-apiclient';

let apiInstance = new MadanaApiclient.CertificateServiceApi();
let opts = {
  'body': new MadanaApiclient.JsonMDNData() // JsonMDNData | 
};
apiInstance.authenticateCertificate(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
body JsonMDNData [optional]

Return type

JsonMDNCertificate

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

getCertificateByFingerprint

File getCertificateByFingerprint(fingerprint)

Example

import MadanaApiclient from 'madana-apiclient';

let apiInstance = new MadanaApiclient.CertificateServiceApi();
let fingerprint = "fingerprint_example"; // String | 
apiInstance.getCertificateByFingerprint(fingerprint, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
fingerprint String

Return type

File

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getRootCertificate

File getRootCertificate()

Example

import MadanaApiclient from 'madana-apiclient';

let apiInstance = new MadanaApiclient.CertificateServiceApi();
apiInstance.getRootCertificate((error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

This endpoint does not need any parameter.

Return type

File

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json