generated from mcmarius/oop-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
955 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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,42 @@ | ||
syntax = "proto3"; | ||
|
||
package reasy.api.v1; | ||
|
||
import "google/protobuf/struct.proto"; | ||
import "reasy/core.proto"; | ||
|
||
service projects { | ||
rpc GetAll(reasy.core.Empty) returns (ProjectsGetAllResponse) {} | ||
rpc Get(ProjectsGetRequest) returns (Project) {} | ||
rpc Create(ProjectsCreateRequest) returns (Project) {} | ||
rpc ChangeName(ProjectsChangeNameRequest) returns (reasy.core.Empty) {} | ||
rpc Delete(ProjectsDeleteRequest) returns (reasy.core.Empty) {} | ||
} | ||
|
||
message Project { | ||
string id = 1; | ||
string workspace_id = 2; | ||
string name = 3; | ||
} | ||
|
||
message ProjectsGetRequest { | ||
string id = 1; | ||
} | ||
|
||
message ProjectsCreateRequest { | ||
string workspace_id = 1; | ||
string name = 2; | ||
} | ||
|
||
message ProjectsChangeNameRequest { | ||
string id = 1; | ||
string name = 2; | ||
} | ||
|
||
message ProjectsDeleteRequest { | ||
string id = 1; | ||
} | ||
|
||
message ProjectsGetAllResponse { | ||
repeated Project projects = 1; | ||
} |
This file contains 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
This file contains 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,48 @@ | ||
syntax = "proto3"; | ||
|
||
package reasy.api.v1; | ||
|
||
import "google/protobuf/struct.proto"; | ||
import "reasy/core.proto"; | ||
|
||
service workspaces { | ||
rpc GetAll(reasy.core.Empty) returns (WorkspacesGetAllResponse) {} | ||
rpc Get(WorkspacesGetRequest) returns (Workspace) {} | ||
rpc Create(WorkspacesCreateRequest) returns(Workspace) {} | ||
rpc ChangeAdmin(WorkspacesChangeAdminRequest) returns (reasy.core.Empty) {} | ||
rpc ChangeName(WorkspacesChangeNameRequest) returns (reasy.core.Empty) {} | ||
rpc Delete(WorkspacesDeleteRequest) returns (reasy.core.Empty) {} | ||
} | ||
|
||
message Workspace { | ||
string id = 1; | ||
string admin_id = 2; | ||
string name = 3; | ||
} | ||
|
||
message WorkspacesGetRequest { | ||
string id = 1; | ||
} | ||
|
||
message WorkspacesCreateRequest { | ||
string admin_id = 1; | ||
string name = 2; | ||
} | ||
|
||
message WorkspacesChangeAdminRequest { | ||
string id = 1; | ||
string new_admin_id = 2; | ||
} | ||
|
||
message WorkspacesChangeNameRequest { | ||
string id = 1; | ||
string new_name = 2; | ||
} | ||
|
||
message WorkspacesDeleteRequest { | ||
string id = 1; | ||
} | ||
|
||
message WorkspacesGetAllResponse { | ||
repeated Workspace workspaces = 1; | ||
} |
This file contains 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,28 @@ | ||
|
||
### | ||
GRPC localhost:8080/reasy.api.v1.issues/Get | ||
|
||
{ | ||
"issue_id": "cp9k0kjjuspjbfubl0s0" | ||
} | ||
|
||
### | ||
GRPC localhost:8080/reasy.api.v1.issues/Create | ||
|
||
{ | ||
"project_id": "cc0a2mn6i1e6brmdbip0", | ||
"creator_id": "cc0aar76i1e6jr6no620", | ||
"name": "Issue #2", | ||
"description": "hello world plz", | ||
"status": 1, | ||
"priority": 2, | ||
"assignee_id": "cc0a2mn6i1e6brmdbip0" | ||
} | ||
|
||
### | ||
GRPC localhost:8080/reasy.api.v1.issues/ChangePriority | ||
|
||
{ | ||
"issue_id": "cp9k0kjjuspjbfubl0s0", | ||
"new_priority": 3 | ||
} |
This file contains 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,35 @@ | ||
@url = localhost:8080/reasy.api.v1.projects | ||
@id = "cp9nk6bjuspm2rts0la0" | ||
|
||
### | ||
GRPC {{url}}/GetAll | ||
|
||
### | ||
GRPC {{url}}/Get | ||
|
||
{ | ||
"id": {{id}} | ||
} | ||
|
||
### | ||
GRPC {{url}}/Create | ||
|
||
{ | ||
"workspace_id": "workspace1", | ||
"name": "hello world" | ||
} | ||
|
||
### | ||
GRPC {{url}}/ChangeName | ||
|
||
{ | ||
"id": {{id}}, | ||
"name": "workspace2 edit" | ||
} | ||
|
||
### | ||
GRPC {{url}}/Delete | ||
|
||
{ | ||
"id": {{id}} | ||
} |
This file contains 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,45 @@ | ||
@url = localhost:8080/reasy.api.v1.users | ||
@id = "cp9m3jjjuspkirgm5ds0" | ||
|
||
### | ||
GRPC {{url}}/GetAll | ||
|
||
### | ||
GRPC {{url}}/Get | ||
|
||
{ | ||
"id": {{id}} | ||
} | ||
|
||
### | ||
GRPC {{url}}/Create | ||
|
||
{ | ||
"name": "Reezy 2", | ||
"username": "@rizesql2_", | ||
"email": "mail2+new@mail.com" | ||
} | ||
|
||
### | ||
GRPC {{url}}/ChangeName | ||
|
||
{ | ||
"id": {{id}}, | ||
"new_name": "new Reezy" | ||
} | ||
|
||
### | ||
GRPC {{url}}/ChangeUsername | ||
|
||
{ | ||
"id": {{id}}, | ||
"new_username": "new @rizesql_" | ||
} | ||
|
||
### | ||
GRPC {{url}}/Delete | ||
|
||
{ | ||
"id": {{id}} | ||
} | ||
|
This file contains 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,43 @@ | ||
@url = localhost:8080/reasy.api.v1.workspaces | ||
@id = "" | ||
|
||
### | ||
GRPC {{url}}/GetAll | ||
|
||
### | ||
GRPC {{url}}/Get | ||
|
||
{ | ||
"id": {{id}} | ||
} | ||
|
||
### | ||
GRPC {{url}}/Create | ||
|
||
{ | ||
"admin_id": "", | ||
"name": "" | ||
} | ||
|
||
### | ||
GRPC {{url}}/ChangeAdmin | ||
|
||
{ | ||
"id": "", | ||
"new_admin_id": "" | ||
} | ||
|
||
### | ||
GRPC {{url}}/ChangeName | ||
|
||
{ | ||
"id": "", | ||
"new_name": "" | ||
} | ||
|
||
### | ||
GRPC {{url}}/Delete | ||
|
||
{ | ||
"id": {{id}} | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.