Change urls for API

Urls have been changed to be consistent with other nailgun API

Change-Id: I1c8568f1cf6f3649d22da637e7d8378f9b1d91d9
This commit is contained in:
Andriy Popovych 2015-02-25 12:44:15 +02:00
parent 45305ec303
commit e67654d263

View File

@ -104,12 +104,20 @@ REST API impact
There is a new REST API URL added:
====== =================================== =======
method URL action
====== =================================== =======
GET /api/v1/vmware/:cluster_id/settings Get all cluster settings
PUT /api/v1/vmware/:cluster_id/settings Write updated clusted settings
====== =================================== =======
+--------+--------------------------------------------------+----------------+
| method | URL | action |
| | | |
+========+==================================================+================+
| GET | /api/v1/clusters/:id/vmware_attributes | Get cluster |
| | | vmware settings|
+--------+--------------------------------------------------+----------------+
| PUT | /api/v1/clusters/:id/vmware_attributes | Write updated |
| | | vmware clusterd|
| | | settings |
+--------+--------------------------------------------------+----------------+
| GET | /api/v1/clusters/:id/vmware_attributes/defaults/ | Get default |
| | | vmware settings|
+--------+--------------------------------------------------+----------------+
GET returns JSON with the following structure