Hi,

On 24 September 2013 07:06, Sumedha Rubasinghe <[email protected]> wrote:

> +1
>
>
> On Tue, Sep 24, 2013 at 6:56 AM, Ajith Vitharana <[email protected]> wrote:
>
>> Please update, we  need to resolve the [1] based on that verification.
>>
>> [1]https://wso2.org/jira/browse/REGISTRY-1856
>>
>>
>> Thanks
>> Ajith
>>
>>
>> On Mon, Sep 23, 2013 at 10:59 PM, Ajith Vitharana <[email protected]>wrote:
>>
>>> Hi All,
>>>
>>> Currently we have to define multiple <LocalAPI/> in the api-manager.xml
>>> , But is should be correct as
>>>
>>> <LocalAPI*s*>
>>>       <LocalAPI>....</LocalAPI>
>>>       <LocalAPI>....</LocalAPI>
>>>        -
>>>        -
>>>        -
>>> </LocalAPI*s*>
>>>
>>
Fixed in [1].

Please note that LocalAPI definitions derive the backend URL based on the
given configuration.

ex: <LocalAPI>
            <Context>/resource</Context>
            <Provider>admin</Provider>
            <Version>1.0.0</Version>

<IconPath>repository/resources/api-images/resource.png</IconPath>
            <DocumentURL>
http://docs.wso2.org/display/Governance460/Registry+REST+API</DocumentURL>
        </LocalAPI>

Endpoint for above API will be

http://${carbon.local.ip}:${mgt.transport.http.port}/resource

Hence if you need to define the endpoint, use 'API' configuration.

ex:
<API>
            <Context>/service1</Context>
            *<Endpoint>http://localhost:9763/services/example</Endpoint>*
            <Provider>admin</Provider>
            <Version>1.0.0</Version>
            <IconPath>none</IconPath>
            <DocumentURL>none</DocumentURL>
        </API>


[1]https://wso2.org/jira/browse/APIMANAGER-1714

Thanks,
Lakmali

>
>>> WDYT ?
>>>
>>> Thanks
>>>  Ajith.
>>>
>>> --
>>> Ajith Vitharana.
>>> WSO2 Inc. - http://wso2.org
>>> Email  :  [email protected]
>>> Mobile : +94772217350
>>>
>>>
>>
>>
>> --
>> Ajith Vitharana.
>> WSO2 Inc. - http://wso2.org
>> Email  :  [email protected]
>> Mobile : +94772217350
>>
>>
>
>
> --
> /sumedha
> m: +94 773017743
> b :  bit.ly/sumedha
>



-- 
Lakmali Baminiwatta*
*
Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
mobile:  +94 71 2335936
blog : lakmali.com
*
*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to