Skip to content

Commit

Permalink
chore: add ofrep bulk eval docs (#259)
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Phelps <[email protected]>
  • Loading branch information
markphelps authored Aug 15, 2024
1 parent 471db03 commit 484bb2b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@
"pages": [
"reference/openfeature/overview",
"reference/openfeature/configuration",
"reference/openfeature/flag-evaluation"
"reference/openfeature/flag-evaluation",
"reference/openfeature/bulk-evaluation"
]
},
{
Expand Down
22 changes: 22 additions & 0 deletions reference/openfeature/bulk-evaluation.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: "Bulk Evaluation"
openapi: "POST /ofrep/v1/evaluate/flags"
---

<RequestExample>

```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: <namespaceKey>' \
--data '{
"context": {
"flags": ["flagKey1", "flagKey2", "flagKey3"],
"targetingKey": "targetingKey1"
},
}'
```

</RequestExample>
4 changes: 3 additions & 1 deletion reference/openfeature/flag-evaluation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ curl --request POST \
--header 'Accept: application/json' \
--header 'X-Flipt-Namespace: <namespaceKey>' \
--data '{
"context": {},
"context": {
"targetingKey": "targetingKey1"
},
}'
```

Expand Down
1 change: 1 addition & 0 deletions reference/openfeature/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 484bb2b

Please sign in to comment.