Skip to content

Commit

Permalink
add core functionality, dashboarding and ditionary.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt committed Sep 19, 2023
1 parent d16615a commit bef0ed6
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 29 deletions.
4 changes: 4 additions & 0 deletions resources/envoy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ static_resources:
- business_partner.BusinessPartner
- data.BusinessData
- data.UserInterface
- data.CoreFunctionality
- data.CoreFunctionality
- dashboarding.Dashboarding
- dictionary.Dictionary
print_options:
add_whitespace: true
always_print_primitive_fields: true
Expand Down
44 changes: 34 additions & 10 deletions src/main/proto/core_functionality.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,54 @@ option java_package = "org.spin.backend.grpc.common";
option java_outer_classname = "ADempiereCoreFunctionality";

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

package data;

service CoreFunctionality {
// system information
rpc GetSystemInfo(GetSystemInfoRequest) returns (SystemInfo) {}
rpc GetSystemInfo(GetSystemInfoRequest) returns (SystemInfo) {
option (google.api.http) = { get: "/core-functionality/system-info" };
}
// Get Country Information
rpc GetCountry(GetCountryRequest) returns (Country) {}
rpc GetCountry(GetCountryRequest) returns (Country) {
option (google.api.http) = { get: "/core-functionality/country/{id}" };
}
// List Organizations
rpc ListOrganizations(ListOrganizationsRequest) returns (ListOrganizationsResponse) {}
rpc ListOrganizations(ListOrganizationsRequest) returns (ListOrganizationsResponse) {
option (google.api.http) = { get: "/core-functionality/organizations" };
}
// Warehouses
rpc ListWarehouses(ListWarehousesRequest) returns (ListWarehousesResponse) {}
rpc ListWarehouses(ListWarehousesRequest) returns (ListWarehousesResponse) {
option (google.api.http) = { get: "/core-functionality/warehouses" };
}
// Request Language List
rpc ListLanguages(ListLanguagesRequest) returns (ListLanguagesResponse) {}
rpc ListLanguages(ListLanguagesRequest) returns (ListLanguagesResponse) {
option (google.api.http) = { get: "/core-functionality/languages" };
}
// Get Business Partner from search
rpc GetBusinessPartner(GetBusinessPartnerRequest) returns (BusinessPartner) {}
rpc GetBusinessPartner(GetBusinessPartnerRequest) returns (BusinessPartner) {
option (google.api.http) = { get: "/core-functionality/business-partner/{id}" };
}
// Create Business Partner
rpc CreateBusinessPartner(CreateBusinessPartnerRequest) returns (BusinessPartner) {}
rpc CreateBusinessPartner(CreateBusinessPartnerRequest) returns (BusinessPartner) {
option (google.api.http) = {
post: "/core-functionality/business-partner",
body: "*"
};
}
// List Business Partner
rpc ListBusinessPartners(ListBusinessPartnersRequest) returns (ListBusinessPartnersResponse) {}
rpc ListBusinessPartners(ListBusinessPartnersRequest) returns (ListBusinessPartnersResponse) {
option (google.api.http) = { get: "/core-functionality/business-partners" };
}
// Get Currency Rate
rpc GetConversionRate(GetConversionRateRequest) returns (ConversionRate) {}
rpc GetConversionRate(GetConversionRateRequest) returns (ConversionRate) {
option (google.api.http) = { get: "/core-functionality/conversion-rate/{id}" };
}
// List Product Conversion UOM
rpc ListProductConversion(ListProductConversionRequest) returns (ListProductConversionResponse) {}
rpc ListProductConversion(ListProductConversionRequest) returns (ListProductConversionResponse) {
option (google.api.http) = { get: "/core-functionality/product-conversions" };
}
}

message GetSystemInfoRequest {
Expand Down
33 changes: 25 additions & 8 deletions src/main/proto/dashboarding.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,42 @@ option java_outer_classname = "ADempiereDashboarding";

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

package dashboarding;

// All related to Dashboarding
service Dashboarding {
// Request Dashboards Content Edit
rpc ListDashboards(ListDashboardsRequest) returns (ListDashboardsResponse) {}
rpc ListDashboards(ListDashboardsRequest) returns (ListDashboardsResponse) {
option (google.api.http) = { get: "/dashboarding/dashboards" };
}
// Request Favorites
rpc ListFavorites(ListFavoritesRequest) returns (ListFavoritesResponse) {}
rpc ListFavorites(ListFavoritesRequest) returns (ListFavoritesResponse) {
option (google.api.http) = { get: "/dashboarding/favorites" };
}
// Request Document Statuses
rpc ListPendingDocuments(ListPendingDocumentsRequest) returns (ListPendingDocumentsResponse) {}
rpc ListPendingDocuments(ListPendingDocumentsRequest) returns (ListPendingDocumentsResponse) {
option (google.api.http) = { get: "/dashboarding/pending-documents" };
}
// Get Metrics
rpc GetMetrics(GetMetricsRequest) returns (Metrics) {}
rpc GetMetrics(GetMetricsRequest) returns (Metrics) {
option (google.api.http) = { get: "/dashboarding/metric/{id}" };
}
// NotificationWindowChart
rpc ListNotifications(ListNotificationsRequest) returns (ListNotificationsResponse) {}
rpc ListNotifications(ListNotificationsRequest) returns (ListNotificationsResponse) {
option (google.api.http) = { get: "/dashboarding/notifications" };
}
// Custom Window Metrics
rpc ExistsWindowDashboards(ExistsWindowDashboardsRequest) returns (ExistsWindowDashboardsResponse) {}
rpc ListWindowDashboards(ListWindowDashboardsRequest) returns (ListWindowDashboardsResponse) {}
rpc GetWindowMetrics(GetWindowMetricsRequest) returns (WindowMetrics) {}
rpc ExistsWindowDashboards(ExistsWindowDashboardsRequest) returns (ExistsWindowDashboardsResponse) {
option (google.api.http) = { get: "/dashboarding/exists-window-dashboards" };
}
rpc ListWindowDashboards(ListWindowDashboardsRequest) returns (ListWindowDashboardsResponse) {
option (google.api.http) = { get: "/dashboarding/window-dashboards" };
}
rpc GetWindowMetrics(GetWindowMetricsRequest) returns (WindowMetrics) {
option (google.api.http) = { get: "/dashboarding/window-metric/{id}" };
}
}

// Dashboard
Expand Down
46 changes: 35 additions & 11 deletions src/main/proto/dictionary.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,54 @@ option java_multiple_files = true;
option java_package = "org.spin.backend.grpc.dictionary";
option java_outer_classname = "ADempiereDictionary";

import "google/api/annotations.proto";

package dictionary;

// The greeting service definition.
service Dictionary {
// Request a Window
rpc GetWindow(EntityRequest) returns (Window) {}
rpc GetWindow(EntityRequest) returns (Window) {
option (google.api.http) = { get: "/dictionary/window/{id}" };
}
// Request a Tab
rpc GetTab(EntityRequest) returns (Tab) {}
rpc GetTab(EntityRequest) returns (Tab) {
option (google.api.http) = { get: "/dictionary/tab/{id}" };
}
// Request a Field
rpc GetField(FieldRequest) returns (Field) {}
rpc GetField(FieldRequest) returns (Field) {
option (google.api.http) = { get: "/dictionary/field/{id}" };
}
// Reference Request
rpc GetReference(ReferenceRequest) returns (Reference) {}
rpc GetReference(ReferenceRequest) returns (Reference) {
option (google.api.http) = { get: "/dictionary/reference/{id}" };
}
// Reference Request
rpc GetValidationRule(EntityRequest) returns (ValidationRule) {}
rpc GetValidationRule(EntityRequest) returns (ValidationRule) {
option (google.api.http) = { get: "/dictionary/validation-rule/{id}" };
}
// Request Process
rpc GetProcess(EntityRequest) returns (Process) {}
rpc GetProcess(EntityRequest) returns (Process) {
option (google.api.http) = { get: "/dictionary/process/{id}" };
}
// Request Browser
rpc GetBrowser(EntityRequest) returns (Browser) {}
rpc GetBrowser(EntityRequest) returns (Browser) {
option (google.api.http) = { get: "/dictionary/browser/{id}" };
}
// Get Form
rpc GetForm(EntityRequest) returns (Form) {}
rpc GetForm(EntityRequest) returns (Form) {
option (google.api.http) = { get: "/dictionary/form/{id}" };
}
// List Search Info Fields
rpc ListSearchInfoFields(ListFieldsRequest) returns (ListFieldsResponse) {}
rpc ListIdentifiersFields(ListFieldsRequest) returns (ListFieldsResponse) {}
rpc ListTableSearchFields(ListFieldsRequest) returns (ListFieldsResponse) {}
rpc ListSearchInfoFields(ListFieldsRequest) returns (ListFieldsResponse) {
option (google.api.http) = { get: "/dictionary/search-info-fields" };
}
rpc ListIdentifiersFields(ListFieldsRequest) returns (ListFieldsResponse) {
option (google.api.http) = { get: "/dictionary/identifier-fields" };
}
rpc ListTableSearchFields(ListFieldsRequest) returns (ListFieldsResponse) {
option (google.api.http) = { get: "/dictionary/table-search-fields" };
}
}

// Object request
Expand Down

0 comments on commit bef0ed6

Please sign in to comment.