Skip to content

Latest commit

 

History

History
58 lines (33 loc) · 1.24 KB

ServerApi.md

File metadata and controls

58 lines (33 loc) · 1.24 KB

ledger.ServerApi

All URIs are relative to http://localhost

Method HTTP request Description
getInfo GET /_info Show server information

getInfo

ConfigInfoResponse getInfo()

Example

import { ledger } from '@numaryhq/ledger-nodejs';
import * as fs from 'fs';

const configuration = ledger.createConfiguration();
const apiInstance = new ledger.ServerApi(configuration);

let body:any = {};

apiInstance.getInfo(body).then((data:any) => {
  console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));

Parameters

This endpoint does not need any parameter.

Return type

ConfigInfoResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

HTTP response details

Status code Description Response headers
200 OK -
0 Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]