Skip to content

Commit 44fca5b

Browse files
committed
替换模拟数据端点
1 parent 3d39525 commit 44fca5b

File tree

15 files changed

+17
-15
lines changed

15 files changed

+17
-15
lines changed

docs/content/getting-started/get-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public interface PostService
4141
---
4242

4343
```java
44-
private final LightCallConfig config = LightCallConfig.create("https://jsonplaceholder.typicode.com");
44+
private final LightCallConfig config = LightCallConfig.create("http://mockaroo.devlive.org");
4545
private final PostService service = LightCall.create(PostService.class, config);
4646

4747
List<Post> posts = service.getPosts();

docs/content/getting-started/processor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ public class OptionsProcessor
9797
### 注册处理器
9898

9999
```java
100-
LightCallConfig config = LightCallConfig.create("https://jsonplaceholder.typicode.com")
100+
LightCallConfig config = LightCallConfig.create("http://mockaroo.devlive.org")
101101
.addProcessor(OptionsProcessor.class);
102102
```

docs/content/usage/error.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ LightCall 支持错误处理。
2121
!!!
2222

2323
```java
24-
LightCallConfig config = LightCallConfig.create("https://jsonplaceholder.typicode.com")
24+
LightCallConfig config = LightCallConfig.create("http://mockaroo.devlive.org")
2525
.addErrorHandler(new DefaultErrorHandler());
2626
```
2727

docs/content/usage/interceptor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ LightCall 支持拦截器,可以在请求和响应之前做一些操作
2121
!!!
2222

2323
```java
24-
LightCallConfig config = LightCallConfig.create("https://jsonplaceholder.typicode.com")
24+
LightCallConfig config = LightCallConfig.create("http://mockaroo.devlive.org")
2525
.addInterceptor(new LoggingInterceptor());
2626
```
2727

lightcall-core/src/test/java/org/devlive/lightcall/example/PostModel.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
package org.devlive.lightcall.example;
22

3+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
34
import com.fasterxml.jackson.annotation.JsonInclude;
45
import lombok.Data;
56

67
import java.io.Serializable;
78

89
@Data
910
@JsonInclude(JsonInclude.Include.NON_NULL)
11+
@JsonIgnoreProperties(ignoreUnknown = true)
1012
public class PostModel
1113
implements Serializable
1214
{

lightcall-core/src/test/java/org/devlive/lightcall/example/delete/DeleteServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class DeleteServiceTest
99
{
10-
private final LightCallConfig config = LightCallConfig.create("https://jsonplaceholder.typicode.com");
10+
private final LightCallConfig config = LightCallConfig.create("http://mockaroo.devlive.org");
1111
private final DeleteService service = LightCall.create(DeleteService.class, config);
1212

1313
@Test

lightcall-core/src/test/java/org/devlive/lightcall/example/get/GetServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class GetServiceTest
99
{
10-
private final LightCallConfig config = LightCallConfig.create("https://jsonplaceholder.typicode.com");
10+
private final LightCallConfig config = LightCallConfig.create("http://mockaroo.devlive.org");
1111
private final GetService service = LightCall.create(GetService.class, config);
1212

1313
@Test

lightcall-core/src/test/java/org/devlive/lightcall/example/head/HeadServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class HeadServiceTest
99
{
10-
private final LightCallConfig config = LightCallConfig.create("https://jsonplaceholder.typicode.com");
10+
private final LightCallConfig config = LightCallConfig.create("http://mockaroo.devlive.org");
1111
private final HeadService service = LightCall.create(HeadService.class, config);
1212

1313
@Test

lightcall-core/src/test/java/org/devlive/lightcall/example/interceptor/LightCallInterceptorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class LightCallInterceptorTest
1010
{
11-
private final LightCallConfig config = LightCallConfig.create("https://jsonplaceholder.typicode.com")
11+
private final LightCallConfig config = LightCallConfig.create("http://mockaroo.devlive.org")
1212
.addInterceptor(new LoggingInterceptor());
1313
private final GetService service = LightCall.create(GetService.class, config);
1414

lightcall-core/src/test/java/org/devlive/lightcall/example/options/OptionsServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class OptionsServiceTest
99
{
10-
private final LightCallConfig config = LightCallConfig.create("https://jsonplaceholder.typicode.com");
10+
private final LightCallConfig config = LightCallConfig.create("http://mockaroo.devlive.org");
1111
private final OptionsService service = LightCall.create(OptionsService.class, config);
1212

1313
@Test

0 commit comments

Comments
 (0)