Skip to content

Commit

Permalink
Initial implementation for DP to CP
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishanx92 committed Nov 15, 2023
1 parent 77500ed commit 7ee3bf3
Show file tree
Hide file tree
Showing 13 changed files with 154 additions and 1,524 deletions.
61 changes: 0 additions & 61 deletions adapter/api/proto/wso2/discovery/service/apkmgt/apids.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ syntax = "proto3";
package discovery.service.apkmgt;

option go_package = "github.com/wso2/apk/adapter/discovery/service/apkmgt";
option java_package = "org.wso2.apk.enforcer.discovery.service.apkmgt";
option java_outer_classname = "ApiDsProto";
option java_multiple_files = false;
option java_generic_services = true;

service APIService {
rpc createAPI(API) returns (Response);
Expand All @@ -32,66 +28,9 @@ service APIService {
}

message API {
string uuid = 1;
string provider = 2;
string version = 3;
string name = 4;
string basePath = 5;
string type = 6;
string organizationId = 7;
string createdBy = 8;
string createdTime = 9;
string updatedBy = 10;
string updatedTime = 11;
string definition = 12;
repeated string transports = 13;
repeated Resource resources = 16;
CorsConfig corsConfig = 17;
}

message CorsConfig {
bool corsConfigurationEnabled = 1;
repeated string accessControlAllowOrigins = 2;
bool accessControlAllowCredentials = 3;
repeated string accessControlAllowHeaders = 4;
repeated string accessControlAllowMethods = 5;
}

message Resource {
string path = 1;
string verb = 2;
repeated Authentication authentications = 3;
repeated Scope scopes = 4;
OperationPolicies operationPolicies = 6;
repeated QueryParam queryParams = 7;
repeated string hostname = 8;
}

message OperationPolicies {}

message QueryParam {
string name = 1;
string value = 2;
}

message Scope {
string name = 1;
string displayName = 2;
string description = 3;
repeated string bindings = 4;
}

message Authentication {
string type = 1;
string iss = 2;
string aud = 3;
string jwksUri = 4;
repeated Credential credentialList = 5;
}

message Credential {
string username = 1;
string password = 2;
}

message Response {
Expand Down
Loading

0 comments on commit 7ee3bf3

Please sign in to comment.