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

Fix: GoRestServer can't deploy the HTTP interfaces with same path and different method type #676

Merged
merged 2 commits into from
Aug 1, 2020

Conversation

Patrick0308
Copy link
Contributor

@Patrick0308 Patrick0308 commented Jul 28, 2020

now if we config this

  "UserProvider":
    protocol : "rest"
    # 相当于dubbo.xml中的interface
    interface : "com.ikurento.user.UserProvider"
    rest_path: "/UserProvider"
    methods:
    - name: "GetUser"
      rest_path: "/GetUser"
      rest_method: "GET"
      rest_query_params: "0:id"
    - name: "GetUser0"
      rest_path: "/GetUser"
      rest_method: "POST"
      rest_produces: "application/json"
      rest_consumes: "application/json;charset=utf-8,*/*"

Some error was happen.

image

What this PR does:
make GoRestServer support to deploy the HTTP interfaces with same path and different method type

Copy link
Member

@zouyx zouyx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix travis pls.

Should you describe how to use this feature? like add a document or samples.....?

@AlexStocks AlexStocks merged commit db1e5da into apache:develop Aug 1, 2020
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.

4 participants