Microservices Deployment Cookbook by Vikram Murugesan

Microservices Deployment Cookbook by Vikram Murugesan

Author:Vikram Murugesan [Murugesan, Vikram]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2017-01-30T16:00:00+00:00


Now that you know your pod and container are up and running, let's send a couple of geolocations to the POST API. Use the following two curl commands to create geolocations: curl -H "Content-Type: application/json" -X POST -d '{"timestamp": 1468203975, "userId": "f1196aac-470e-11e6-beb8-9e71128cae77", "latitude": 41.803488, "longitude": -88.144040}' http://localhost:8085/geolocation

This should give you an output similar to the following (pretty-printed for readability): { "latitude": 41.803488, "longitude": -88.14404, "userId": "f1196aac-470e-11e6-beb8-9e71128cae77", "timestamp": 1468203975 } curl -H "Content-Type: application/json" -X POST -d '{"timestamp": 1468203976, "userId": "f1196aac-470e-11e6-beb8-9e71128cae77", "latitude": 9.568012, "longitude": 77.962444}' http://localhost:8085/geolocation



Download



Copyright Disclaimer:
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.