Skip to content
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

feat: More REST annotations #100

Merged
merged 2 commits into from
Jan 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion idl/licenseapis/buf.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: v1
name: buf.build/kevinmichaelchen/licenseapis
deps:
- buf.build/bufbuild/protovalidate:e097f827e65240ac9fd4b1158849a8fc
- buf.build/bufbuild/protovalidate
- buf.build/googleapis/googleapis
breaking:
use:
Expand Down
2 changes: 2 additions & 0 deletions idl/licenseapis/license/v1beta1/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import "google/protobuf/timestamp.proto";
service LicenseService {
// Creates a new License.
rpc CreateLicense(CreateLicenseRequest) returns (CreateLicenseResponse) {
option (google.api.http).post = "/licenses/{id}";
option (google.api.http).body = "*";
option idempotency_level = IDEMPOTENT;
}
// Get a License.
Expand Down
2 changes: 1 addition & 1 deletion idl/orgapis/buf.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: v1
name: buf.build/kevinmichaelchen/orgapis
deps:
- buf.build/bufbuild/protovalidate:e097f827e65240ac9fd4b1158849a8fc
- buf.build/bufbuild/protovalidate
- buf.build/googleapis/googleapis
breaking:
use:
Expand Down
2 changes: 2 additions & 0 deletions idl/orgapis/org/v1beta1/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import "google/api/annotations.proto";
service OrgService {
// CreateOrg - Creates a new Organization.
rpc CreateOrg(CreateOrgRequest) returns (CreateOrgResponse) {
option (google.api.http).post = "/orgs/{id}";
option (google.api.http).body = "*";
option idempotency_level = IDEMPOTENT;
}
// GetOrg - Gets an Organization.
Expand Down
2 changes: 1 addition & 1 deletion idl/profileapis/buf.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: v1
name: buf.build/kevinmichaelchen/profileapis
deps:
- buf.build/bufbuild/protovalidate:e097f827e65240ac9fd4b1158849a8fc
- buf.build/bufbuild/protovalidate
- buf.build/googleapis/googleapis
breaking:
use:
Expand Down
2 changes: 2 additions & 0 deletions idl/profileapis/profile/v1beta1/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import "google/api/annotations.proto";
service ProfileService {
// CreateProfile - Creates a new user profile.
rpc CreateProfile(CreateProfileRequest) returns (CreateProfileResponse) {
option (google.api.http).post = "/profiles/{id}";
option (google.api.http).body = "*";
option idempotency_level = IDEMPOTENT;
}
// GetProfile - Gets a Profile.
Expand Down
5 changes: 5 additions & 0 deletions idl/temporalapis/buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ deps:
repository: protovalidate
commit: e097f827e65240ac9fd4b1158849a8fc
digest: shake256:f19252436fd9ded945631e2ffaaed28247a92c9015ccf55ae99db9fb3d9600c4fdb00fd2d3bd7701026ec2fd4715c5129e6ae517c25a59ba690020cfe80bf8ad
- remote: buf.build
owner: googleapis
repository: googleapis
commit: a86849a25cc04f4dbe9b15ddddfbc488
digest: shake256:e19143328f8cbfe13fc226aeee5e63773ca494693a72740a7560664270039a380d94a1344234b88c7691311460df9a9b1c2982190d0a2612eae80368718e1943
3 changes: 2 additions & 1 deletion idl/temporalapis/buf.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
version: v1
name: buf.build/kevinmichaelchen/temporalapis
deps:
- buf.build/bufbuild/protovalidate:e097f827e65240ac9fd4b1158849a8fc
- buf.build/bufbuild/protovalidate
- buf.build/googleapis/googleapis
breaking:
use:
- FILE
Expand Down
6 changes: 5 additions & 1 deletion idl/temporalapis/temporal/v1beta1/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ syntax = "proto3";
package temporal.v1beta1;

import "buf/validate/validate.proto";
import "google/api/annotations.proto";
import "google/protobuf/timestamp.proto";

// Service for managing Temporal workflows.
Expand All @@ -11,7 +12,10 @@ service TemporalService {
// 1. Create an Org
// 2. Create a Profile
// 3. Create a License
rpc CreateOnboardingWorkflow(CreateOnboardingWorkflowRequest) returns (CreateOnboardingWorkflowResponse) {}
rpc CreateOnboardingWorkflow(CreateOnboardingWorkflowRequest) returns (CreateOnboardingWorkflowResponse) {
option (google.api.http).post = "/temporal/workflows/onboarding";
option (google.api.http).body = "*";
}
}

message WorkflowOptions {
Expand Down
Loading