File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ Response Codes:
357
357
358
358
### Start _ application_
359
359
````
360
- POST /applications/<application>/start?user=<username>
360
+ POST /applications/<application>/start?user.name =<username>
361
361
362
362
Response Codes:
363
363
202 - Accepted, poll /applications/<application>/status for status
@@ -371,7 +371,7 @@ user - User with permisson to perform this action on the application should be p
371
371
372
372
### Stop _ application_
373
373
````
374
- POST /applications/<application>/stop?user=<username>
374
+ POST /applications/<application>/stop?user.name =<username>
375
375
376
376
Response Codes:
377
377
202 - Accepted, poll /applications/<application>/status for status
@@ -426,7 +426,7 @@ Example response:
426
426
### Create _ application_ from _ package_
427
427
428
428
````
429
- PUT /applications/<application>?user=<username>
429
+ PUT /applications/<application>?user.name =<username>
430
430
{
431
431
"package": "<package>",
432
432
"<componentType>": {
@@ -461,7 +461,7 @@ Package is mandatory, property settings are optional
461
461
462
462
### Destroy _ application_
463
463
````
464
- DELETE /applications/<application>?user=<username>
464
+ DELETE /applications/<application>?user.name =<username>
465
465
466
466
Response Codes:
467
467
200 - OK
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ def do_call():
224
224
class ApplicationDetailHandler (BaseHandler ):
225
225
@asynchronous
226
226
def post (self , name , action ):
227
- user_name = self .get_argument ("user" )
227
+ user_name = self .get_argument ("user.name " )
228
228
def do_call ():
229
229
if action == 'start' :
230
230
dm .start_application (name , user_name )
@@ -270,9 +270,9 @@ def put(self, aname):
270
270
return
271
271
272
272
if 'user' in request_body :
273
- self .send_client_error ("Invalid request body. User should be passed in URI" )
273
+ self .send_client_error ("Invalid request body. User should be passed as URI parameter user.name " )
274
274
return
275
- user_name = self .get_argument ("user" )
275
+ user_name = self .get_argument ("user.name " )
276
276
def do_call ():
277
277
request_body .update ({'user' : user_name })
278
278
dm .create_application (request_body ['package' ], aname , request_body )
@@ -289,7 +289,7 @@ def do_call():
289
289
290
290
@asynchronous
291
291
def delete (self , name ):
292
- user_name = self .get_argument ("user" )
292
+ user_name = self .get_argument ("user.name " )
293
293
def do_call ():
294
294
dm .delete_application (name , user_name )
295
295
self .send_accepted ()
You can’t perform that action at this time.
0 commit comments