Hi Saneth,

We only have {mediaType}/{id}/associations for GET associations.

POST is not implemented in current governance REST API[1] which uses asset
ID's to add Associations.

[1] -
https://github.com/wso2/carbon-governance/blob/master/components/governance/org.wso2.carbon.governance.rest.api/src/main/java/org/wso2/carbon/governance/rest/api/Asset.java#L400

Thanks
Prasanna

*Prasanna Dangalla*
Senior Software Engineer, WSO2, Inc.; http://wso2.com/
lean.enterprise.middleware


*cell: +94 718 11 27 51*
*twitter: @prasa77*

On Mon, Jan 15, 2018 at 3:31 PM, Saneth Dharmakeerthi <sane...@wso2.com>
wrote:

> Hi Rajith,
>
> For  Registry API we need to use the registry path; but is there a way to
> create an association using asset ids of two assets?
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> *Associate Technical Lead*
> WSO2, Inc.
> Mobile: +94772325511 <+94%2077%20232%205511>
>
> <http://wso2.com/signature>
>
> On Fri, Jan 12, 2018 at 6:02 PM, Saneth Dharmakeerthi <sane...@wso2.com>
> wrote:
>
>> Thanks Rajith for the information.
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> *Associate Technical Lead*
>> WSO2, Inc.
>> Mobile: +94772325511 <+94%2077%20232%205511>
>>
>> <http://wso2.com/signature>
>>
>> On Fri, Jan 12, 2018 at 3:27 PM, Rajith Roshan <raji...@wso2.com> wrote:
>>
>>> Hi Saneth,
>>>
>>> Can you try this with the Registry Rest API[1]
>>>
>>> [1] - https://docs.wso2.com/display/Governance530/Associations+w
>>> ith+REST+API
>>>
>>>
>>> Thanks!
>>> Rajith
>>>
>>> On Fri, Jan 12, 2018 at 3:19 PM, Saneth Dharmakeerthi <sane...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> Is there a way that I can create an association among 2 assets
>>>> using  Governance REST API?
>>>>
>>>> Thanks and Best Regards,
>>>>
>>>> Saneth Dharmakeerthi
>>>> *Associate Technical Lead*
>>>> WSO2, Inc.
>>>> Mobile: +94772325511 <+94%2077%20232%205511>
>>>>
>>>> <http://wso2.com/signature>
>>>>
>>>
>>>
>>>
>>> --
>>> Rajith Roshan
>>> Senior Software Engineer, WSO2 Inc.
>>> Mobile: +94-7 <%2B94-71-554-8430>17-064-214
>>>
>>
>>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to