Repository navigation
Created UNR folder and proto definition. #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
4743a35
Created UNR folder and proto definition.
bstover74 697acb4
Fix for missing vars.
bstover74 57fa0e6
Another naming fix
bstover74 35ee6ae
Naming fixes.
bstover74 433eec0
Fixed typo to resolve validation error.
bstover74 c6056d8
More fixes.
bstover74 b760559
Updated to create two APIs under one parent service.
bstover74 fa179d7
Fixed var name.
bstover74 915a123
Updated for missing message types for updating and creating.
bstover74 dc9c9f6
Updated to consolidate message structure usage.
bstover74 31abff7
Removed unneeded message.
bstover74 5b1cbcb
Updated to remove last unneeded message.
bstover74 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| import "google/protobuf/empty.proto"; | ||
|
|
||
| package services.base_info; | ||
|
|
||
| service BaseInfoService { | ||
| rpc create(BaseInfo) returns (google.protobuf.Empty); | ||
| rpc read(BaseRequest) returns (BaseResponse); | ||
| rpc update(BaseInfo) returns (google.protobuf.Empty); | ||
| rpc delete(BaseRequest) returns (google.protobuf.Empty); | ||
| } | ||
|
|
||
| message BaseRequest { | ||
| repeated string id = 1; | ||
| } | ||
|
|
||
| message BaseResponse { | ||
| repeated BaseInfo base_info = 1; | ||
| } | ||
|
|
||
| message BaseInfo { | ||
| string id = 1; | ||
| string address = 2; | ||
| string type = 3; | ||
| string protocol = 4; | ||
| } | ||
25 changes: 25 additions & 0 deletions
25
proto/controls/service/grpc-unr/v1/relationship-info.proto
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| import "google/protobuf/empty.proto"; | ||
|
|
||
| package services.relationship_info; | ||
|
|
||
| service RelationshipInfoService { | ||
| rpc create(RelationshipInfo) returns (google.protobuf.Empty); | ||
| rpc read(RelationshipRequest) returns (RelationshipResponse); | ||
| rpc update(RelationshipInfo) returns (google.protobuf.Empty); | ||
| rpc delete(RelationshipRequest) returns (google.protobuf.Empty); | ||
| } | ||
|
|
||
| message RelationshipRequest { | ||
| string id = 1; | ||
| } | ||
|
|
||
| message RelationshipInfo { | ||
| string parent_id = 1; | ||
| repeated string child_ids = 2; | ||
| } | ||
|
|
||
| message RelationshipResponse { | ||
| repeated RelationshipInfo relationship_info = 1; | ||
| } | ||
|
Comment on lines
+18
to
+25
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI, looks like the double repeated snuck back in here after a refactor @bstover74 |
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.