Hi Praminda

Thank you. I will try this. Since the payload in [1] consists of a
parameter called "sequence" it was bit confusing.

[1] https://docs.wso2.com/display/AM210/apidocs/publisher/#!/models#API

On Mon, Jan 22, 2018 at 2:43 PM, Praminda Jayawardana <[email protected]>
wrote:

> Hi Erandi,
>
> I don't think you can attach a sequence at API creation. However did you
> try [1] which is the API for adding a mediation sequence to existing API?
>
> [1]: https://docs.wso2.com/display/AM210/apidocs/publisher/#!/operations#
> MediationPolicyCollection#apisApiIdPoliciesMediationPost
>
> Thanks,
> Praminda
>
> On Mon, Jan 22, 2018 at 2:31 PM, Chathurika De Silva <[email protected]
> > wrote:
>
>> Hi
>>
>> There is a need to create/update an api with a custom sequence associated
>> through the REST APIs. In [1] the sample payload has a field called
>> sequences which is taking an array as the argument. But from the document
>> it's not clear how to proceed with it (whether we need to first upload the
>> sequence to the registry, etc...) It would be highly appreciated if a
>> sample can be pointed out that addresses the $subject need.
>>
>> [1] https://docs.wso2.com/display/AM210/apidocs/publisher/#!/ope
>> rations#APIIndividual#apisApiIdPut
>>
>> Thanks
>> Erandi
>>
>> --
>> *Chathurika Erandi*
>> Senior Software Engineer,
>> WSO2 Inc.
>>
>> *E-mail:* [email protected]
>> *Mobile: *+94714 328 612
>> *Blog*: chathurikaerandi.blogspot.com
>>
>
>
>
> --
>
> *Praminda Jayawardana*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> Mobile : +94 (0) 716 590918 <+94%2071%20659%200918>
>



-- 
*Chathurika Erandi*
Senior Software Engineer,
WSO2 Inc.

*E-mail:* [email protected]
*Mobile: *+94714 328 612
*Blog*: chathurikaerandi.blogspot.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to