-
Type:
Technical Task
-
Status: Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Search Infrastructure
-
Labels:None
-
Sprint:Search | S02 Sprint 11, Search | S02 Sprint 12, Search | S02 Sprint 13, Search | S02 Sprint 14, Search | S02 Sprint 15, Search | S02 Sprint 16, Search | S02 Sprint 17, Search | S02 Sprint 18, Search | S02 Sprint 19, Search | S02 Sprint 20, Search | S03 Sprint 1, Search | S03 Sprint 2, Search | S03 Sprint 3, Search | S03 Sprint 4
This is the endpoint that will be loaded in the edit form.
The frontend will need to make a request to a url like
/search?q="example"&hidden="false"&delta=10&start=0
Where it will return a json object like
{ total: 250, items: [ { author: 'Juan Hidalgo', clicks: 289, date: 'Apr 18 2018, 11:04 AM', description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod', hidden: false, id: 101, pinned: true, title: 'This is a Web Content Example', type: 'Web Content' }, { author: 'Juan Hidalgo', clicks: 289, date: 'Apr 18 2018, 11:04 AM', description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod', hidden: false, id: 102, pinned: true, title: 'This is a Web Content Example with Long Title', type: 'Web Content' } ... }
- The combination of delta and start will be used for paginating the results
- hidden=false will be used to show results in the "visible" tab and true for the "hidden" tab
- Also an optional parameter to be able to filter the results to make a URL like
/search?q="example"&hidden="false"&delta=10&start=10&searchFilter="bookmark"