Skip to content

Commit

Permalink
Add management and delivery api basis
Browse files Browse the repository at this point in the history
  • Loading branch information
jesko-plitt committed Sep 27, 2022
0 parents commit f5080f9
Show file tree
Hide file tree
Showing 9 changed files with 99 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# v1.0.0-alpha.1

- (feature) Add management
- (feature) Add delivery
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# projections-proto

This repository contains all protocol buffers for the gRPC api of the projections service.

## usage

1. git clone this project:

```shell
git clone [email protected]:fraym-work/projections-proto.git ./.pb
```

2. generate code from the cloned files
3. remove cloned data again to keep your project clean:

```shell
rm -rf ./.pb
```

## components

### management

Contains all proto files for the management api of the projections service.

### delivery

Contains all proto files for the delivery api of the projections service.
15 changes: 15 additions & 0 deletions delivery/getData.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
syntax = "proto3";
package delivery;

message GetDataRequest {
string projection = 1;
string data_id = 2;
int32 limit = 3;
int32 page = 4;
}

message GetDataResponse {
string data = 1;
int32 limit = 2;
int32 page = 3;
}
7 changes: 7 additions & 0 deletions delivery/service.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
syntax = "proto3";
package delivery;
import "delivery/getData.proto";

service Service {
rpc GetData(GetDataRequest) returns (GetDataResponse);
}
8 changes: 8 additions & 0 deletions management/createProjections.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
syntax = "proto3";
package management;

message CreateProjectionsRequest {
string schema = 1;
}

message CreateProjectionsResponse {}
8 changes: 8 additions & 0 deletions management/getProjections.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
syntax = "proto3";
package management;

message GetProjectionsRequest {}

message GetProjectionsResponse {
repeated string name = 1;
}
8 changes: 8 additions & 0 deletions management/removeProjections.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
syntax = "proto3";
package management;

message RemoveProjectionsRequest {
repeated string projection_names = 1;
}

message RemoveProjectionsResponse {}
13 changes: 13 additions & 0 deletions management/service.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
syntax = "proto3";
package management;
import "management/createProjections.proto";
import "management/updateProjections.proto";
import "management/removeProjections.proto";
import "management/getProjections.proto";

service Service {
rpc CreateProjections(CreateProjectionsRequest) returns (CreateProjectionsResponse);
rpc UpdateProjections(UpdateProjectionsRequest) returns (UpdateProjectionsResponse);
rpc RemoveProjections(RemoveProjectionsRequest) returns (RemoveProjectionsResponse);
rpc GetProjections(GetProjectionsRequest) returns (GetProjectionsResponse);
}
8 changes: 8 additions & 0 deletions management/updateProjections.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
syntax = "proto3";
package management;

message UpdateProjectionsRequest {
string schema = 1;
}

message UpdateProjectionsResponse {}

0 comments on commit f5080f9

Please sign in to comment.