transform.proto 345 B

123456789101112131415161718192021222324
  1. syntax = "proto3";
  2. package transform;
  3. message expandReq {
  4. string shorten = 1;
  5. }
  6. message expandResp {
  7. string url = 1;
  8. }
  9. message shortenReq {
  10. string url = 1;
  11. }
  12. message shortenResp {
  13. string shorten = 1;
  14. }
  15. service transformer {
  16. rpc expand(expandReq) returns(expandResp);
  17. rpc shorten(shortenReq) returns(shortenResp);
  18. }