Connectors have to be versioned, and each version of a connector would
correspond to a version of the API. For example, LinkedInConnector-1.0
would correspond to the LinkedIn API v1, and so on. So, IMO, you need not
pass in the version. It should be fine to hardcode it inside the template.

Azeez


On Tue, Feb 11, 2014 at 11:39 PM, Chanaka Dharmarathna <
[email protected]> wrote:

> Hi,
>
> I'm developing LinkedIn connector supporting to their REST API [0] and
> having some doubts on parameterizing the LinkedIn API URL (including the
> API version - 
> http://api.linkedin.com/v1/<http://developer.linkedin.com/documents/profile-api#>
> ).
>
> I figured out 3 ways.
>
> 1. Let the user send the API URL with version. Here user can chose which
> API version to use.
> 2. Set default API URL with version inside the init method. This way, it's
> not essential to pass this parameter, but still user can override.
> 3. Without parameterizing API URL, hard code it inside the synapse
> template.
>
> What is the most suitable approach out of those 3 options ?
> Or else is there any other suited option ?
>
> Any thoughts on this would be highly appreciated.
>
> [0] : http://developer.linkedin.com/rest
>
>  Regards !
> --
> Chanaka Dharmarathna
> *http://chanakaindrajith.blogspot.com/*<http://chanakaindrajith.blogspot.com/>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>*
*email: **[email protected]* <[email protected]>
* cell: +94 77 3320919 blog: **http://blog.afkham.org*<http://blog.afkham.org>
*twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
* linked-in: **http://lk.linkedin.com/in/afkhamazeez
<http://lk.linkedin.com/in/afkhamazeez>*

*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to