Skip to content

Latest commit

 

History

History
98 lines (58 loc) · 1.95 KB

EvaluationApi.md

File metadata and controls

98 lines (58 loc) · 1.95 KB

Flagr::EvaluationApi

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

Method HTTP request Description
post_evaluation POST /evaluation
post_evaluation_batch POST /evaluation/batch

post_evaluation

EvalResult post_evaluation(body)

Example

# load the gem
require 'rbflagr'

api_instance = Flagr::EvaluationApi.new

body = Flagr::EvalContext.new # EvalContext | evalution context


begin
  result = api_instance.post_evaluation(body)
  p result
rescue Flagr::ApiError => e
  puts "Exception when calling EvaluationApi->post_evaluation: #{e}"
end

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

post_evaluation_batch

EvaluationBatchResponse post_evaluation_batch(body)

Example

# load the gem
require 'rbflagr'

api_instance = Flagr::EvaluationApi.new

body = Flagr::EvaluationBatchRequest.new # EvaluationBatchRequest | evalution batch request


begin
  result = api_instance.post_evaluation_batch(body)
  p result
rescue Flagr::ApiError => e
  puts "Exception when calling EvaluationApi->post_evaluation_batch: #{e}"
end

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