Skip to content

Latest commit

 

History

History
100 lines (66 loc) · 2.59 KB

EvaluationApi.md

File metadata and controls

100 lines (66 loc) · 2.59 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

from __future__ import print_function
import time
import flagr
from flagr.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = flagr.EvaluationApi()
body = flagr.EvalContext() # EvalContext | evalution context

try:
    api_response = api_instance.post_evaluation(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EvaluationApi->post_evaluation: %s\n" % e)

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

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

post_evaluation_batch

EvaluationBatchResponse post_evaluation_batch(body)

Example

from __future__ import print_function
import time
import flagr
from flagr.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = flagr.EvaluationApi()
body = flagr.EvaluationBatchRequest() # EvaluationBatchRequest | evalution batch request

try:
    api_response = api_instance.post_evaluation_batch(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EvaluationApi->post_evaluation_batch: %s\n" % e)

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

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