Skip to content

Latest commit

 

History

History
67 lines (40 loc) · 2.12 KB

DistributionApi.md

File metadata and controls

67 lines (40 loc) · 2.12 KB

\DistributionApi

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

Method HTTP request Description
FindDistributions Get /flags/{flagID}/segments/{segmentID}/distributions
PutDistributions Put /flags/{flagID}/segments/{segmentID}/distributions

FindDistributions

[]Distribution FindDistributions(ctx, flagID, segmentID)

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
flagID int64 numeric ID of the flag
segmentID int64 numeric 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

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
flagID int64 numeric ID of the flag
segmentID int64 numeric ID of the segment
body PutDistributionsRequest array 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]