Skip to content

Commit

Permalink
fix files
Browse files Browse the repository at this point in the history
  • Loading branch information
heliang666s committed Jan 15, 2025
1 parent c36fe23 commit 7cea410
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

public interface DemoService {

String hello(String name);

String hello(User user,int count);

String helloUser(User user);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@
@OpenAPI(infoTitle = "Dubbo OpenAPI", infoDescription = "This API provides greeting services for users.", infoVersion = "v1", docDescription = "API for greeting users with their names and titles.")
public class DemoServiceImpl implements DemoService {

@Operation(description = "Returns a greeting message with the provided name.")
@Override
public String hello(@Schema(description = "Name of the person to greet") String name) {
return "Hello " + name;
}

@Operation(description = "Returns a greeting message with user's title and name, along with a count.")
@Override
public String hello(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,5 @@ public void helloWithRest() {
Assert.assertNotNull("OpenAPI documentation response should not be null", result);
Assert.assertTrue(result.contains("/org.apache.dubbo.rest.demo.DemoService/hello"));
Assert.assertTrue(result.contains("/org.apache.dubbo.rest.demo.DemoService/helloUser"));
Assert.assertTrue(result.contains("/org.apache.dubbo.rest.demo.DemoService/hi"));
}
}

0 comments on commit 7cea410

Please sign in to comment.