Hi Dushani,

>From the Rest API, it looks good, From the UI POV, Its good to separate the
UI from Scopes.

@Chanaka Jayasena <[email protected]> , @Harsha Kumara <[email protected]>
WDYT ?
Thanks

On Fri, Jan 3, 2020 at 9:38 AM Dunith Dhanushka <[email protected]> wrote:

> Hi Dushani,
>
> Looks good. Let's proceed with this.
>
> Thanks,
> Dunith
>
> On Thu, Jan 2, 2020 at 10:00 PM Harsha Kumara <[email protected]> wrote:
>
>> +Dunith Dhanushka <[email protected]>
>>
>> Looks good. May be we should separate the API provider from the API
>> column.
>>
>> On Thu, Jan 2, 2020 at 7:26 PM Dushani Wellappili <[email protected]>
>> wrote:
>>
>>> Hi all,
>>>
>>> I am working on the $subject which includes a global view to see all the
>>> API scopes created and attached to each API resource. The plan is to add
>>> this capability to API Publisher Portal. As for the initial phase, we will
>>> only create a read-only view of the scopes similar to the below
>>> work-in-progress UI design.
>>> [image: scope.png]
>>>
>>> From the second phase onwards, we will improve the above design as we
>>> are planning to add support for managing global scopes and providing
>>> support for multiple scopes for API resources. When supporting the
>>> management of global scopes in the same view, we need to consider a way to
>>> separate the API specific scopes and global scopes. Hence appreciate your
>>> comments/suggestions to improve the above UI design.
>>>
>>> The following resource will be added to the Publisher REST API to load
>>> the scope details for the read-only UI.
>>>
>>> ######################################################
>>>
>>> # The "Scopes" resource APIs
>>>
>>> ######################################################
>>>
>>>   /scopes
>>>
>>>
>>> #-------------------------------------------------------------
>>>
>>> # Retrieve the scopes list
>>>
>>> #-------------------------------------------------------------
>>>
>>>     get:
>>>
>>>       security:
>>>
>>>         - OAuth2Security:
>>>
>>>           - apim:api_view
>>>
>>>       summary: Get the list of scopes
>>>
>>>       responses:
>>>
>>>         200:
>>>
>>>           description: |
>>>
>>>             OK.
>>>
>>>             Scope list is returned.
>>>
>>>           schema:
>>>
>>>             $ref: '#/definitions/ScopeList'
>>>
>>>           headers:
>>>
>>>             Content-Type:
>>>
>>>               description: |
>>>
>>>                 The content type of the body.
>>>
>>>               type: string
>>>
>>>         500:
>>>
>>>            description: Internal server error while retrieving scope list
>>>
>>>            schema:
>>>
>>>             $ref: '#/definitions/Error'
>>>
>>>
>>> #-----------------------------------------------------
>>> # The Scope resource
>>> #-----------------------------------------------------
>>>   Scope :
>>>     title: Scope
>>>     properties:
>>>       name:
>>>         type: string
>>>         description: |
>>>           name of Scope
>>>         example: apim:api_view
>>>       description:
>>>         type: string
>>>         description: |
>>>           description of Scope
>>>         example: 'This Scope can be used to view Apis'
>>>       bindings:
>>>         properties:
>>>           type:
>>>             type: string
>>>             description: |
>>>               Type of binding role / permission
>>>           values:
>>>             type: array
>>>             items:
>>>               type: string
>>>
>>>       apiResourceBindings:
>>>
>>> type: array
>>>
>>> items:
>>>         properties:
>>>
>>>           name:
>>>             type: string
>>>           version:
>>>             type: string
>>>
>>>           provider:
>>>             type: string
>>>
>>>           resources:
>>>             type: array
>>>
>>>             items:
>>>               type: string
>>>
>>> #-----------------------------------------------------
>>>
>>> # The Scope List resource
>>> #-----------------------------------------------------
>>>   ScopeList:
>>>     title: Scope List
>>>     properties:
>>>       count:
>>>         type: integer
>>>         description: |
>>>           The number of Scopes returned.
>>>         example: 1
>>>       list:
>>>         type: array
>>>         items:
>>>           $ref: '#/definitions/Scope'
>>>
>>>
>>>
>>> Appreciate any comments/feedback on this.
>>>
>>> Thanks
>>>
>>> *Dushani Wellappili*
>>> Senior Software Engineer - WSO2
>>>
>>> Email : [email protected]
>>> Mobile : +94779367571
>>> Web : https://wso2.com/
>>>
>>>
>>>
>>
>> --
>>
>> *Harsha Kumara*
>>
>> Technical Lead, WSO2 Inc.
>> Mobile: +94775505618
>> Email: [email protected]
>> Blog: harshcreationz.blogspot.com
>>
>> GET INTEGRATION AGILE
>> Integration Agility for Digitally Driven Business
>>
>
>
> --
> Regards,
>
> Dunith Dhanushka,
> Lead Solutions Engineer
> WSO2 Inc,
>
> Mobile - +94 760 228277
> Blog - *https://medium.com/@dunithd <https://medium.com/@dunithd>*
> Twitter - @dunithd <http://twitter.com/dunithd>
>


-- 

*Tharindu Dharmarathna*Technical Lead
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94779109091*
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to