+1. Will change accordingly.

On Wed, Oct 17, 2018 at 10:54 AM Isura Karunaratne <is...@wso2.com> wrote:

> Hi Tharindu,
>
>
>
> On Wed, Oct 17, 2018 at 10:36 AM Tharindu Bandara <tharin...@wso2.com>
> wrote:
>
>> Hi all,
>>
>> I have been working on the $subject as WSO2 IS need a common place to
>> store configurations.
>>
>>
>> Above diagramme is a high-level, modularized view of $subject approach.
>>
>> I am working on the Configuration Management Endpoint. Below include the
>> REST API for this.
>>
>> Name : WSO2 Identity Server Configuration Management Rest API
>>
>> Base URL : {tenant-domain}/api/identity/config-mgt/v1.0
>>
>> URL
>>
>> Method
>>
>> Body
>>
>> Description
>>
>> /configuration
>>
>> POST
>>
>> Tenant Configurations object
>>
>> Add configurations
>>
>> PUT
>>
>> Tenant Configurations object
>>
>> Add or Replace configurations
>>
>> PATCH
>>
>> Tenant Configurations object
>>
>> Update existing configurations
>>
>> GET
>>
>> -
>>
>> Retrieve configurations
>>
>> DELETE
>>
>> -
>>
>> Revoke configurations
>>
>> /configuration/{key}
>>
>> POST
>>
>> Configuration object
>>
>> Add the configuration
>>
>> PUT
>>
>> Configuration object
>>
>> Add or Replace the configuration
>>
>> PATCH
>>
>> Configuration object
>>
>> Update existing configuration
>>
>> GET
>>
>> -
>>
>> Retrieve the configuration
>>
>> DELETE
>>
>> -
>>
>> Revoke the configuration
>>
>> A path parameter named ‘key’ is used to identify a configuration.
>>
>
> According to the swagger definition, the POST body of the adding a new
> configuration is as follows. According to that, you need to use "name" as
> the path paramter instead of "key".
>
>
> {
>   "configurations": [
>     {
>       "name": "string",
>       "attributes": [
>         {
>           "key": "string",
>           "value": "string"
>         }
>       ]
>     }
>   ]
> }
>
>
> Thanks
> Isura.
>
>
>>
>> Path Parameter
>>
>> Description
>>
>> {key}
>>
>> Key of the configuration
>>
>> Two types of data objects are used for above REST API calls.
>>
>> Data object
>>
>> Model
>>
>> Tenant Configurations object
>>
>> Configuration object
>>
>>
>> Let’s have a look at an example POST request to add the “email
>> configuration” using WSO2 Identity Server Configuration Management Rest API.
>>
>> Method
>>
>> POST
>>
>> URL
>>
>> /api/identity/config-mgt/v1.0/configuration/email
>>
>> Body
>>
>>
>> Please refer to the detailed REST API documentation for in-depth
>> information[1]
>> <https://app.swaggerhub.com/apis-docs/WSO8/wso-2_identity_server_configuration_management_rest_api/1.0.0>
>> .
>>
>> Please note that naming in the API is not finalized yet.
>>
>> Your valuable comments and suggestions are highly appreciated.
>>
>>
>> [1]
>> https://app.swaggerhub.com/apis-docs/WSO8/wso-2_identity_server_configuration_management_rest_api/1.0.0
>> <https://app.swaggerhub.com/apis-docs/WSO8/wso-2_identity_server_configuration_management_rest_api/1.0.0#/>
>>
>> Thanks,
>>
>> Tharindu.
>> --
>> *Tharindu Bandara*
>> Software Engineer | WSO2
>>
>> Email : tharin...@wso2.com
>> Mobile : +94 714221776
>> web : http://wso2.com
>> <https://www.google.com/url?q=http://wso2.com&sa=D&ust=1517653383990000&usg=AFQjCNFggB4bSJTKmdqKcBV0VY9xx1ABKg>
>>
>> https://wso2.com/signature
>>
>
>
> --
>
> *Isura Dilhara Karunaratne*
> Associate Technical Lead | WSO2 <http://wso2.com/>
> *lean.enterprise.middleware*
> Email: is...@wso2.com
> Mob : +94 772 254 810
> Blog : http://isurad.blogspot.com/
>
>
>
>

-- 
*Tharindu Bandara*
Software Engineer | WSO2

Email : tharin...@wso2.com
Mobile : +94 714221776
web : http://wso2.com
<https://www.google.com/url?q=http://wso2.com&sa=D&ust=1517653383990000&usg=AFQjCNFggB4bSJTKmdqKcBV0VY9xx1ABKg>

https://wso2.com/signature
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to