Skip to content

Commit 32153b0

Browse files
committed
Merge branch 'main' of github.com:wso2/api-platform into gw-undeploy
2 parents e61e68d + 3258763 commit 32153b0

48 files changed

Lines changed: 3486 additions & 5969 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,8 @@ cli/src/tests/target/
121121
# Specific agent file kept locally:
122122
# /.claude/agents/gateway-operator-expert.md
123123
/.claude/agents/gateway-operator-expert.md
124+
.claude/
125+
126+
# Component specific patterns
127+
# Platform API
128+
platform-api/src/data

platform-api/src/internal/constants/constants.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ var ValidGatewayFunctionalityType = map[string]bool{
6565
// DefaultGatewayFunctionalityType Default gateway functionality type for new gateways
6666
const DefaultGatewayFunctionalityType = GatewayFunctionalityTypeRegular
6767

68+
// Kinds of artifacts
69+
const (
70+
RestApi = "RestApi"
71+
WebSubApi = "WebSubApi"
72+
LLMProvider = "LlmProvider"
73+
LLMProxy = "LlmProxy"
74+
)
75+
6876
// API Type Constants
6977
const (
7078
APITypeHTTP = "HTTP"

platform-api/src/internal/constants/error.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ var (
5353
ErrInvalidLifecycleState = errors.New("invalid lifecycle state")
5454
ErrInvalidAPIType = errors.New("invalid api type")
5555
ErrInvalidTransport = errors.New("invalid transport protocol")
56-
ErrInvalidAPIDeployment = errors.New("invalid api deployment")
56+
ErrInvalidDeployment = errors.New("invalid api deployment")
5757
ErrGatewayNotAssociated = errors.New("api is not associated with gateway")
5858
ErrAPIContextVersionConflict = errors.New("api with same context and version already deployed in gateway")
59+
ErrUpstreamRequired = errors.New("upstream configuration is required")
5960
)
6061

6162
var (
@@ -81,7 +82,10 @@ var (
8182
)
8283

8384
var (
84-
ErrApiPortalSync = errors.New("failed to synchronize with dev portal")
85+
ErrApiPortalSync = errors.New("failed to synchronize with dev portal")
86+
ErrArtifactNotFound = errors.New("artifact not found")
87+
ErrArtifactExists = errors.New("artifact already exists")
88+
ErrArtifactInvalidKind = errors.New("invalid artifact kind")
8589
)
8690

8791
var (

0 commit comments

Comments
 (0)