1
proto/users/v1/service.proto
mya f068352bf7
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: fill out apis
2023-12-31 13:41:06 -06:00

42 lines
839 B
Protocol Buffer

// 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 users.v1;
import "google/api/annotations.proto";
message SignupRequest {
string email = 1;
string password = 2;
}
message SignupResponse {}
message CurrentRequest {}
message CurrentResponse {}
service UserService {
rpc Signup(SignupRequest) returns (SignupResponse) {
option (google.api.http) = {
post: "/v1/users"
body: "*"
};
};
rpc Current(CurrentRequest) returns (CurrentResponse) {
option (google.api.http) = {
get: "/v1/users/current"
};
};
}