Start adding the projects API
All checks were successful
ci/woodpecker/push/dart-generate Pipeline was successful
ci/woodpecker/push/go-generate Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/js-generate Pipeline was successful
ci/woodpecker/push/repo-checks Pipeline was successful
All checks were successful
ci/woodpecker/push/dart-generate Pipeline was successful
ci/woodpecker/push/go-generate Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/js-generate Pipeline was successful
ci/woodpecker/push/repo-checks Pipeline was successful
Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
This commit is contained in:
@@ -22,6 +22,8 @@ steps:
|
||||
- buf generate
|
||||
- rm -rf ./target/pkg/*
|
||||
- cp -r ./gen/go/* ./target/pkg
|
||||
- cp README.md ./target/APIDoc.md
|
||||
|
||||
- name: Clone go repo
|
||||
image: alpine
|
||||
environment:
|
||||
|
||||
@@ -20,6 +20,7 @@ plugins:
|
||||
out: .
|
||||
opt:
|
||||
- markdown,README.md
|
||||
|
||||
- remote: buf.build/protocolbuffers/dart:v25.0.0
|
||||
out: gen/dart/lib/src
|
||||
opt:
|
||||
|
||||
20
proto/projects/v1/projects_v1.proto
Normal file
20
proto/projects/v1/projects_v1.proto
Normal file
@@ -0,0 +1,20 @@
|
||||
/// Protobuf definitions for the accounts service.
|
||||
syntax = "proto3";
|
||||
package projects.v1;
|
||||
option go_package = "gitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/projects/v1";
|
||||
|
||||
service ProjectsService {
|
||||
rpc CreateProject (CreateProjectRequest) returns (CreateProjectResponse) {}
|
||||
rpc GetProject (GetProjectRequest) returns (GetProjectResponse) {}
|
||||
rpc ListProjects (ListProjectsRequest) returns (stream ListProjectsResponse) {}
|
||||
rpc UpdateProject (UpdateProjectRequest) returns (UpdateProjectResponse) {}
|
||||
}
|
||||
|
||||
message CreateProjectRequest {}
|
||||
message CreateProjectResponse {}
|
||||
message GetProjectRequest {}
|
||||
message GetProjectResponse {}
|
||||
message ListProjectsRequest {}
|
||||
message ListProjectsResponse {}
|
||||
message UpdateProjectRequest {}
|
||||
message UpdateProjectResponse {}
|
||||
Reference in New Issue
Block a user