-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add custom-uri sample #1188
base: master
Are you sure you want to change the base?
add custom-uri sample #1188
Conversation
# Conflicts: # 2-advanced/dubbo-samples-triple-rest/pom.xml
} | ||
|
||
// 使用 PUT 方法测试请求体和路径变量映射 | ||
rpc UpdateGreeting(HelloRequest) returns (HelloReply) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add path variable and body: "name"
cases too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should remove the Chinese comments or replace them with English comments.
option java_package = "org.apache.dubbo.custom.uri.demo"; | ||
option java_outer_classname = "HelloWorldProto"; | ||
|
||
import "google/api/annotations.proto"; // 引入 annotations.proto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should remove the Chinese comments or replace them with English comments.
|
||
package helloworld; | ||
|
||
// 请求消息,包含用户的名字。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should remove the Chinese comments or replace them with English comments.
string name = 1; | ||
} | ||
|
||
// 响应消息,包含问候语。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should remove the Chinese comments or replace them with English comments.
string message = 1; | ||
} | ||
|
||
// 服务定义,带有自定义 HTTP 映射。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should remove the Chinese comments or replace them with English comments.
|
||
// 服务定义,带有自定义 HTTP 映射。 | ||
service Greeter { | ||
// 使用 POST 方法测试请求体映射 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should remove the Chinese comments or replace them with English comments.
}; | ||
} | ||
|
||
// 使用 PUT 方法测试请求体和路径变量映射 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should remove the Chinese comments or replace them with English comments.
add custom-uri sample