-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapi.json
More file actions
38 lines (38 loc) · 1.4 KB
/
api.json
File metadata and controls
38 lines (38 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
permalink: /api.json
---
{
"meta": {
"title": "{{ site.title | escape }}",
"description": "{{ site.description }}",
"version": "1.0",
"last_updated": "{{ site.time | date_to_xmlschema }}",
"total_services": {{ site.data.diensten | where: 'status', 'live' | size }}
},
"services": [
{% assign diensten = site.data.diensten | where: 'status', 'live' %}
{% for dienst in diensten %}
{
"name": "{{ dienst.naam }}",
"description": "{{ dienst.beschrijving }}",
"category": "{{ dienst.categorie }}",
"url": "{{ dienst.url }}",
"favicon": "{{ dienst.favicon }}",
{% if dienst.aanbieder %}"provider": "{{ dienst.aanbieder }}",{% endif %}
{% if dienst.aanbieder_favicon %}"provider_favicon": "{{ dienst.aanbieder_favicon }}",{% endif %}
{% if dienst.spoelkeuken_url %}"spoelkeuken_url": "{{ dienst.spoelkeuken_url }}",{% endif %}
"eu_hosting": {{ dienst.eu_hosting }},
"status": "{{ dienst.status }}"
}{% unless forloop.last %},{% endunless %}
{% endfor %}
],
"categories": [
{% assign categories = site.data.diensten | where: 'status', 'live' | map: 'categorie' | uniq | sort %}
{% for category in categories %}
{
"name": "{{ category }}",
"count": {{ site.data.diensten | where: 'status', 'live' | where: 'categorie', category | size }}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]
}