Skip to content

Latest commit

 

History

History
103 lines (70 loc) · 3.06 KB

EvaluationApi.md

File metadata and controls

103 lines (70 loc) · 3.06 KB

Flagr\Client\EvaluationApi

All URIs are relative to /api/v1

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

postEvaluation

\Flagr\Client\Model\EvalResult postEvaluation($body)

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Flagr\Client\Api\EvaluationApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$body = new \Flagr\Client\Model\EvalContext(); // \Flagr\Client\Model\EvalContext | evalution context

try {
    $result = $apiInstance->postEvaluation($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EvaluationApi->postEvaluation: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
body \Flagr\Client\Model\EvalContext evalution context

Return type

\Flagr\Client\Model\EvalResult

Authorization

No authorization required

HTTP request headers

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

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

postEvaluationBatch

\Flagr\Client\Model\EvaluationBatchResponse postEvaluationBatch($body)

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Flagr\Client\Api\EvaluationApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$body = new \Flagr\Client\Model\EvaluationBatchRequest(); // \Flagr\Client\Model\EvaluationBatchRequest | evalution batch request

try {
    $result = $apiInstance->postEvaluationBatch($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EvaluationApi->postEvaluationBatch: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
body \Flagr\Client\Model\EvaluationBatchRequest evalution batch request

Return type

\Flagr\Client\Model\EvaluationBatchResponse

Authorization

No authorization required

HTTP request headers

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

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