-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathapi.json
36 lines (36 loc) · 1.08 KB
/
api.json
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
---
permalink: "/api/v0/distributions"
---
{
"Leap": [
{%- for release in site.data.leap %}
{%- capture leap_id %}{{ release.version | remove: "." }}{% endcapture %}
{
"name": "openSUSE Leap",
"version": "{{ release.version }}",
"state": "{{ site.releases.leap[leap_id].state }}",
"upgrade-weight": {{ release.order }}
}{% if forloop.last != true %},{% endif %}
{%- endfor %}
],
"LeapMicro": [
{%- for release in site.data.leapmicro %}
{%- capture leap_micro_id %}{{ release.version | remove: "." }}{% endcapture %}
{
"name": "openSUSE Leap Micro",
"version": "{{ release.version }}",
"state": "{{ site.releases.leap_micro[leap_micro_id].state }}",
"upgrade-weight": {{ release.order }}
}{% if forloop.last != true %},{% endif %}
{%- endfor %}
],
"Tumbleweed": [
{%- for release in site.data.snapshots %}
{
"name": "openSUSE Tumbleweed",
"version": "{{ release.snapshot }}",
"upgrade-weight": {{ release.snapshot }}
}{% if forloop.last != true %},{% endif %}
{%- endfor %}
]
}