$ curl -X POST \ http://127.0.0.1:8080/v1/books \ -H 'Content-Type: text/plain' \ -d '{ allBooks { isbn title } book(id: "9787121362132") { title authors publisher publishedDate } }' | jq % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 930 0 785 100 145 3866 714 --:--:-- --:--:-- --:--:-- 4581 { "errors": [], "data": { "allBooks": [ { "isbn": "9787111213826", "title": "Java 编程思想(第4版)" }, { "isbn": "9787111421900", "title": "深入理解 Java 虚拟机:JVM 高级特性与最佳实践(第2版)" }, { "isbn": "9787115221704", "title": "重构 改善既有代码的设计(第2版)" }, { "isbn": "9787121362132", "title": "高可用可伸缩微服务架构:基于 Dubbo、Spring Cloud 和 Service Mesh" }, { "isbn": "9787302392644", "title": "人月神话(40周年中文纪念版)" } ], "book": { "title": "高可用可伸缩微服务架构:基于 Dubbo、Spring Cloud 和 Service Mesh", "authors": [ "程超", "梁桂钊", "秦金卫", "方志斌", "张逸", "杜琪", "殷琦", "肖冠宇" ], "publisher": "电子工业出版社", "publishedDate": "2019-05-01" } }, "extensions": null, "dataPresent": true }
|