Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 873 Bytes

HealthApi.md

File metadata and controls

49 lines (31 loc) · 873 Bytes

Jsflagr.HealthApi

All URIs are relative to http://localhost/api/v1

Method HTTP request Description
getHealth GET /health

getHealth

Health getHealth()

Check if Flagr is healthy

Example

var Jsflagr = require('jsflagr');

var apiInstance = new Jsflagr.HealthApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getHealth(callback);

Parameters

This endpoint does not need any parameter.

Return type

Health

Authorization

No authorization required

HTTP request headers

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