On Tue, Feb 20, 2018 at 5:42 PM, Malintha Amarasinghe <[email protected]>
wrote:

> Hi Pubudu,
>
> Shall we make the body like below? It will make it easy for processing at
> the client side without iterating a list.
>
> GET  /api/am/config/v1.0/features
>
> Response:
> {
>    "privateJetMode" : {
>          "name":"Private Jet Mode",
>          "isEnabled":true
>     }
> }
>
+1 for the suggestion.

>
> Thanks!
>
> On Tue, Feb 20, 2018 at 5:24 PM, Pubudu Gunatilaka <[email protected]>
> wrote:
>
>> Hi,
>>
>> The API Manager 3.0.0  is built on top of the REST APIs and we need a way
>> to get the available feature list in order to display UI items such as
>> buttons, text box, etc. This can be done by introducing a REST API as
>> follows. The configuration API is already available in APIM v3 to get the
>> list of environments for the multi-environment use case. This API is an
>> open API.
>>
>> GET  /api/am/config/v1.0/features
>>
>> Response :
>> {
>>    "list":[
>>       {
>>          "name":"Private Jet Mode",
>>          "isEnabled":true,
>>          "id":"privateJetMode"
>>       }
>>    ],
>>    "count":1
>> }
>>
>> Any thoughts?
>>
>> Thank you!
>> --
>> *Pubudu Gunatilaka*
>> Committer and PMC Member - Apache Stratos
>> Senior Software Engineer
>> WSO2, Inc.: http://wso2.com
>> mobile : +94774078049 <%2B94772207163>
>>
>>
>
>
> --
> Malintha Amarasinghe
> *WSO2, Inc. - lean | enterprise | middleware*
> http://wso2.com/
>
> Mobile : +94 712383306 <+94%2071%20238%203306>
>



-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to