Skip to content

Commit

Permalink
Add Transcoding support service for
Browse files Browse the repository at this point in the history
- Security:
  - POST: `/security/login`
  - POST: `/security/session-attribute`
  - GET: `/security/user-info`
  - GET: `/security/session-info`
  - GET: `/security/roles`
  - GET: `/security/menu`
  - GET: `/security/services`
  - POST: `/security/logout`
- Business Partner:
  - `/business-partner/business-partners`
- Bank
  - GET: `/bank-statement-match/bank-statements/{id}`
  - GET: `/bank-statement-match/accounts`
  - GET: `/bank-statement-match/business-partners`
  - GET: `/bank-statement-match/search-modes`
  - GET: `/bank-statement-match/imported-movements`
  - GET: `/bank-statement-match/payments`
  - GET: `/bank-statement-match/matching-movements`
  - GET: `/bank-statement-match/movements`
  - GET: `/bank-statement-match/bank-statements`
  - POST: `/bank-statement-match/match-payments`
  - POST: `/bank-statement-match/unmatch-payments`
  - POST: `/bank-statement-match/process-movements`
  • Loading branch information
yamelsenih committed Sep 18, 2023
1 parent 9debb2b commit 8e17b0f
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 25 deletions.
11 changes: 11 additions & 0 deletions .settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
arguments=--init-script /home/yamel/.config/Code/User/globalStorage/redhat.java/1.22.1/config_linux/org.eclipse.osgi/55/0/.cp/gradle/init/init.gradle --init-script /home/yamel/.config/Code/User/globalStorage/redhat.java/1.22.1/config_linux/org.eclipse.osgi/55/0/.cp/gradle/protobuf/init.gradle
auto.sync=false
build.scans.enabled=false
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(7.4.2))
connection.project.dir=
eclipse.preferences.version=1
gradle.user.home=
java.home=/usr/lib/jvm/java-11-openjdk-amd64
jvm.arguments=
offline.mode=false
override.workspace.settings=true
show.console.view=true
show.executions.view=true
58 changes: 46 additions & 12 deletions src/main/proto/bank_statement_match.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ option java_outer_classname = "ADempiereBankStatementMatch";

import "base_data_type.proto";
import "business.proto";
import "google/api/annotations.proto";

package bank_statement_match;

Expand All @@ -29,20 +30,53 @@ package bank_statement_match;
// - org.spin.apps.form.WBankStatementMatch
service BankStatementMatch {
// lists criteria
rpc GetBankStatement(GetBankStatementRequest) returns (BankStatement) {}
rpc ListBankAccounts(ListBankAccountsRequest) returns (data.ListLookupItemsResponse) {}
rpc ListBusinessPartners(ListBusinessPartnersRequest) returns (data.ListLookupItemsResponse) {}
rpc ListSearchModes(ListSearchModesRequest) returns (data.ListLookupItemsResponse) {}
rpc GetBankStatement(GetBankStatementRequest) returns (BankStatement) {
option (google.api.http) = { get: "/bank-statement-match/bank-statements/{id}" };
}
rpc ListBankAccounts(ListBankAccountsRequest) returns (data.ListLookupItemsResponse) {
option (google.api.http) = { get: "/bank-statement-match/accounts" };
}
rpc ListBusinessPartners(ListBusinessPartnersRequest) returns (data.ListLookupItemsResponse) {
option (google.api.http) = { get: "/bank-statement-match/business-partners" };
}
rpc ListSearchModes(ListSearchModesRequest) returns (data.ListLookupItemsResponse) {
option (google.api.http) = { get: "/bank-statement-match/search-modes" };
}
// results
rpc ListImportedBankMovements(ListImportedBankMovementsRequest) returns (ListImportedBankMovementsResponse) {}
rpc ListPayments(ListPaymentsRequest) returns (ListPaymentsResponse) {}
rpc ListMatchingMovements(ListMatchingMovementsRequest) returns (ListMatchingMovementsResponse) {}
rpc ListResultMovements(ListResultMovementsRequest) returns (ListResultMovementsResponse) {}
rpc ListImportedBankMovements(ListImportedBankMovementsRequest) returns (ListImportedBankMovementsResponse) {
option (google.api.http) = { get: "/bank-statement-match/imported-movements" };
}
rpc ListPayments(ListPaymentsRequest) returns (ListPaymentsResponse) {
option (google.api.http) = { get: "/bank-statement-match/payments" };
}
rpc ListMatchingMovements(ListMatchingMovementsRequest) returns (ListMatchingMovementsResponse) {
option (google.api.http) = { get: "/bank-statement-match/matching-movements" };
}
rpc ListResultMovements(ListResultMovementsRequest) returns (ListResultMovementsResponse) {
option (google.api.http) = { get: "/bank-statement-match/movements" };
}
// process
rpc MatchPayments(MatchPaymentsRequest) returns (MatchPaymentsResponse) {}
rpc UnmatchPayments(UnmatchPaymentsRequest) returns (UnmatchPaymentsResponse) {}
rpc ListBankStatements(ListBankStatementsRequest) returns (ListBankStatementsResponse) {}
rpc ProcessMovements(ProcessMovementsRequest) returns (ProcessMovementsResponse) {}
rpc MatchPayments(MatchPaymentsRequest) returns (MatchPaymentsResponse) {
option (google.api.http) = {
post: "/bank-statement-match/match-payments",
body: "*"
};
}
rpc UnmatchPayments(UnmatchPaymentsRequest) returns (UnmatchPaymentsResponse) {
option (google.api.http) = {
post: "/bank-statement-match/unmatch-payments",
body: "*"
};
}
rpc ListBankStatements(ListBankStatementsRequest) returns (ListBankStatementsResponse) {
option (google.api.http) = { get: "/bank-statement-match/bank-statements" };
}
rpc ProcessMovements(ProcessMovementsRequest) returns (ProcessMovementsResponse) {
option (google.api.http) = {
post: "/bank-statement-match/process-movements",
body: "*"
};
}
}

// Bank Account
Expand Down
5 changes: 4 additions & 1 deletion src/main/proto/business_partner.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ option java_outer_classname = "ADempiereBusinessPartner";

import "base_data_type.proto";
import "business.proto";
import "google/api/annotations.proto";

package business_partner;

// The business partner service definition.
service BusinessPartner {
// List Business Partner Info Request
rpc ListBusinessPartnerInfo(ListBusinessPartnerInfoRequest) returns (data.ListEntitiesResponse) {}
rpc ListBusinessPartnerInfo(ListBusinessPartnerInfoRequest) returns (data.ListEntitiesResponse) {
option (google.api.http) = { get: "/business-partner/business-partners" };
}
}

// List Business Partner Info Request
Expand Down
52 changes: 40 additions & 12 deletions src/main/proto/security.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,56 @@ package security;
// The greeting service definition.
service Security {
// Request login from user
rpc RunLogin(LoginRequest) returns (Session) {}
rpc RunLogin(LoginRequest) returns (Session) {
option (google.api.http) = {
post: "/security/login",
body: "*"
};
}
// Request a Role from uuid
rpc RunLogout(LogoutRequest) returns (Session) {}
rpc RunLogout(LogoutRequest) returns (Session) {
option (google.api.http) = { post: "/security/logout" };
}
// Request user roles from SessionInfo
rpc GetUserInfo(UserInfoRequest) returns (UserInfo) {}
rpc GetUserInfo(UserInfoRequest) returns (UserInfo) {
option (google.api.http) = { get: "/security/user-info" };
}
// Request Menu from Parent UUID
rpc GetMenu(MenuRequest) returns (Menu) {}
rpc GetMenu(MenuRequest) returns (Menu) {
option (google.api.http) = { get: "/security/menu" };
}
// Request change role
rpc RunChangeRole(ChangeRoleRequest) returns (Session) {}
rpc RunChangeRole(ChangeRoleRequest) returns (Session) {
option (google.api.http) = {
post: "/security/change-role",
body: "*"
};
}
// Request session
rpc GetSessionInfo(SessionInfoRequest) returns (SessionInfo) {}
rpc SetSessionAttribute(SetSessionAttributeRequest) returns (Session) {}
rpc GetSessionInfo(SessionInfoRequest) returns (SessionInfo) {
option (google.api.http) = { get: "/security/session-info" };
}
rpc SetSessionAttribute(SetSessionAttributeRequest) returns (Session) {
option (google.api.http) = {
post: "/security/session-attribute",
body: "*"
};
}
// List Roles
rpc ListRoles(ListRolesRequest) returns (ListRolesResponse) {}
rpc ListRoles(ListRolesRequest) returns (ListRolesResponse) {
option (google.api.http) = { get: "/security/roles" };
}
// List Available Services
rpc ListServices(ListServicesRequest) returns (ListServicesResponse) {
// Client example - returns the first shelf:
// curl http://DOMAIN_NAME/v1/services/
option (google.api.http) = { get: "/security/services" };
option (google.api.http) = { get: "/security/services" };
}
// Request login from Open ID
rpc RunLoginOpenID(LoginOpenIDRequest) returns (Session) {}
rpc RunLoginOpenID(LoginOpenIDRequest) returns (Session) {
option (google.api.http) = {
post: "/security/login-open-id",
body: "*"
};
}
}


Expand Down

0 comments on commit 8e17b0f

Please sign in to comment.