Route api/search is not working

Anything concerning integration via the REST API
Post Reply
godgcs
Posts: 1
Joined: Tue May 21, 2019 3:47 pm

Route api/search is not working

Post by godgcs »

When using a Rest API on the "localhost/api/search" route, I get no result only a "Not Found"
Is there any parameter that should be passed?
I'm using version 3.1.10

User avatar
rosarior
Developer
Developer
Posts: 522
Joined: Tue Aug 21, 2018 3:28 am
Location: Puerto Rico
Contact:

Re: Route api/search is not working

Post by rosarior »

Specify also the model to search, example for searching documents by label:

Code: Select all

/api/search/documents.Document/?label=pdf
Search documents by any field:

Code: Select all

api/search/documents.Document/?q=pdf
The list of models available for search is provided by:

Code: Select all

/api/search_models/
Attachments
Screenshot from 2019-05-21 17-07-16.png
Screenshot from 2019-05-21 17-07-16.png (26.57 KiB) Viewed 775 times

Post Reply