Sfoglia il codice sorgente

* 20170721

    * 1st bulk:
        * [master 2163c8d] added dependency fro fake-zinc to zinc-java-sdk + updated postOrder method
        * [master ba83797] forced maxPrice at 0 by default, to avoid bad surprises while developing
        * [master 22ddfb4] Zinc.io API integration: added POGO for SupportedRetailer
        * [master 5da3d83] added dependency from p2p1-model to zinc-java-sdk
        * [master dc1f90f] added fields retailer and productId in Asset + reorder Maven's reactor
Jonathan LALOU 7 anni fa
parent
commit
bd7b6e9061
2 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. 5
    0
      pom.xml
  2. 2
    1
      src/main/java/fr/sayasoft/fake/zinc/FakeZincController.java

+ 5
- 0
pom.xml Vedi File

@@ -38,6 +38,11 @@
38 38
             <artifactId>json-path</artifactId>
39 39
             <scope>test</scope>
40 40
         </dependency>
41
+        <dependency>
42
+            <groupId>fr.sayasoft</groupId>
43
+            <artifactId>zinc-java-sdk</artifactId>
44
+            <version>1.0-SNAPSHOT</version>
45
+        </dependency>
41 46
     </dependencies>
42 47
 
43 48
     <properties>

+ 2
- 1
src/main/java/fr/sayasoft/fake/zinc/FakeZincController.java Vedi File

@@ -1,5 +1,6 @@
1 1
 package fr.sayasoft.fake.zinc;
2 2
 
3
+import fr.sayasoft.zinc.sdk.pogo.OrderRequest;
3 4
 import org.springframework.http.HttpStatus;
4 5
 import org.springframework.http.ResponseEntity;
5 6
 import org.springframework.web.bind.annotation.PathVariable;
@@ -70,7 +71,7 @@ public class FakeZincController {
70 71
             method = RequestMethod.POST,
71 72
             produces = "application/json; charset=UTF-8"
72 73
     )
73
-    public ResponseEntity<?> postOrder(@RequestBody Object requestBody) {
74
+    public ResponseEntity<?> postOrder(@RequestBody OrderRequest requestBody) {
74 75
         return new ResponseEntity<>(POST_ORDER_RESPONSE, HttpStatus.CREATED);
75 76
     }
76 77
 }