Got it. Thanks Nuwan for the quick response!

Thanks.

On Wed, Apr 8, 2015 at 9:14 AM, Nuwan Dias <nuw...@wso2.com> wrote:

> Hi Rajkumar,
>
> There aren't any admin services available for adding APIs on the API
> Manager. What is available are the Jaggery REST APIs that you already found
> out.
>
> The RestAPIAdminService is used for adding APIs in the ESB. Hence the same
> is used internally within API Manager for creating the Synapse artifact
> corresponding to the API that is added through the API Publisher.
>
> Thanks,
> NuwanD.
>
> On Wed, Apr 8, 2015 at 7:15 AM, Rajkumar Rajaratnam <rajkum...@wso2.com>
> wrote:
>
>> Hi Devs,
>>
>> I was able to create APIs using publisher rest API[1].
>>
>> Just wanted to check whether I can do $Subject?
>>
>> There is an admin service "RestApiAdmin" in API Manager. This service has
>> a method to add an API. When I tested it with SoapUI, the request looks
>> like below;
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *<soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
>> <http://schemas.xmlsoap.org/soap/envelope/>"
>> xmlns:xsd="http://org.apache.axis2/xsd <http://org.apache.axis2/xsd>"
>> xmlns:xsd1="http://api.rest.carbon.wso2.org/xsd
>> <http://api.rest.carbon.wso2.org/xsd>">   <soapenv:Header/>
>> <soapenv:Body>      <xsd:addApi>         <!--Optional:-->
>> <xsd:apiData>            <!--Optional:-->
>> <xsd1:context>?</xsd1:context>            <!--Optional:-->
>> <xsd1:fileName>?</xsd1:fileName>            <!--Optional:-->
>> <xsd1:host>?</xsd1:host>            <!--Optional:-->
>> <xsd1:name>?</xsd1:name>            <!--Optional:-->
>> <xsd1:port>?</xsd1:port>            <!--Zero or more
>> repetitions:-->            <xsd1:resources>
>> <!--Optional:-->
>> <xsd1:contentType>?</xsd1:contentType>
>> <!--Optional:-->
>> <xsd1:faultSeqXml>?</xsd1:faultSeqXml>
>> <!--Optional:-->
>> <xsd1:faultSequenceKey>?</xsd1:faultSequenceKey>
>> <!--Optional:-->
>> <xsd1:inSeqXml>?</xsd1:inSeqXml>
>> <!--Optional:-->
>> <xsd1:inSequenceKey>?</xsd1:inSequenceKey>               <!--Zero or more
>> repetitions:-->               <xsd1:methods>?</xsd1:methods>
>> <!--Optional:-->
>> <xsd1:outSeqXml>?</xsd1:outSeqXml>
>> <!--Optional:-->
>> <xsd1:outSequenceKey>?</xsd1:outSequenceKey>
>> <!--Optional:-->
>> <xsd1:protocol>?</xsd1:protocol>
>> <!--Optional:-->
>> <xsd1:uriTemplate>?</xsd1:uriTemplate>
>> <!--Optional:-->
>> <xsd1:urlMapping>?</xsd1:urlMapping>
>> <!--Optional:-->
>> <xsd1:userAgent>?</xsd1:userAgent>            </xsd1:resources>
>> </xsd:apiData>      </xsd:addApi>   </soapenv:Body></soapenv:Envelope>*
>>
>> But seems some important parameters like version, visibility, tiers,
>> end-points...etc are missing here.
>>
>> Please advice me whether it is possible to do $Subject.
>>
>> 1. https://docs.wso2.com/display/AM180/Publisher+APIs
>>
>> Thanks.
>>
>> --
>> Rajkumar Rajaratnam
>> Committer & PMC Member, Apache Stratos
>> Software Engineer, WSO2
>>
>> Mobile : +94777568639
>> Blog : rajkumarr.com
>>
>
>
>
> --
> Nuwan Dias
>
> Associate Tech Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2

Mobile : +94777568639
Blog : rajkumarr.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to