Skip to content

Latest commit

 

History

History

rest-api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
title authors
REST API
Markus Mandalka

REST API

Application programming interface (API) available via generic HTTP waiting for another (web) service or software demanding for an action like crawling a directory or a webpage or indexing changed data (i.e. directly started after data change by a trigger of the CMS) and starting this actions.

Crawling directories

Crawl a directory and all subdirectories and index all files: http://127.0.0.1/search-apps/api/index-dir?uri=/usr/share/doc

Index a file

Index a single file: http://127.0.0.1:/search-apps/api/index-file?uri=/home/opensemanticsearch/readme.txt

Index a web page

Index a single web page: http://127.0.0.1:/search-apps/api/index-web?uri=http://www.opensemanticsearch.org/

Index a RSS-Feed

Index each webpage from a RSS-Newsfeed: http://127.0.0.1:/search-apps/api/index-rss?uri=http://www.opensemanticsearch.org/feed

Delete a file or document from index

Delete a webpage or removed document file from index: http://127.0.0.1:/search-apps/api/delete?uri=file:///home/user/Documents/document.doc

Search or read data

We won't reinvent all wheels, so use the Rest-API of Solr for searching or / and getting data in XML or JSON format or use Solr Client APIs to get data with your favorite programming language.