yacy_search_server/htroot/api/push_p.json
Michael Peter Christen 74c249288a added a push api to make it possible to upload files directly without
crawling to the YaCy indexer. Files are uploaded using POST multipart
requests; multiple file uploads are possible as well. Each file has
attached the file date and mime type which is used to get the right
parser for the submitted data. Also an url is submitted which is
assigned to the document.
The CrawlSwitchboard has a new option for default Crawl Profiles which
are assigned dynamically from the new push interface.
2014-06-12 18:10:07 +02:00

15 lines
387 B
JSON

{#(mode)#::
"count":"#[count]#",
"successall": #(successall)#"false"::"true"#(/successall)#,
#{results}#
"item-#[item]#":{
"item":"#[item]#",
"url":"#[url]#",
"success": #(success)#"false"::"true"#(/success)#,
"message": #(success)#"#[message]#"::"#[message]#"#(/success)#
},
#{/results}#
"countsuccess":#[countsuccess]#,
"countfail":#[countfail]#
#(/mode)#}