Resource Type Configuration and Naming Conventions #492
Tharsanan1
started this conversation in
General
Replies: 3 comments
-
|
Sounds good. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
What would be the plan for managing the |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Change ai.gateway --> gateway Complete ExamplesStandard Gateway API Resource: apiVersion: gateway.api-platform.wso2.com/v1alpha1
kind: RestApi
metadata:
name: petstore-api
spec:AI Gateway API Resource: apiVersion: gateway.api-platform.wso2.com/v1alpha1
kind: LlmProvider
metadata:
name: llm-proxy-api
spec:Control Plane Resource: apiVersion: controlplane.api-platform.wso2.com/v1alpha1
kind: Subscription
metadata:
name: basic-subscription
spec: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Resource Type Configuration and Naming Conventions
Resource Configuration Structure
When creating a new resource type, the resource configuration should follow this standard structure:
Component Type Naming Convention
The
<component-type>field indicates which component of the platform the resource belongs to. Use the following conventions:Component Type Values
gateway- For resources specifically designed for the standard/normal API gatewayai-gateway- For resources specifically designed for the AI gatewaycontrolplane- For resources designed for the control planeExamples:
Resource Type Naming Convention
The
<resource-type>field must adhere to the following naming conventions to ensure consistency across the platform:1. Capitalization for Multi-Word Resources
When a resource type contains multiple words (e.g., WebSocket) or multiple acronyms (e.g., RestApis):
Examples:
WebSocket(notWebsocketorWEBSOCKET)RestApi(notRESTAPIorrestapi)ApiKey(notAPIKeyorApikey)2. API Type Resources
For resources that represent API types (such as REST, GraphQL, WebSocket, gRPC), the name must be postfixed with
Api:Examples:
RestApiGraphqlApiWebSocketApiGrpcApiSoapApi3. Non-API Resource Types
For other types of resources that are not API types (such as policies, backends, rate limits, authentication configurations):
ApipostfixExamples:
SubscriptionLlmProviderComplete Examples
Standard Gateway API Resource:
AI Gateway API Resource:
Control Plane Resource:
Beta Was this translation helpful? Give feedback.
All reactions