Skip to content

Latest commit

 

History

History
98 lines (62 loc) · 2.14 KB

EvaluationApi.md

File metadata and controls

98 lines (62 loc) · 2.14 KB

Jsflagr.EvaluationApi

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

Method HTTP request Description
postEvaluation POST /evaluation
postEvaluationBatch POST /evaluation/batch

postEvaluation

EvalResult postEvaluation(body)

Example

var Jsflagr = require('jsflagr');

var apiInstance = new Jsflagr.EvaluationApi();

var body = new Jsflagr.EvalContext(); // EvalContext | evalution context


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

Parameters

Name Type Description Notes
body EvalContext evalution context

Return type

EvalResult

Authorization

No authorization required

HTTP request headers

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

postEvaluationBatch

EvaluationBatchResponse postEvaluationBatch(body)

Example

var Jsflagr = require('jsflagr');

var apiInstance = new Jsflagr.EvaluationApi();

var body = new Jsflagr.EvaluationBatchRequest(); // EvaluationBatchRequest | evalution batch request


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

Parameters

Name Type Description Notes
body EvaluationBatchRequest evalution batch request

Return type

EvaluationBatchResponse

Authorization

No authorization required

HTTP request headers

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