Difference between revisions of "RESTful and SOAP calls"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
			
		
		
	
 (Created page with "= Use curl to test RESTful API =   curl --insecure -X GET \   --header "Accept: application/json" \   --header "Authorization: Bearer geasrExampleTokengwsdvb" \   <nowiki>"htt...")  | 
			
(No difference) 
 | 
Revision as of 10:09, 27 September 2016
Use curl to test RESTful API
curl --insecure -X GET \ --header "Accept: application/json" \ --header "Authorization: Bearer geasrExampleTokengwsdvb" \ "https://host1.aws.example.com/ApiBaseLocation/v1/ApiName/Value"
Options explained
--insecuredisables ssl checks like the certificate chain check, etc.-X, --request <command>it defaults to GET commands, check HTTP1.1 specification for more-H, --header <header>(HTTP) Extra header to include in the request when sending HTTP to a server
References
- How to test a REST api from command line with curl codingpedia.org
 - Chrome Postan Addon advanced UI addon to test Restful API. You may need to disable SSL verification in chrome://flags/#allow-insecure-localhost