Skip to content

Commit e85b272

Browse files
committed
not implemented endpoint
1 parent f9fcc4c commit e85b272

File tree

1 file changed

+4
-31
lines changed
  • apps/workspace-engine/pkg/server/openapi

1 file changed

+4
-31
lines changed
Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package openapi
22

33
import (
4+
"net/http"
45
"workspace-engine/pkg/oapi"
56
"workspace-engine/pkg/server/openapi/deployments"
67
"workspace-engine/pkg/server/openapi/environments"
@@ -23,37 +24,9 @@ type Server struct {
2324
policies.Policies
2425
}
2526

26-
// EvaluateReleaseTarget implements oapi.ServerInterface.
27-
// Subtle: this method shadows the method (ReleaseTargets).EvaluateReleaseTarget of Server.ReleaseTargets.
28-
func (s *Server) EvaluateReleaseTarget(c *gin.Context, workspaceId oapi.WorkspaceId) {
29-
panic("unimplemented")
30-
}
31-
32-
// GetDeploymentResources implements oapi.ServerInterface.
33-
// Subtle: this method shadows the method (Deployments).GetDeploymentResources of Server.Deployments.
34-
func (s *Server) GetDeploymentResources(c *gin.Context, workspaceId oapi.WorkspaceId, deploymentId oapi.DeploymentId) {
35-
panic("unimplemented")
36-
}
37-
38-
// GetEnvironmentResources implements oapi.ServerInterface.
39-
// Subtle: this method shadows the method (Environments).GetEnvironmentResources of Server.Environments.
40-
func (s *Server) GetEnvironmentResources(c *gin.Context, workspaceId oapi.WorkspaceId, environmentId oapi.EnvironmentId) {
41-
panic("unimplemented")
42-
}
43-
44-
// GetPoliciesForReleaseTarget implements oapi.ServerInterface.
45-
// Subtle: this method shadows the method (ReleaseTargets).GetPoliciesForReleaseTarget of Server.ReleaseTargets.
46-
func (s *Server) GetPoliciesForReleaseTarget(c *gin.Context, workspaceId oapi.WorkspaceId, releaseTargetId oapi.ReleaseTargetId) {
47-
panic("unimplemented")
48-
}
49-
5027
// GetRelatedEntities implements oapi.ServerInterface.
5128
func (s *Server) GetRelatedEntities(c *gin.Context, workspaceId oapi.WorkspaceId, entityType oapi.GetRelatedEntitiesParamsEntityType, entityId oapi.EntityId) {
52-
panic("unimplemented")
53-
}
54-
55-
// GetReleaseTargetsForPolicy implements oapi.ServerInterface.
56-
// Subtle: this method shadows the method (Policies).GetReleaseTargetsForPolicy of Server.Policies.
57-
func (s *Server) GetReleaseTargetsForPolicy(c *gin.Context, workspaceId oapi.WorkspaceId, policyId oapi.PolicyId) {
58-
panic("unimplemented")
29+
c.JSON(http.StatusInternalServerError, gin.H{
30+
"error": "Not implemented",
31+
})
5932
}

0 commit comments

Comments
 (0)