Skip to main content

# Let's practice some transcoding

Try to expose the other methods in our Speaker service. Test them with Postman

1. Expose the SpeakerService UpdateAsync operation also as PUT request to browser
2. Expose the SpeakerService Create operation also as POST request to browser
3. Expose the SpeakerService Delete opearation as a DELETE request to the browser

Practice, don't open me!
PUT

    rpc Update (SpeakerUpdateRequest) returns (google.protobuf.Empty) {
      option (google.api.http) = {
          put: "/v1/speakers/{Id}"
          body: "*"
        };
    }

DELETE

    rpc Delete (SpeakerFilterRequest) returns (google.protobuf.Empty) {
      option (google.api.http) = {
          delete: "/v1/speakers/{Id}"
        };
    }

POST

    rpc Create (SpeakerCreateRequest) returns (SpeakerResponse) {
         option (google.api.http) = {
          post: "/v1/speakers"
          body: "*"
        };
    }