Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: open api plugin #98

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions docs/api/gateway-get-evaluation.api.mdx

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions docs/api/gateway-get-evaluations.api.mdx

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions docs/api/gateway-get-feature-flags.api.mdx

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions docs/api/gateway-get-feature.api.mdx

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions docs/api/gateway-get-segment-users.api.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
id: gateway-get-segment-users
title: "Gateway_GetSegmentUsers"
description: "Gateway_GetSegmentUsers"
sidebar_label: "Gateway_GetSegmentUsers"
hide_title: true
hide_table_of_contents: true
api: eJy1WG1z2zYS/it7+NDIV5Zq3M59UM4358aO61zG9thWejOmJ4bIpYgaBBgAlMJ69N9vFgBFWnZeZnr1F1MEsPvssw+WCzww3aDhTmh1WrAZO+EO17z7cILuCpc1Kje3aCxLmEHbaGXRstkD2//xR/pXoM2NaGg1m7FDsG2eo7VlK6GfnrKE5Vo5VI5W8KaRIvf+pr9bWvbAbF5hzenJdQ2yGdOL3zF3LGGNIXROBKd2DGiYzY3hHUuYcFjbb7ZC0W6nWmeEWrJNwto/Z1w8b/XrPj8zZB13+HQkYajams1u2OnZ63fzo+MjlrDj/8bH24QVWPJWOjYbJmzorUSHY08LrSVyxTabDQFpCu6wOHTPeSy1qTlZFMr94+e4Ilq86uP7Fur66DakqY8t2m926d/kOPcwPxNF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sgZ1rcJMzxpSVg8Qow2B53q5+/Gwwlmc1Yo62nnbuKzdh0ie5DJP1DG+dS0i6H9EZh7qbnpkd7u0P/QORA8ojLceCjqxShSu2ZEI58MS/R6TIENKXjkcijcFnCVlsL8cmfQSw6MkUh1tzzSlVs4AVO0EEkBnpmHjG4zQSdzqeN5EL5+z8jaSyQdsOeknabsIqInd2whwc6Ts6N3Gzo9ccWTcdmN7cJW3Ej6HBFvzYJq5AXaNjs5oHdY8dm7HXYQz9Qe0cx0jYk+e/up03Srzj09xZfnHs7yv3F+dU1S9gi7tnaX4Ixw9d0eczXbMYyljGWsHB/4Peaf//AJFfL1l+DsWCX/v4HFAy9Fw==
sidebar_class_name: "post api-method"
info_path: api/proto-gateway-service-proto
custom_edit_url: null
---

import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Markdown from "@theme/Markdown";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";

<h1 className={"openapi__heading"}>Gateway_GetSegmentUsers</h1>

<MethodEndpoint method={"post"} path={"/get_segment_users"}></MethodEndpoint>



Gateway_GetSegmentUsers

## Request

<MimeTabs className={"openapi-tabs__mime"}><TabItem label={"application/json"} value={"application/json-schema"}><details style={{}} className={"openapi-markdown__details mime"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-mime"}><h3 className={"openapi-markdown__details-summary-header-body"}>Body</h3><strong className={"openapi-schema__required"}>required</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"segmentIds"} required={false} schemaName={"string[]"} qualifierMessage={undefined} schema={{"type":"array","items":{"type":"string"}}}></SchemaItem><SchemaItem collapsible={false} name={"requestedAt"} required={false} schemaName={"int64"} qualifierMessage={undefined} schema={{"type":"string","format":"int64"}}></SchemaItem><SchemaItem collapsible={false} name={"sourceId"} required={false} schemaName={"string"} qualifierMessage={"**Possible values:** [`UNKNOWN`, `ANDROID`, `IOS`, `WEB`, `GO_SERVER`, `NODE_SERVER`, `JAVASCRIPT`]"} schema={{"type":"string","enum":["UNKNOWN","ANDROID","IOS","WEB","GO_SERVER","NODE_SERVER","JAVASCRIPT"],"default":"UNKNOWN"}}></SchemaItem><SchemaItem collapsible={false} name={"sdkVersion"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string"}}></SchemaItem></ul></details></TabItem></MimeTabs><div><div><ApiTabs label={undefined} id={undefined}><TabItem label={"200"} value={"200"}><div>

A successful response.

</div><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={true} className={"schemaItem"}><details style={{}} className={"openapi-markdown__details"}><summary style={{}}><span className={"openapi-schema__container"}><strong className={"openapi-schema__property"}>segmentUsers</strong><span className={"openapi-schema__name"}> object[]</span></span></summary><div style={{"marginLeft":"1rem"}}><li><div style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem","paddingBottom":".5rem"}}>Array [</div></li><SchemaItem collapsible={false} name={"segmentId"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string"}}></SchemaItem><SchemaItem collapsible={true} className={"schemaItem"}><details style={{}} className={"openapi-markdown__details"}><summary style={{}}><span className={"openapi-schema__container"}><strong className={"openapi-schema__property"}>users</strong><span className={"openapi-schema__name"}> object[]</span></span></summary><div style={{"marginLeft":"1rem"}}><li><div style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem","paddingBottom":".5rem"}}>Array [</div></li><SchemaItem collapsible={false} name={"id"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string"}}></SchemaItem><SchemaItem collapsible={false} name={"segmentId"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string"}}></SchemaItem><SchemaItem collapsible={false} name={"userId"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string"}}></SchemaItem><SchemaItem collapsible={false} name={"state"} required={false} schemaName={"string"} qualifierMessage={"**Possible values:** [`INCLUDED`, `EXCLUDED`]"} schema={{"type":"string","enum":["INCLUDED","EXCLUDED"],"default":"INCLUDED"}}></SchemaItem><SchemaItem collapsible={false} name={"deleted"} required={false} schemaName={"boolean"} qualifierMessage={undefined} schema={{"type":"boolean"}}></SchemaItem><li><div style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem"}}>]</div></li></div></details></SchemaItem><SchemaItem collapsible={false} name={"updatedAt"} required={false} schemaName={"int64"} qualifierMessage={undefined} schema={{"type":"string","format":"int64"}}></SchemaItem><li><div style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem"}}>]</div></li></div></details></SchemaItem><SchemaItem collapsible={false} name={"deletedSegmentIds"} required={false} schemaName={"string[]"} qualifierMessage={undefined} schema={{"type":"array","items":{"type":"string"}}}></SchemaItem><SchemaItem collapsible={false} name={"requestedAt"} required={false} schemaName={"int64"} qualifierMessage={undefined} schema={{"type":"string","format":"int64"}}></SchemaItem><SchemaItem collapsible={false} name={"forceUpdate"} required={false} schemaName={"boolean"} qualifierMessage={undefined} schema={{"type":"boolean"}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n \"segmentUsers\": [\n {\n \"segmentId\": \"string\",\n \"users\": [\n {\n \"id\": \"string\",\n \"segmentId\": \"string\",\n \"userId\": \"string\",\n \"state\": \"INCLUDED\",\n \"deleted\": true\n }\n ],\n \"updatedAt\": \"string\"\n }\n ],\n \"deletedSegmentIds\": [\n \"string\"\n ],\n \"requestedAt\": \"string\",\n \"forceUpdate\": true\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"default"} value={"default"}><div>

An unexpected error response.

</div><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"code"} required={false} schemaName={"int32"} qualifierMessage={undefined} schema={{"type":"integer","format":"int32"}}></SchemaItem><SchemaItem collapsible={false} name={"message"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string"}}></SchemaItem><SchemaItem collapsible={true} className={"schemaItem"}><details style={{}} className={"openapi-markdown__details"}><summary style={{}}><span className={"openapi-schema__container"}><strong className={"openapi-schema__property"}>details</strong><span className={"openapi-schema__name"}> object[]</span></span></summary><div style={{"marginLeft":"1rem"}}><li><div style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem","paddingBottom":".5rem"}}>Array [</div></li><SchemaItem collapsible={false} name={"@type"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics."}}></SchemaItem><li><div style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem"}}>]</div></li></div></details></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n \"code\": 0,\n \"message\": \"string\",\n \"details\": [\n {\n \"@type\": \"string\"\n }\n ]\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem></ApiTabs></div></div>

46 changes: 46 additions & 0 deletions docs/api/gateway-list-features.api.mdx

Large diffs are not rendered by default.

Loading
Loading