From 484bb2bf6095d09871ceb61e854c93d59241ef53 Mon Sep 17 00:00:00 2001
From: Mark Phelps <209477+markphelps@users.noreply.github.com>
Date: Thu, 15 Aug 2024 12:57:47 -0400
Subject: [PATCH] chore: add ofrep bulk eval docs (#259)
Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>
---
mint.json | 3 ++-
reference/openfeature/bulk-evaluation.mdx | 22 ++++++++++++++++++++++
reference/openfeature/flag-evaluation.mdx | 4 +++-
reference/openfeature/overview.mdx | 1 +
4 files changed, 28 insertions(+), 2 deletions(-)
create mode 100644 reference/openfeature/bulk-evaluation.mdx
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