Skip to content
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

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Conversation

heliang666s
Copy link
Contributor

add custom-uri sample

}

// 使用 PUT 方法测试请求体和路径变量映射
rpc UpdateGreeting(HelloRequest) returns (HelloReply) {
Copy link
Contributor

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.

Copy link
Contributor

@wcy666103 wcy666103 left a 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
Copy link
Contributor

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;

// 请求消息,包含用户的名字。
Copy link
Contributor

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;
}

// 响应消息,包含问候语。
Copy link
Contributor

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 映射。
Copy link
Contributor

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 方法测试请求体映射
Copy link
Contributor

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 方法测试请求体和路径变量映射
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants