Merge branch '6.2.x'
This commit is contained in:
commit
bc82077350
|
@ -857,7 +857,7 @@ Start by creating the interface with `@HttpExchange` methods:
|
||||||
|
|
||||||
[source,java,indent=0,subs="verbatim,quotes"]
|
[source,java,indent=0,subs="verbatim,quotes"]
|
||||||
----
|
----
|
||||||
interface RepositoryService {
|
public interface RepositoryService {
|
||||||
|
|
||||||
@GetExchange("/repos/{owner}/{repo}")
|
@GetExchange("/repos/{owner}/{repo}")
|
||||||
Repository getRepository(@PathVariable String owner, @PathVariable String repo);
|
Repository getRepository(@PathVariable String owner, @PathVariable String repo);
|
||||||
|
@ -908,7 +908,7 @@ For `RestTemplate`:
|
||||||
[source,java,indent=0,subs="verbatim,quotes"]
|
[source,java,indent=0,subs="verbatim,quotes"]
|
||||||
----
|
----
|
||||||
@HttpExchange(url = "/repos/{owner}/{repo}", accept = "application/vnd.github.v3+json")
|
@HttpExchange(url = "/repos/{owner}/{repo}", accept = "application/vnd.github.v3+json")
|
||||||
interface RepositoryService {
|
public interface RepositoryService {
|
||||||
|
|
||||||
@GetExchange
|
@GetExchange
|
||||||
Repository getRepository(@PathVariable String owner, @PathVariable String repo);
|
Repository getRepository(@PathVariable String owner, @PathVariable String repo);
|
||||||
|
|
|
@ -29,7 +29,7 @@ import org.springframework.web.service.invoker.HttpServiceProxyFactory;
|
||||||
public class CustomHttpServiceArgumentResolver {
|
public class CustomHttpServiceArgumentResolver {
|
||||||
|
|
||||||
// tag::httpinterface[]
|
// tag::httpinterface[]
|
||||||
interface RepositoryService {
|
public interface RepositoryService {
|
||||||
|
|
||||||
@GetExchange("/repos/search")
|
@GetExchange("/repos/search")
|
||||||
List<Repository> searchRepository(Search search);
|
List<Repository> searchRepository(Search search);
|
||||||
|
|
Loading…
Reference in New Issue