Sha256: e9f027695227f688e4b19648dd085f5b2e4f08d317a5ccf17e60ab3ac13be70f
Contents?: true
Size: 872 Bytes
Versions: 3
Compression:
Stored size: 872 Bytes
Contents
<%- assert_locals method -%> ## # GRPC transcoding helper method for the <%= method.name %> REST call # # @param request_pb [<%= method.request_type %>] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def <%= method.rest.transcoding_helper_name %> request_pb uri = "<%= method.rest.uri_interpolated %>" <%- if method.rest.body? -%> body = <%= method.rest.body_interpolated %> <%- else -%> body = nil <%- end -%> query_string_params = {} <%- if method.rest.query_string_params? -%> <%- method.rest.query_string_params.each do |field| -%> <%= render partial: "service/rest/service_stub/grpc_transcoding_method/def/query_string_param", locals: { field: field } -%> <%- end -%> <%- end -%> [uri, body, query_string_params] end
Version data entries
3 entries across 3 versions & 1 rubygems