Re: [Dev] [DAS][Documentation] Incorrect documentation - Retrieving the Total Record Count of a Table via REST API DAS

2015-12-10 Thread Rukshani Weerasinha
Thank you all. I will update the page mentioned.

On Fri, Dec 11, 2015 at 11:17 AM, Rajeenthini Satkunam  wrote:

> Hi,
> Noted. IMHO it is good if we mention above concern in the document in that
> particular place.
>
> On Fri, Dec 11, 2015 at 10:40 AM, Anjana Fernando  wrote:
>
>> Also, search count always work, because it is the indexing based search
>> count, and that will always return the count.
>>
>> Cheers,
>> Anjana.
>>
>> On Fri, Dec 11, 2015 at 10:39 AM, Anjana Fernando 
>> wrote:
>>
>>> Hi,
>>>
>>> Getting the record count from direct analytics tables are disabled by
>>> default from the RDBMS connector. This is basically an optional
>>> functionality, and when that happens, it will return -1. @Rukshani, please
>>> mention this properly in the docs. I remember this issue was raised earlier
>>> also, and maybe we mentioned it in some other place in the docs.
>>>
>>> Cheers,
>>> Anjana.
>>>
>>> On Fri, Dec 11, 2015 at 8:14 AM, Rukshani Weerasinha 
>>> wrote:
>>>
 Hi all,

 Thank you for reporting this. I will update this thread once the
 documentation is fixed.

 Best Regards,
 Rukshani.

 On Thu, Dec 10, 2015 at 6:42 PM, Rajeenthini Satkunam <
 rajeenth...@wso2.com> wrote:

> Hi all,
>
> I have tried to invoke REST API through POSTMAN(Chrome) for DAS
> getting the record count of a table.I have followed the documentation 
> here[
> https://docs.wso2.com/display/DAS300/Retrieving+the+Total+Record+Count+of+a+Table+via+REST+API]
> .It gives me a 200 OK success response but it always returns -1 as a
> response.
>
>
> ​
> But I have tried this below way and it is working fine for me.Hope the
> DAS documentation of REST API wants to be update along with API changes.
>
> *METHOD* : POST
>
> *URL* : https://localhost:9443/analytics/search_count
>
> *BODY* :
> {
>  "tableName":"sample2"
> }
>
> *HEADERS* :
> Authorization : Basic YWRtaW46YWRtaW4=
> Content-Type : application/json
>
> This REST API request gives me 200 OK success response as a count of
> records in a particular table. I have inserted the screenshot of my 
> POSTMAN
> request and response for further more idea.
>
>
>
>
> --
>
> *Thank You.*
>
> *Rajeenthini Satkunam*
>
> *Associate Software Engineer | WSO2*
>
>
> *E:rajeenth...@wso2.com *
>
> *M :+94770832823 <%2B94770832823>   *
>
> --
> You received this message because you are subscribed to the Google
> Groups "WSO2 Documentation Group" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to documentation+unsubscr...@wso2.com.
> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>



 --
 Rukshani Weerasinha

 WSO2 Inc.
 Web:http://wso2.com
 Mobile: 0777 683 738


>>>
>>>
>>> --
>>> *Anjana Fernando*
>>> Senior Technical Lead
>>> WSO2 Inc. | http://wso2.com
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>> *Anjana Fernando*
>> Senior Technical Lead
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>
>
>
> --
>
> *Thank You.*
>
> *Rajeenthini Satkunam*
>
> *Associate Software Engineer | WSO2*
>
>
> *E:rajeenth...@wso2.com *
>
> *M :+94770832823 <%2B94770832823>   *
>
>


-- 
Rukshani Weerasinha

WSO2 Inc.
Web:http://wso2.com
Mobile: 0777 683 738
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS][Documentation] Incorrect documentation - Retrieving the Total Record Count of a Table via REST API DAS

2015-12-10 Thread Rajeenthini Satkunam
Hi,
Noted. IMHO it is good if we mention above concern in the document in that
particular place.

On Fri, Dec 11, 2015 at 10:40 AM, Anjana Fernando  wrote:

> Also, search count always work, because it is the indexing based search
> count, and that will always return the count.
>
> Cheers,
> Anjana.
>
> On Fri, Dec 11, 2015 at 10:39 AM, Anjana Fernando  wrote:
>
>> Hi,
>>
>> Getting the record count from direct analytics tables are disabled by
>> default from the RDBMS connector. This is basically an optional
>> functionality, and when that happens, it will return -1. @Rukshani, please
>> mention this properly in the docs. I remember this issue was raised earlier
>> also, and maybe we mentioned it in some other place in the docs.
>>
>> Cheers,
>> Anjana.
>>
>> On Fri, Dec 11, 2015 at 8:14 AM, Rukshani Weerasinha 
>> wrote:
>>
>>> Hi all,
>>>
>>> Thank you for reporting this. I will update this thread once the
>>> documentation is fixed.
>>>
>>> Best Regards,
>>> Rukshani.
>>>
>>> On Thu, Dec 10, 2015 at 6:42 PM, Rajeenthini Satkunam <
>>> rajeenth...@wso2.com> wrote:
>>>
 Hi all,

 I have tried to invoke REST API through POSTMAN(Chrome) for DAS getting
 the record count of a table.I have followed the documentation here[
 https://docs.wso2.com/display/DAS300/Retrieving+the+Total+Record+Count+of+a+Table+via+REST+API]
 .It gives me a 200 OK success response but it always returns -1 as a
 response.


 ​
 But I have tried this below way and it is working fine for me.Hope the
 DAS documentation of REST API wants to be update along with API changes.

 *METHOD* : POST

 *URL* : https://localhost:9443/analytics/search_count

 *BODY* :
 {
  "tableName":"sample2"
 }

 *HEADERS* :
 Authorization : Basic YWRtaW46YWRtaW4=
 Content-Type : application/json

 This REST API request gives me 200 OK success response as a count of
 records in a particular table. I have inserted the screenshot of my POSTMAN
 request and response for further more idea.




 --

 *Thank You.*

 *Rajeenthini Satkunam*

 *Associate Software Engineer | WSO2*


 *E:rajeenth...@wso2.com *

 *M :+94770832823 <%2B94770832823>   *

 --
 You received this message because you are subscribed to the Google
 Groups "WSO2 Documentation Group" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to documentation+unsubscr...@wso2.com.
 For more options, visit https://groups.google.com/a/wso2.com/d/optout.

>>>
>>>
>>>
>>> --
>>> Rukshani Weerasinha
>>>
>>> WSO2 Inc.
>>> Web:http://wso2.com
>>> Mobile: 0777 683 738
>>>
>>>
>>
>>
>> --
>> *Anjana Fernando*
>> Senior Technical Lead
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>
>
>
> --
> *Anjana Fernando*
> Senior Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>



-- 

*Thank You.*

*Rajeenthini Satkunam*

*Associate Software Engineer | WSO2*


*E:rajeenth...@wso2.com *

*M :+94770832823   *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS][Documentation] Incorrect documentation - Retrieving the Total Record Count of a Table via REST API DAS

2015-12-10 Thread Anjana Fernando
Also, search count always work, because it is the indexing based search
count, and that will always return the count.

Cheers,
Anjana.

On Fri, Dec 11, 2015 at 10:39 AM, Anjana Fernando  wrote:

> Hi,
>
> Getting the record count from direct analytics tables are disabled by
> default from the RDBMS connector. This is basically an optional
> functionality, and when that happens, it will return -1. @Rukshani, please
> mention this properly in the docs. I remember this issue was raised earlier
> also, and maybe we mentioned it in some other place in the docs.
>
> Cheers,
> Anjana.
>
> On Fri, Dec 11, 2015 at 8:14 AM, Rukshani Weerasinha 
> wrote:
>
>> Hi all,
>>
>> Thank you for reporting this. I will update this thread once the
>> documentation is fixed.
>>
>> Best Regards,
>> Rukshani.
>>
>> On Thu, Dec 10, 2015 at 6:42 PM, Rajeenthini Satkunam <
>> rajeenth...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> I have tried to invoke REST API through POSTMAN(Chrome) for DAS getting
>>> the record count of a table.I have followed the documentation here[
>>> https://docs.wso2.com/display/DAS300/Retrieving+the+Total+Record+Count+of+a+Table+via+REST+API]
>>> .It gives me a 200 OK success response but it always returns -1 as a
>>> response.
>>>
>>>
>>> ​
>>> But I have tried this below way and it is working fine for me.Hope the
>>> DAS documentation of REST API wants to be update along with API changes.
>>>
>>> *METHOD* : POST
>>>
>>> *URL* : https://localhost:9443/analytics/search_count
>>>
>>> *BODY* :
>>> {
>>>  "tableName":"sample2"
>>> }
>>>
>>> *HEADERS* :
>>> Authorization : Basic YWRtaW46YWRtaW4=
>>> Content-Type : application/json
>>>
>>> This REST API request gives me 200 OK success response as a count of
>>> records in a particular table. I have inserted the screenshot of my POSTMAN
>>> request and response for further more idea.
>>>
>>>
>>>
>>>
>>> --
>>>
>>> *Thank You.*
>>>
>>> *Rajeenthini Satkunam*
>>>
>>> *Associate Software Engineer | WSO2*
>>>
>>>
>>> *E:rajeenth...@wso2.com *
>>>
>>> *M :+94770832823 <%2B94770832823>   *
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "WSO2 Documentation Group" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to documentation+unsubscr...@wso2.com.
>>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>>
>>
>>
>>
>> --
>> Rukshani Weerasinha
>>
>> WSO2 Inc.
>> Web:http://wso2.com
>> Mobile: 0777 683 738
>>
>>
>
>
> --
> *Anjana Fernando*
> Senior Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>



-- 
*Anjana Fernando*
Senior Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS][Documentation] Incorrect documentation - Retrieving the Total Record Count of a Table via REST API DAS

2015-12-10 Thread Anjana Fernando
Hi,

Getting the record count from direct analytics tables are disabled by
default from the RDBMS connector. This is basically an optional
functionality, and when that happens, it will return -1. @Rukshani, please
mention this properly in the docs. I remember this issue was raised earlier
also, and maybe we mentioned it in some other place in the docs.

Cheers,
Anjana.

On Fri, Dec 11, 2015 at 8:14 AM, Rukshani Weerasinha 
wrote:

> Hi all,
>
> Thank you for reporting this. I will update this thread once the
> documentation is fixed.
>
> Best Regards,
> Rukshani.
>
> On Thu, Dec 10, 2015 at 6:42 PM, Rajeenthini Satkunam <
> rajeenth...@wso2.com> wrote:
>
>> Hi all,
>>
>> I have tried to invoke REST API through POSTMAN(Chrome) for DAS getting
>> the record count of a table.I have followed the documentation here[
>> https://docs.wso2.com/display/DAS300/Retrieving+the+Total+Record+Count+of+a+Table+via+REST+API]
>> .It gives me a 200 OK success response but it always returns -1 as a
>> response.
>>
>>
>> ​
>> But I have tried this below way and it is working fine for me.Hope the
>> DAS documentation of REST API wants to be update along with API changes.
>>
>> *METHOD* : POST
>>
>> *URL* : https://localhost:9443/analytics/search_count
>>
>> *BODY* :
>> {
>>  "tableName":"sample2"
>> }
>>
>> *HEADERS* :
>> Authorization : Basic YWRtaW46YWRtaW4=
>> Content-Type : application/json
>>
>> This REST API request gives me 200 OK success response as a count of
>> records in a particular table. I have inserted the screenshot of my POSTMAN
>> request and response for further more idea.
>>
>>
>>
>>
>> --
>>
>> *Thank You.*
>>
>> *Rajeenthini Satkunam*
>>
>> *Associate Software Engineer | WSO2*
>>
>>
>> *E:rajeenth...@wso2.com *
>>
>> *M :+94770832823 <%2B94770832823>   *
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "WSO2 Documentation Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to documentation+unsubscr...@wso2.com.
>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>
>
>
>
> --
> Rukshani Weerasinha
>
> WSO2 Inc.
> Web:http://wso2.com
> Mobile: 0777 683 738
>
>


-- 
*Anjana Fernando*
Senior Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS][Documentation] Incorrect documentation - Retrieving the Total Record Count of a Table via REST API DAS

2015-12-10 Thread Rukshani Weerasinha
Hi all,

Thank you for reporting this. I will update this thread once the
documentation is fixed.

Best Regards,
Rukshani.

On Thu, Dec 10, 2015 at 6:42 PM, Rajeenthini Satkunam 
wrote:

> Hi all,
>
> I have tried to invoke REST API through POSTMAN(Chrome) for DAS getting
> the record count of a table.I have followed the documentation here[
> https://docs.wso2.com/display/DAS300/Retrieving+the+Total+Record+Count+of+a+Table+via+REST+API]
> .It gives me a 200 OK success response but it always returns -1 as a
> response.
>
>
> ​
> But I have tried this below way and it is working fine for me.Hope the DAS
> documentation of REST API wants to be update along with API changes.
>
> *METHOD* : POST
>
> *URL* : https://localhost:9443/analytics/search_count
>
> *BODY* :
> {
>  "tableName":"sample2"
> }
>
> *HEADERS* :
> Authorization : Basic YWRtaW46YWRtaW4=
> Content-Type : application/json
>
> This REST API request gives me 200 OK success response as a count of
> records in a particular table. I have inserted the screenshot of my POSTMAN
> request and response for further more idea.
>
>
>
>
> --
>
> *Thank You.*
>
> *Rajeenthini Satkunam*
>
> *Associate Software Engineer | WSO2*
>
>
> *E:rajeenth...@wso2.com *
>
> *M :+94770832823 <%2B94770832823>   *
>
> --
> You received this message because you are subscribed to the Google Groups
> "WSO2 Documentation Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to documentation+unsubscr...@wso2.com.
> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>



-- 
Rukshani Weerasinha

WSO2 Inc.
Web:http://wso2.com
Mobile: 0777 683 738
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev