// Copyright (C) 2023 The Licensing Authors // SPDX-License-Identifier: MIT // // This file attempts to follow common styles and design patterns described by // Google Cloud based on their extensive use of protocol buffers. // // - See here for more: https://cloud.google.com/apis/design/design_patterns // syntax = "proto3"; package contributors.v1; import "google/api/annotations.proto"; message ListRequest {} message ListResponse {} message CreateRequest {} message CreateResponse {} message UpdateRequest {} message UpdateResponse {} message DeleteRequest {} message DeleteResponse {} service ContributorService { rpc List(ListRequest) returns (ListResponse) { option (google.api.http) = { get: "/v1/products/{product_id}/contributors" }; }; rpc Create(CreateRequest) returns (CreateResponse) { option (google.api.http) = { post: "/v1/products/{product_id}/contributors" body: "*" }; }; rpc Update(UpdateRequest) returns (UpdateResponse) { option (google.api.http) = { post: "/v1/products/{product_id}/contributors/{contributor_id}" body: "*" }; }; rpc Delete(DeleteRequest) returns (DeleteResponse) { option (google.api.http) = { delete: "/v1/products/{product_id}/contributors/{contributor_id}" }; }; }