Commit e8a079f5 authored by Łukasz Nowak's avatar Łukasz Nowak

Improve API.

status will be not sent. log is not decided yet.
parent 810f0e94
...@@ -285,15 +285,13 @@ Modify the instance information and status. ...@@ -285,15 +285,13 @@ Modify the instance information and status.
{ {
"title": "The New Instance Title", "title": "The New Instance Title",
"status": "started", # one of: started, stopped, updating, error
"log": "explanation of the status",
"connection": { "connection": {
"custom_connection_parameter_1": "foo", "custom_connection_parameter_1": "foo",
"custom_connection_parameter_2": "bar" "custom_connection_parameter_2": "bar"
} }
} }
Where `status` is required with `log`, `connection` and `title` are optional and their existence allow to not send `status` and `log`. Where `connection` and `title` are optional.
Setting different. Setting different.
...@@ -303,15 +301,10 @@ Setting different. ...@@ -303,15 +301,10 @@ Setting different.
Content-Type: application/json; charset=utf-8 Content-Type: application/json; charset=utf-8
{ {
'action': ['Action description', 'Action description', ...] "connection": "Modified",
"title": "Modified."
} }
Where `action` describes what happened:
* 'Renamed' (where title was different)
* 'Updated status' (where status changed)
* 'Updated connection information' (where connection changed)
`Additional Responses`:: `Additional Responses`::
HTTP/1.1 204 No Content HTTP/1.1 204 No Content
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment