Horizon/RESTAPI
< Horizon
Revision as of 00:36, 19 February 2015 by Travis Tripp (talk | contribs) (Created page with " To Test the Horizon REST APIs using POSTMAN (Chrome Plugin)ː # Login normally going to the exact API address (or localhost) that you'll use from POSTMAN === GET requests =...")
To Test the Horizon REST APIs using POSTMAN (Chrome Plugin)ː
- Login normally going to the exact API address (or localhost) that you'll use from POSTMAN
GET requests
Input the URL. For exampleː http://127.0.0.1:8005/api/glance/images Set the following headers
Header | Value |
---|---|
X-Requested-With | XMLHttpRequest |
POST requests
Input the URL. For exampleː http://127.0.0.1:8005/api/nova/keypairs/
Set the following headers
Header | Value |
---|---|
X-Requested-With | XMLHttpRequest |
Content-Type | application/json |
X-CSRFToken | a current token |
Set the raw content as JSON formatted.
Exampleː
{ "name":"foo" }