-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathdata.njk
More file actions
76 lines (69 loc) · 4.03 KB
/
Copy pathdata.njk
File metadata and controls
76 lines (69 loc) · 4.03 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{% extends "layout.njk" %}
{% set title = "Get the data" %}
{% block content %}
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-xl">{{ title }}</h1>
<p class="govuk-body">You can get the list of government services as data - useful if you’d like to do some analysis or build further tools.</p>
<p class="govuk-body"><a href="/data.json" class="govuk-link">Get the data (JSON)</a></p>
<p class="govuk-body">You can re-download the data using a script if you need to keep your data up to date.</p>
<h2 class="govuk-heading-l">How to use the data</h2>
<p class="govuk-body">The list of services is returned as an array within the <code>services</code> key.</p>
</div>
</div>
<div class="govuk-grid-row">
<div class="govuk-grid-column-three-quarters">
<table class="govuk-table">
<caption class="govuk-table__caption govuk-table__caption--m">Metadata for each service</caption>
<thead class="govuk-table__head">
<tr class="govuk-table__row">
<th scope="col" class="govuk-table__header">Key</th>
<th scope="col" class="govuk-table__header">Description</th>
</tr>
</thead>
<tbody class="govuk-table__body">
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header"><code>slug</code></th>
<td class="govuk-table__cell">A unique key for each service</td>
</tr>
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header"><code>name</code></th>
<td class="govuk-table__cell">The name of the service. Generally this is taken from the name in the header.</td>
</tr>
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header"><code>synonyms</code></th>
<td class="govuk-table__cell">A list of alternative names for the service. These may be previous names, or names given on the GOV.UK start page.</td>
</tr>
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header"><code>organisation</code></th>
<td class="govuk-table__cell">The organisation or organisations responsible for the service. This is always returned as an array.</td>
</tr>
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header"><code>phase</code></th>
<td class="govuk-table__cell">The status of the service. Generally either <code>Alpha</code>, <code>Beta</code>, <code>Live</code>, <code>Retired</code> or <code>Unknown</code></td>
</tr>
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header"><code>theme</code></th>
<td class="govuk-table__cell">A topic under which the service falls.</td>
</tr>
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header"><code>startPage</code></th>
<td class="govuk-table__cell">A list of start pages on GOV.UK for the service, if known.</td>
</tr>
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header"><code>liveService</code></th>
<td class="govuk-table__cell">The URL for the service, generally its homepage or first question page.</td>
</tr>
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header"><code>sourceCode</code></th>
<td class="govuk-table__cell">An array of links to source code, if known. Each item in the array contains a link as <code>href</code> and a description as <code>text</code></td>
</tr>
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header"><code>timeline</code></th>
<td class="govuk-table__cell">Further metadata containing dates of when the service passed service assessments, went live, or other significant milestones.</td>
</tr>
</tbody>
</table>
</div>
</div>
{% endblock %}