Skip to content

Commit

Permalink
Merge pull request #1623 from wso2/revert-1619-revert-1615-revert-161…
Browse files Browse the repository at this point in the history
…3-ws-patch-1

Revert "Remove WS"
  • Loading branch information
Nashaath authored Nov 1, 2024
2 parents 558d108 + e89f74a commit c20f53e
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,16 @@ spec:
# +required Numeric port value that gets exposed via the endpoint
port: 9090
# +required Type of traffic that the endpoint is accepting.
# Allowed values: REST, GraphQL, GRPC, TCP, UDP.
# Allowed values: REST, GraphQL, GRPC, TCP, UDP, WS.
type: REST
# +optional Network level visibility of the endpoint. Defaults to Public
# Accepted values: Project|Organization|Public.
networkVisibility: Public
# +optional Context (base path) of the API that gets exposed via the endpoint.
# This is mandatory if the endpoint type is set to REST or GraphQL.
# This is mandatory if the endpoint type is set to REST, GraphQL or WS.
context: /greeting
# +optional The path to the schema definition file. Defaults to wildcard route if not specified.
# This is only applicable to REST endpoint type.
# This is only applicable to REST and WS endpoint types.
# The path should be relative to the Docker context.
schemaFilePath: greeting_openapi.yaml
# +optional Outgoing connection details for the component.
Expand Down Expand Up @@ -217,16 +217,16 @@ endpoints:
# +required Numeric port value that gets exposed via this endpoint
port: 9090
# +required Type of the traffic this endpoint is accepting.
# Allowed values: REST, GraphQL, GRPC, UDP, TCP.
# Allowed values: REST, GraphQL, GRPC, UDP, TCP, WS.
type: REST
# +optional Network level visibility of this endpoint. Defaults to Public
# Accepted values: Project|Organization|Public.
networkVisibility: Project
# +optional Context (base path) of the API that is exposed via this endpoint.
# This is mandatory if the endpoint type is set to REST or GraphQL.
# This is mandatory if the endpoint type is set to REST, GraphQL or WS.
context: /greeting
# +optional Path to the schema definition file. Defaults to wild card route if not provided
# This is only applicable to REST endpoint type.
# This is only applicable to REST and WS endpoint types.
# The path should be relative to the docker context.
schemaFilePath: greeting_openapi.yaml
```
Expand All @@ -240,7 +240,7 @@ You can define the following root-level configurations via the `endpoints.yaml`
| **version** | Required | The version of the `endpoints.yaml` file. |
| **name** | Required | A unique name for the endpoint, which Choreo will use to generate the managed API.|
| **port** | Required | The numeric port value that gets exposed via this endpoint. |
| **type** | Required | The type of traffic this endpoint accepts, such as `REST`, `GraphQL`, `gRPC`, `UDP`, or `TCP`. Currently, the MI preset supports only the `REST` type. |
| **type** | Required | The type of traffic this endpoint accepts, such as `REST`, `GraphQL`, `gRPC`, `WS`, `UDP`, or `TCP`. Currently, the MI preset supports only the `REST` type. |
| **networkVisibility**| Required | The network level visibility of this endpoint, which defaults to `Public` if not specified. Accepted values are `Project`, `Organization`, or `Public`.|
| **context** | Required | The context (base path) of the API that Choreo exposes via this endpoint. |
| **schemaFilePath** | Required | The swagger definition file path. Defaults to the wildcard route if not provided. This field should be a relative path to the project path when using the **Java**, **Python**, **NodeJS**, **Go**, **PHP**, **Ruby**, and **WSO2 MI** buildpacks. For REST endpoint types, when using the **Ballerina** or **Dockerfile** buildpack, this field should be a relative path to the component root or Docker context.|
Expand Down

0 comments on commit c20f53e

Please sign in to comment.