Skip to content

Commit 2576702

Browse files
committed
Use public interface for HTTP Interface documentation
Closes gh-34443
1 parent 2099e04 commit 2576702

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

framework-docs/modules/ROOT/pages/integration/rest-clients.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ Start by creating the interface with `@HttpExchange` methods:
857857

858858
[source,java,indent=0,subs="verbatim,quotes"]
859859
----
860-
interface RepositoryService {
860+
public interface RepositoryService {
861861
862862
@GetExchange("/repos/{owner}/{repo}")
863863
Repository getRepository(@PathVariable String owner, @PathVariable String repo);
@@ -908,7 +908,7 @@ For `RestTemplate`:
908908
[source,java,indent=0,subs="verbatim,quotes"]
909909
----
910910
@HttpExchange(url = "/repos/{owner}/{repo}", accept = "application/vnd.github.v3+json")
911-
interface RepositoryService {
911+
public interface RepositoryService {
912912
913913
@GetExchange
914914
Repository getRepository(@PathVariable String owner, @PathVariable String repo);

framework-docs/src/main/java/org/springframework/docs/integration/resthttpinterface/customresolver/CustomHttpServiceArgumentResolver.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
public class CustomHttpServiceArgumentResolver {
3030

3131
// tag::httpinterface[]
32-
interface RepositoryService {
32+
public interface RepositoryService {
3333

3434
@GetExchange("/repos/search")
3535
List<Repository> searchRepository(Search search);

0 commit comments

Comments
 (0)