diff --git a/mint.json b/mint.json index 31275a6..d51b0b1 100644 --- a/mint.json +++ b/mint.json @@ -313,7 +313,8 @@ "pages": [ "reference/openfeature/overview", "reference/openfeature/configuration", - "reference/openfeature/flag-evaluation" + "reference/openfeature/flag-evaluation", + "reference/openfeature/bulk-evaluation" ] }, { diff --git a/reference/openfeature/bulk-evaluation.mdx b/reference/openfeature/bulk-evaluation.mdx new file mode 100644 index 0000000..6ba59eb --- /dev/null +++ b/reference/openfeature/bulk-evaluation.mdx @@ -0,0 +1,22 @@ +--- +title: "Bulk Evaluation" +openapi: "POST /ofrep/v1/evaluate/flags" +--- + + + +```bash cURL +curl --request POST \ + --url https://try.flipt.io/ofrep/v1/evaluate/flags \ + --header 'Content-Type: application/json' \ + --header 'Accept: application/json' \ + --header 'X-Flipt-Namespace: ' \ + --data '{ + "context": { + "flags": ["flagKey1", "flagKey2", "flagKey3"], + "targetingKey": "targetingKey1" + }, +}' +``` + + diff --git a/reference/openfeature/flag-evaluation.mdx b/reference/openfeature/flag-evaluation.mdx index 57674a5..703ec8d 100644 --- a/reference/openfeature/flag-evaluation.mdx +++ b/reference/openfeature/flag-evaluation.mdx @@ -12,7 +12,9 @@ curl --request POST \ --header 'Accept: application/json' \ --header 'X-Flipt-Namespace: ' \ --data '{ - "context": {}, + "context": { + "targetingKey": "targetingKey1" + }, }' ``` diff --git a/reference/openfeature/overview.mdx b/reference/openfeature/overview.mdx index ef57519..5b2bbee 100644 --- a/reference/openfeature/overview.mdx +++ b/reference/openfeature/overview.mdx @@ -14,6 +14,7 @@ The OFREP protocol is implemented in the Flipt API. The following endpoints are - [Configuration](/reference/openfeature/configuration) - Supplies information about the remote flag management system to set up the OpenFeature SDK providers. - [Single Flag Evaluation](/reference/openfeature/flag-evaluation) - Called by the server providers to perform single flag evaluation. +- [Bulk Evaluation](/reference/openfeature/bulk-evaluation) - Called by the server providers to perform bulk evaluation of multiple flags. ## Providers