Skip to content

Commit

Permalink
Fix docs. Reformat.
Browse files Browse the repository at this point in the history
  • Loading branch information
OlgaMaciaszek committed May 16, 2024
1 parent 97148c5 commit 3b2242a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions docs/modules/ROOT/pages/spring-cloud-openfeign.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public interface StoreClient {
@GetMapping("/stores")
Page<Store> getStores(Pageable pageable);
@PostMapping(value = "/stores/{storeId}", consumes = "application/json", params = "mode=upsert")
@PostMapping(value = "/stores/{storeId}", consumes = "application/json",
params = "mode=upsert")
Store update(@PathVariable("storeId") Long storeId, Store store);
@DeleteMapping("/stores/{storeId:\\d+}")
Expand Down Expand Up @@ -723,11 +724,11 @@ public interface DemoTemplate {
}
----

In the above example, the request url is resolved to `/stores/{storeId}?mode=upsert`. +
In the above example, the request url is resolved to `/stores/storeId?mode=upsert`. +
The params attribute also supports the use of multiple `key=value` or only one `key`: +

- When `params = { "key1=v1", "key2=v2" }`, the request url is parsed as `/stores/{storeId}?key1=v1&key2=v2`.
- When `params = "key"`, the request url is parsed as `/stores/{storeId}?key`.
- When `params = { "key1=v1", "key2=v2" }`, the request url is parsed as `/stores/storeId?key1=v1&key2=v2`.
- When `params = "key"`, the request url is parsed as `/stores/storeId?key`.



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ private void registerMethodHints(ReflectionHints hints, Class<?> clazz) {
introspectPublicMethodsOnAllInterfaces(hints, clazz);
}

// TODO: switch to reflectionHints.registerForInterfaces(...) after upgrading to Framework 6.2.0
// TODO: switch to reflectionHints.registerForInterfaces(...) after upgrading to
// Framework 6.2.0
// from Spring Framework BeanRegistrationsAotContribution
private void introspectPublicMethodsOnAllInterfaces(ReflectionHints hints, Class<?> clazz) {
Class<?> currentClass = clazz;
Expand Down

0 comments on commit 3b2242a

Please sign in to comment.