mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
Serving /catalog/v2/categories
This commit is contained in:
24
static/catalog_v2_categories.xml
Normal file
24
static/catalog_v2_categories.xml
Normal file
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<id>{{feed_id}}</id>
|
||||
<link rel="self"
|
||||
href="{{endpoint_root}}/categories"
|
||||
type="application/atom+xml;profile=opds-catalog;kind=navigation"/>
|
||||
<link rel="start"
|
||||
href="{{endpoint_root}}/root.xml"
|
||||
type="application/atom+xml;profile=opds-catalog;kind=navigation"/>
|
||||
<title>List of categories</title>
|
||||
<updated>{{date}}</updated>
|
||||
|
||||
{{#categories}}
|
||||
<entry>
|
||||
<title>{{name}}</title>
|
||||
<link rel="subsection"
|
||||
href="{{endpoint_root}}/entries?category={{{urlencoded_name}}}"
|
||||
type="application/atom+xml;profile=opds-catalog;kind=acquisition"/>
|
||||
<updated>{{updated}}</updated>
|
||||
<id>{{id}}</id>
|
||||
<content type="text">All entries with category of '{{name}}'.</content>
|
||||
</entry>
|
||||
{{/categories}}
|
||||
</feed>
|
@ -38,3 +38,4 @@ templates/external_blocker_part.html
|
||||
templates/captured_external.html
|
||||
opensearchdescription.xml
|
||||
catalog_v2_root.xml
|
||||
catalog_v2_categories.xml
|
||||
|
Reference in New Issue
Block a user