Re: Rest framework autocomplete

2019-08-20 Thread Andréas Kühne
If you read the article I sent you he goes through the javascript side and what you need to do on that side. However the endpoint URL you need to decide yourself - thats the part restframework helps you with. Regards, Andréas Den tis 20 aug. 2019 kl 11:05 skrev Soumen Khatua : > Could you tell

Re: Rest framework autocomplete

2019-08-20 Thread Soumen Khatua
Could you tell me how can I configure javascript in my rest api apps. Actually I'm new to this area. Thank you On Tue, 20 Aug 2019, 13:52 Andréas Kühne, wrote: > Ok - so what you need to do is configure the endpoint to use the filters > and pagination. Then you need to connect to the backend wi

Re: Rest framework autocomplete

2019-08-20 Thread Andréas Kühne
Ok - so what you need to do is configure the endpoint to use the filters and pagination. Then you need to connect to the backend with javascript and populating the results by adding to the dom. Here is something that is more or less what you want to do - however you need the backend code to get th

Re: Rest framework autocomplete

2019-08-20 Thread Soumen Khatua
Suppose If I'll type 'A' and database contains some sentences as an example AABC, ABC, BCA.It should suggest all the names those are contains A. If I need to javascript then I can configure could you tell me please. Thank you for your response. On Tue, 20 Aug 2019, 13:33 DANIEL URBANO DE LA RUA,

Re: Rest framework autocomplete

2019-08-20 Thread DANIEL URBANO DE LA RUA
You will need to load the data first and for the rest use javascript On Tue, 20 Aug 2019, 09:56 Andréas Kühne Hi, > > This is exactly what you do with filtering and pagination? Could you > please specify why it doesn't suit your usecase? I need to understand more > to actually be able to help you

Re: Rest framework autocomplete

2019-08-20 Thread Andréas Kühne
Hi, This is exactly what you do with filtering and pagination? Could you please specify why it doesn't suit your usecase? I need to understand more to actually be able to help you :) Regards, Andréas Den tis 20 aug. 2019 kl 06:56 skrev Soumen Khatua : > My query is little bit different suppos

Re: Rest framework autocomplete

2019-08-19 Thread Soumen Khatua
My query is little bit different suppose I type A in the search box imtjen it should recommend AAA, ABC if they are exist into the database. How I can do that?? On Tue, 20 Aug 2019, 09:33 Abu Yusuf, wrote: > You need to use these both: > > 1.Filter: https://www.django-rest-framework.org/api-guid

Re: Rest framework autocomplete

2019-08-19 Thread Abu Yusuf
You need to use these both: 1.Filter: https://www.django-rest-framework.org/api-guide/filtering/ 2.Pagination: https://www.django-rest-framework.org/api-guide/pagination/ On Tue, Aug 20, 2019 at 9:45 AM Soumen Khatua wrote: > Hi guys, > I want to implement autocomplete options like if someone

Rest framework autocomplete

2019-08-19 Thread Soumen Khatua
Hi guys, I want to implement autocomplete options like if someone type 'a' if it is contains in between any data it should provide the suggestion of the matched words. Then it will return first 25 matched data, how I can do that by using django rest framework. Please help me with source code. Tha