[Lazarus] getlazarus.org search request
Anthony Walter
sysrpl at gmail.com
Sun Aug 11 21:51:35 CEST 2019
Ryan,
I was going to modify my project to allow for RESTful queries, when I
realized it already does this. The url and format are as follows:
https://docs.getlazarus.org/?method=codesearch&phrase=TStringList
Alternate request for xml format:
https://docs.getlazarus.org/?method=codesearch&format=xml&phrase=TStringList
Currently there is no custom formatting applied as this is meant to be an
AJAX request to create populate suggestions. As this is an API like RESTful
function is this good enough for you or do want a "pretty" result format?
Here are the templates, which I could easy swap out based on another
request parameter:
Page uses this template as an html fragment:
<div id="searchResults">{SearchItems}</div>
Results collection uses this template:
<a class="searchResult" href="{Source}" target="main"
onclick="searchSelect('{Path}')">
<span class="resultPath">{Bolden}</span>
<span class="resultKind">{Kind}</span>
<span class="resultDescription">{Description}</span>
</a>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20190811/2a438ea1/attachment-0001.html>
More information about the lazarus
mailing list