Distributed Computing with Go by V.N. Nikhil Anurag
Author:V.N. Nikhil Anurag
Language: eng
Format: epub
Tags: COM051000 - COMPUTERS / Programming / General, COM048000 - COMPUTERS / Systems Architecture / Distributed Systems and Computing, COM051220 - COMPUTERS / Programming / Parallel
Publisher: Dominic Shakeshaft
Published: 2018-02-28T06:07:31+00:00
GET
Let's now look at cURL commands to make HTTP requests. Depending on the state of your server, the output on making the GET Request might be different:
$ # List all books on server $ # Note that we use '-L' flag while using cURL. $ # This takes care of any http redirections that might be required. $ curl -L localhost:8080/api/books | jq # GET CALL % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 46 100 46 0 0 9721 0 --:--:-- --:--:-- --:--:-- 11500 100 311 100 311 0 0 59589 0 --:--:-- --:--:-- --:--:-- 59589 [ { "id": "3", "title": "Book-3", "link": "http://link-to-book3.com" }, { "id": "4", "title": "Book-4", "link": "http://link-to-book4.com" }, { "id": "5", "title": "Book-5", "link": "http://link-to-book5.com" }, { "id": "1", "title": "Book-1", "link": "http://link-to-book1.com" }, { "id": "2", "title": "Book-2", "link": "http://link-to-book2.com" } ] $ curl localhost:8080/api/books/3 | jq # GET a single resource. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 61 100 61 0 0 13255 0 --:--:-- --:--:-- --:--:-- 15250 { "id": "3", "title": "Book-3", "link": "http://link-to-book3.com" }
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(26291)
Hello! Python by Anthony Briggs(25216)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(24446)
Kotlin in Action by Dmitry Jemerov(23536)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(22880)
Dependency Injection in .NET by Mark Seemann(22667)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(21431)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(20273)
Grails in Action by Glen Smith Peter Ledbrook(19343)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(17056)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(16366)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(14077)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(12255)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(11533)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10644)
Hit Refresh by Satya Nadella(9221)
The Kubernetes Operator Framework Book by Michael Dame(8579)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8432)
Robo-Advisor with Python by Aki Ranin(8376)