Skip to content

Commit 894cd1e

Browse files
committed
Add response to create Entity
1 parent 1d80b30 commit 894cd1e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/city/makeour/moc/MocClient.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import java.security.InvalidKeyException;
44
import java.security.NoSuchAlgorithmException;
55

6+
import org.springframework.web.client.RestClient.ResponseSpec;
7+
68
import city.makeour.moc.ngsiv2.Ngsiv2Client;
79
import city.makeour.ngsi.v2.api.EntitiesApi;
810
import city.makeour.ngsi.v2.invoker.ApiClient;
@@ -87,7 +89,7 @@ public void setFiwareService(String fiwareService) {
8789
this.client.getApiClient().addDefaultHeader("Fiware-Service", fiwareService);
8890
}
8991

90-
public void createEntity(String contentType, Object body) {
91-
this.client.createEntity(contentType, body);
92+
public ResponseSpec createEntity(String contentType, Object body) {
93+
return this.client.createEntity(contentType, body);
9294
}
9395
}

0 commit comments

Comments
 (0)