Hi All,

As discussed in mail thread[1] we had a requirement to add an API which
allows to change the owner of a created application. During the initial
discussions we decided to add this api to the existing admin REST APIs.
After going through the APIs I thought to add below 2 resources.


1. The following GET resource will list all the apis created by the given
user. This will be same as the store application listing API but lists
application for the given username rather than listing the applications
created user associated with the provided access token.

This will return the
GET  /applications

Parameters
query username


Sample Response :
{
   "count": 2,
   "next": "",
   "previous": "",
   "list":    [
            {
         "applicationId": "b16ce8d0-5e0b-4259-96e2-68151cc92489",
         "name": "AppX",
         "subscriber": "admin",
         "throttlingTier": "Unlimited",
         "description": "",
         "status": "APPROVED",
         "groupId": ""
      },
            {
         "applicationId": "aac0df98-8e26-4dda-b0ba-d794c98249c2",
         "name": "AppY",
         "subscriber": "admin",
         "throttlingTier": "Unlimited",
         "description": null,
         "status": "APPROVED",
         "groupId": ""
      }
   ]
}


2. Following POST Resource is similar to the one we have for lifecycle
change. This will change the owner of the given application
POST /applications/change-owner

Parameters
query application UUID
query newOwner

Sample Response :

{
   "applicationId": "6edcac5e-4df3-42fe-8a21-07c114085bcb",
   "name": "AppY",
   "subscriber": "newOwner",
   "throttlingTier": "Unlimited",
   "callbackUrl": null,
   "description": "",
   "status": "APPROVED",
   "groupId": ""
}

Please let me know your thoughts on this.

[1] Application Sharing support for Multiple Groups

Thanks,
Sam


-- 
*Sam Sivayogam*

Senior Software Engineer
Mobile  : +94 772 906 439
Office   : +94 112 145 345
*WSO2, Inc. :** wso2.com <http://wso2.com/>*
lean.enterprise.middleware.
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to