\DistributionApi

December 4, 2018 ยท View on GitHub

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

MethodHTTP requestDescription
FindDistributionsGet /flags/{flagID}/segments/{segmentID}/distributions
PutDistributionsPut /flags/{flagID}/segments/{segmentID}/distributions

FindDistributions

[]Distribution FindDistributions(ctx, flagID, segmentID)

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
flagIDint64numeric ID of the flag
segmentIDint64numeric ID of the segment

Return type

[]Distribution

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]

PutDistributions

[]Distribution PutDistributions(ctx, flagID, segmentID, body)

replace the distribution with the new setting

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
flagIDint64numeric ID of the flag
segmentIDint64numeric ID of the segment
bodyPutDistributionsRequestarray of distributions

Return type

[]Distribution

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]