Skip to content

Commit 3630a33

Browse files
committed
Updated inline code snippet style names on all pages
1 parent b29bc86 commit 3630a33

File tree

22 files changed

+2360
-1449
lines changed

22 files changed

+2360
-1449
lines changed

_site/apis/application-information/0.3/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ <h2 class="govuk-heading-m" id="overview"><br>Overview</h2>
117117
application. This includes:</p>
118118
<ul class="govuk-list govuk-list--bullet">
119119
<li>the status of an application</li>
120-
<li>the <code class="x-govuk-code x-govuk-code--inline">application_request_id</code> used in the
120+
<li>the <code class="app-code app-code--inline">application_request_id</code> used in the
121121
request</li>
122122
<li>an ID for the accepted application, <code
123-
class="x-govuk-code x-govuk-code--inline">hmlr_reference</code>, once accepted (previously known as
123+
class="app-code app-code--inline">hmlr_reference</code>, once accepted (previously known as
124124
ABR)</li>
125125
<li>the priority of the application, <code
126-
class="x-govuk-code x-govuk-code--inline">priority_timestamp</code>, once accepted</li>
126+
class="app-code app-code--inline">priority_timestamp</code>, once accepted</li>
127127
<li>any errors that prevented application submission</li>
128128
<li>any warnings that did not prevent submission but need to be addressed before a caseworker can process the
129129
application (otherwise a requisition may occur)</li>

_site/apis/application-information/0.3/technical-guide/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,23 +183,23 @@ <h2 class="govuk-heading-m govuk-!-margin-0" id="version-and-status">Version and
183183

184184
<div class="app-prose-scope"><section>
185185
<h2 class="govuk-heading-m" id="how-to-use-the-application-information-api">How to use the Application information API</h2>
186-
<p class="govuk-body">The Application information API is used to get detailed information about a specific application, using the <code class="x-govuk-code x-govuk-code--inline">application_request_id</code> returned by the Submit an application API request.</p>
186+
<p class="govuk-body">The Application information API is used to get detailed information about a specific application, using the <code class="app-code app-code--inline">application_request_id</code> returned by the Submit an application API request.</p>
187187
<p class="govuk-body">The status of an application can currently be one of the following:</p>
188188
<ul class="govuk-list govuk-list--bullet">
189189
<li>
190-
<code class="x-govuk-code x-govuk-code--inline">VALIDATING</code> - HM Land Registry is still processing the application, and it has not yet been added to the day list
190+
<code class="app-code app-code--inline">VALIDATING</code> - HM Land Registry is still processing the application, and it has not yet been added to the day list
191191
</li>
192192
<li>
193-
<code class="x-govuk-code x-govuk-code--inline">VALIDATION_FAILED</code> - The application has not been added to the day list due to errors during validation. The errors found are included in the errors section of the response
193+
<code class="app-code app-code--inline">VALIDATION_FAILED</code> - The application has not been added to the day list due to errors during validation. The errors found are included in the errors section of the response
194194
</li>
195195
<li>
196-
<code class="x-govuk-code x-govuk-code--inline">ACCEPTED_AWAITING_PRIORITY</code> - The application has passed validation but has not yet been added to the day list as it is currently closed. The application will be added to the day list and moved to an <code class="x-govuk-code x-govuk-code--inline">ACCEPTED_PRIORITY_PROTECTED</code> state when the day list reopens
196+
<code class="app-code app-code--inline">ACCEPTED_AWAITING_PRIORITY</code> - The application has passed validation but has not yet been added to the day list as it is currently closed. The application will be added to the day list and moved to an <code class="app-code app-code--inline">ACCEPTED_PRIORITY_PROTECTED</code> state when the day list reopens
197197
</li>
198198
<li>
199-
<code class="x-govuk-code x-govuk-code--inline">ACCEPTED_PRIORITY_PROTECTED</code> - The application has been accepted onto the day list, and has priority
199+
<code class="app-code app-code--inline">ACCEPTED_PRIORITY_PROTECTED</code> - The application has been accepted onto the day list, and has priority
200200
</li>
201201
<li>
202-
<code class="x-govuk-code x-govuk-code--inline">SYSTEM_ERROR</code> - The application has not been added to the day list due to an HMLR system error. The request should be retried, or the support team contacted
202+
<code class="app-code app-code--inline">SYSTEM_ERROR</code> - The application has not been added to the day list due to an HMLR system error. The request should be retried, or the support team contacted
203203
</li>
204204
</ul>
205205
<p class="govuk-body">This API will always return an HTTP 200 response for a valid request, regardless of the status of the application.</p>

_site/apis/application-information/0.3/test-stubs/index.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -184,16 +184,16 @@ <h2 class="govuk-heading-m govuk-!-margin-0" id="version-and-status">Version and
184184
<div class="app-prose-scope"><p class="govuk-body">HMLR does not currently provide a test environment for integrators using our Business Gateway
185185
APIs. Instead, we’ve provided example code for different scenarios to demonstrate what you should expect to see
186186
when developing your own services.</p>
187-
<p class="govuk-body">Base URL: <code class="x-govuk-code x-govuk-code--inline">https://bgtest.landregistry.gov.uk/bg2test/api</code></p>
187+
<p class="govuk-body">Base URL: <code class="app-code app-code--inline">https://bgtest.landregistry.gov.uk/bg2test/api</code></p>
188188
<hr class="govuk-section-break govuk-section-break--l govuk-section-break--visible">
189189
<section>
190190
<h3 id="scenario-1" class="govuk-heading-m">Scenario 1: Information of applicaiton with single charge</h2>
191191
<h3 class="govuk-heading-s">Request</h3>
192-
<p class="govuk-body">Method: <code class="x-govuk-code x-govuk-code--inline">GET</code></p>
193-
<p class="govuk-body">Endpoint: <code class="x-govuk-code x-govuk-code--inline">/v0/applications/b3ac19be-2b6d-4b8a-971c-e758b0e8e790/information</code></p>
194-
<p class="govuk-body">Headers: <code class="x-govuk-code x-govuk-code--inline">Authorization: &ltany-value&gt</code></p>
192+
<p class="govuk-body">Method: <code class="app-code app-code--inline">GET</code></p>
193+
<p class="govuk-body">Endpoint: <code class="app-code app-code--inline">/v0/applications/b3ac19be-2b6d-4b8a-971c-e758b0e8e790/information</code></p>
194+
<p class="govuk-body">Headers: <code class="app-code app-code--inline">Authorization: &ltany-value&gt</code></p>
195195
<h3 class="govuk-heading-s">Response</h3>
196-
<p class="govuk-body">Status: <code class="x-govuk-code x-govuk-code--inline">200</code></p>
196+
<p class="govuk-body">Status: <code class="app-code app-code--inline">200</code></p>
197197
<div class="code-wrapper">
198198
<button type="submit" class="govuk-button govuk-button--secondary copy-code" data-module="govuk-button">
199199
Copy code
@@ -215,11 +215,11 @@ <h3 class="govuk-heading-s">Response</h3>
215215
<section>
216216
<h3 id="scenario-2" class="govuk-heading-m">Scenario 2: Information of application with single transfer</h2>
217217
<h3 class="govuk-heading-s">Request</h3>
218-
<p class="govuk-body">Method: <code class="x-govuk-code x-govuk-code--inline">GET</code></p>
219-
<p class="govuk-body">Endpoint: <code class="x-govuk-code x-govuk-code--inline">/v0/applications/2563940e-ae95-4e7e-9b33-49a6571abdf6/information</code></p>
220-
<p class="govuk-body">Headers: <code class="x-govuk-code x-govuk-code--inline">Authorization: &ltany-value&gt</code></p>
218+
<p class="govuk-body">Method: <code class="app-code app-code--inline">GET</code></p>
219+
<p class="govuk-body">Endpoint: <code class="app-code app-code--inline">/v0/applications/2563940e-ae95-4e7e-9b33-49a6571abdf6/information</code></p>
220+
<p class="govuk-body">Headers: <code class="app-code app-code--inline">Authorization: &ltany-value&gt</code></p>
221221
<h3 class="govuk-heading-s">Response</h3>
222-
<p class="govuk-body">Status: <code class="x-govuk-code x-govuk-code--inline">200</code></p>
222+
<p class="govuk-body">Status: <code class="app-code app-code--inline">200</code></p>
223223
<div class="code-wrapper">
224224
<button type="submit" class="govuk-button govuk-button--secondary copy-code" data-module="govuk-button">
225225
Copy code
@@ -241,11 +241,11 @@ <h3 class="govuk-heading-s">Response</h3>
241241
<section>
242242
<h3 id="scenario-3" class="govuk-heading-m">Scenario 3: Information of application with level 2 validation errors</h2>
243243
<h3 class="govuk-heading-s">Request</h3>
244-
<p class="govuk-body">Method: <code class="x-govuk-code x-govuk-code--inline">GET</code></p>
245-
<p class="govuk-body">Endpoint: <code class="x-govuk-code x-govuk-code--inline">/v0/applications/3be62ad3-c542-452d-975e-6cd18d77196f/information</code></p>
246-
<p class="govuk-body">Headers: <code class="x-govuk-code x-govuk-code--inline">Authorization: &ltany-value&gt</code></p>
244+
<p class="govuk-body">Method: <code class="app-code app-code--inline">GET</code></p>
245+
<p class="govuk-body">Endpoint: <code class="app-code app-code--inline">/v0/applications/3be62ad3-c542-452d-975e-6cd18d77196f/information</code></p>
246+
<p class="govuk-body">Headers: <code class="app-code app-code--inline">Authorization: &ltany-value&gt</code></p>
247247
<h3 class="govuk-heading-s">Response</h3>
248-
<p class="govuk-body">Status: <code class="x-govuk-code x-govuk-code--inline">200</code></p>
248+
<p class="govuk-body">Status: <code class="app-code app-code--inline">200</code></p>
249249
<div class="code-wrapper">
250250
<button type="submit" class="govuk-button govuk-button--secondary copy-code" data-module="govuk-button">
251251
Copy code
Lines changed: 238 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,238 @@
1+
<!DOCTYPE html>
2+
<html lang="en" class="govuk-template govuk-template--rebranded">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Download a document API - HM Land Registry Developer Pack</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
7+
<meta name="theme-color" content="#789904">
8+
9+
<link rel="icon" href="/hmlrassets/images/favicon.ico" sizes="any"><link rel="mask-icon" href="/hmlrassets/images/mask-icon.svg" color="#789904"><link rel="apple-touch-icon" href="/hmlrassets/images/apple-touch-icon.png">
10+
<script src="/assets/application.js" type="module"></script>
11+
12+
<link rel="stylesheet" href="/assets/application.css">
13+
14+
15+
<meta property="og:title" content="Download a document API">
16+
17+
<script src="/assets/script.js"></script><script>
18+
function setVersion() {
19+
let version = document.getElementById('version').value;
20+
if (!window.location.href.includes(version + '/')) {
21+
console.log(`Versions were different, navigating to ${version}`)
22+
if (window.location.href.match(/\/[0-9.]+\//))
23+
window.location.href = window.location.href.replace(/\/[0-9.]+\//, `/${version}/`)
24+
else
25+
window.location.href = `./${version}`
26+
} else {
27+
console.log(`Version has not changed`);
28+
}
29+
}
30+
document.addEventListener("DOMContentLoaded", () => {
31+
setVersion()
32+
});
33+
</script>
34+
<meta property="og:image" content="/hmlrassets/images/hmlr-opengraph-image.png">
35+
</head>
36+
<body class="govuk-template__body">
37+
<script>document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' govuk-frontend-supported' : '');</script>
38+
39+
<a href="#main-content" class="govuk-skip-link" data-module="govuk-skip-link">Skip to main content</a>
40+
41+
42+
<header class="govuk-header app-header govuk-header--full-width-border" role="banner" data-module="govuk-header">
43+
<div class="govuk-header__container govuk-width-container app-header__container">
44+
<div class="govuk-header__logo app-header__logo">
45+
<a href="/" class="govuk-header__link govuk-header__link--homepage">
46+
<span class="app-header__logotype">HM Land Registry Developer Pack</span>
47+
</a>
48+
</div>
49+
<app-search class="app-search govuk-!-display-none-print" index="/search-index.json" label="Search developer pack"><a class="app-search__link" href="/sitemap">Sitemap</a></app-search>
50+
51+
</div>
52+
</header>
53+
54+
55+
56+
<div class="govuk-service-navigation app-service-navigation"
57+
data-module="govuk-service-navigation"
58+
>
59+
<div class="govuk-width-container">
60+
61+
<div class="govuk-service-navigation__container">
62+
63+
64+
65+
</div>
66+
67+
</div>
68+
69+
</div>
70+
71+
72+
73+
<div class="govuk-width-container">
74+
<a href="javascript:window.history.back()" class="govuk-back-link">Back</a>
75+
<main class="govuk-main-wrapper" id="main-content">
76+
<div class="app-prose-scope"><div class="govuk-grid-row">
77+
<div class="govuk-grid-column-two-thirds">
78+
<h1 class="govuk-heading-xl">
79+
Download a document API
80+
</h1>
81+
<p class="govuk-body-l">Use this service to download documents that have been created by HM Land Registry for your consumption.</p>
82+
<div class="govuk-warning-text">
83+
<span class="govuk-warning-text__icon" aria-hidden="true">!</span>
84+
<strong class="govuk-warning-text__text">
85+
<span class="govuk-visually-hidden">Warning</span>
86+
These API endpoints are not currently live.
87+
</strong>
88+
</div>
89+
<hr class="govuk-section-break govuk-section-break--visible">
90+
</div>
91+
</div>
92+
<div class="govuk-grid-row">
93+
<div class="govuk-grid-column-two-thirds">
94+
<hr class="govuk-section-break govuk-section-break--m govuk-section-break--visible govuk-!-margin-top-0">
95+
<div class="bg-version-grid">
96+
<div>
97+
<h2 class="govuk-heading-m govuk-!-margin-0" id="version-and-status">Version and status</h2>
98+
</div>
99+
<div class="govuk-form-group version-group govuk-!-margin-0">
100+
<label class="govuk-label govuk-visually-hidden" for="version">
101+
Version and status dropdown
102+
</label>
103+
<select class="govuk-select" id="version" name="version">
104+
<option value="0.1" selected>v0.1 (latest)</option>
105+
</select>
106+
<button type="submit"
107+
class="govuk-button govuk-!-margin-0"
108+
data-module="govuk-button"
109+
onclick="setVersion();"
110+
>View</button>
111+
</div>
112+
</div>
113+
<hr class="govuk-section-break govuk-section-break--m govuk-section-break--visible">
114+
<div>
115+
<h2 class="govuk-heading-m" id="overview"><br>Overview</h2>
116+
<p class="govuk-body">The Download a document API provides a way to download documents that have been created by HM Land Registry for your consumption.</p>
117+
<p class="govuk-body">This API has one endpoint:</p>
118+
<ul class="govuk-list govuk-list--bullet">
119+
<li><code class="x-govuk-code x-govuk-code--inline">GET /v0/documents/{download_id}</code> - get the binary content of the document.</li>
120+
</ul>
121+
<p class="govuk-body">You may obtain a <code class="x-govuk-code x-govuk-code--inline">`download_id`</code> from any of the following:</p>
122+
<ul class="govuk-list govuk-list--bullet">
123+
<li>Completion notifications</li>
124+
<li>Cancellation notifications</li>
125+
<li>Requisition correspondence notifications</li>
126+
<li>The `/correspondence` array in an [application information](/apis/application-information) response</li>
127+
</ul>
128+
</div>
129+
<div>
130+
<h2 class="govuk-heading-m" id="view-the-technical-guide">View the Technical guide</h2>
131+
<ul class="govuk-list">
132+
<li>
133+
<a class="govuk-body govuk-link" href="./technical-guide">Technical guide</a>
134+
</li>
135+
</ul>
136+
</div>
137+
<div>
138+
<h2 class="govuk-heading-m" id="view-the-api-specification">View the API specification</h2>
139+
<ul class="govuk-list">
140+
<li>
141+
<a class="govuk-body govuk-link"
142+
href="https://landregistry.github.io/bgtechdoc/vcad/v0_3/vcad-spec.html#tag/Application-information-API"
143+
rel="noreferrer noopener" target="_blank">Web version (opens in new tab)</a>
144+
</li>
145+
</ul>
146+
</div>
147+
<br>
148+
<div>
149+
<h3 class="govuk-heading-m" id="how-the-service-api-works">How the API works</h3>
150+
<div class="govuk-!-padding-bottom-3"></div>
151+
<div class="govuk-!-padding-bottom-3"></div>
152+
<p class="govuk-body">Body text</p>
153+
<div class="govuk-!-padding-bottom-3"></div>
154+
<div>
155+
<h3 class="govuk-heading-m" id="how-to-test-this-service-api">How to test this API</h3>
156+
<p class="govuk-body">HMLR has created a test environment for the Download a document API. We’ve also provided example code to demonstrate what you should expect when developing your own services.</p>
157+
<ul class="govuk-list">
158+
<li>
159+
<p class="govuk-body"><a class="govuk-body govuk-link" href="./test-stubs">View
160+
Application information test stubs</a>.</p>
161+
</li>
162+
</ul>
163+
<div class="govuk-inset-text">Please note there are also plans to release a sandbox test environment for developers in the future. The exact release date is to be confirmed.</div>
164+
<p class="govuk-body">For general testing guidance, visit our <a class="govuk-body govuk-link"
165+
href="/a-guide-to-testing">guide to testing</a>.</p>
166+
</div>
167+
</div>
168+
</div>
169+
<div class="govuk-grid-column-one-third">
170+
<aside class="related-items" role="complementary">
171+
<h2 class="govuk-heading-m" id="related-apis">
172+
Related APIs
173+
</h2>
174+
<nav role="navigation" aria-labelledby="related-apis">
175+
<ul class="govuk-list govuk-!-font-size-16">
176+
<li>
177+
<a class="govuk-body govuk-link" href="/apis/submit-an-application-to-change-the-land-register">
178+
Submit an application to change the Land Register
179+
</a>
180+
</li>
181+
<li>
182+
<a class="govuk-body govuk-link" href="/apis/send-a-document">
183+
Send a document
184+
</a>
185+
</li>
186+
<li>
187+
<a class="govuk-body govuk-link" href="/apis/submit-an-application">
188+
Submit an application
189+
</a>
190+
</li>
191+
<li>
192+
</li>
193+
<li>
194+
<a class="govuk-body govuk-link" href="/apis/notifications">
195+
Notifications
196+
</a>
197+
</li>
198+
<li>
199+
<a class="govuk-body govuk-link govuk-!-font-weight-bold" href="/find-a-service-api">
200+
More <span class="govuk-visually-hidden">in Subsection</span>
201+
</a>
202+
</li>
203+
</ul>
204+
</nav>
205+
</aside>
206+
</div>
207+
</div></div>
208+
209+
</main>
210+
</div>
211+
212+
<footer class="govuk-footer govuk-footer--hmlr " role="contentinfo">
213+
<div class="govuk-width-container ">
214+
<div class="govuk-footer__meta">
215+
<div class="govuk-footer__meta-item govuk-footer__meta-item--grow">
216+
<h2 class="govuk-visually-hidden">These links open in a new tab.</h2>
217+
<ul class="govuk-footer__inline-list">
218+
<li class="govuk-footer__inline-list-item">
219+
<a class="govuk-footer__link" href="https://landregistry.github.io/bgtechdoc/accessibility/index.html">
220+
Accessibility Statement
221+
</a>
222+
</li>
223+
</ul>
224+
<div class="govuk-footer__meta-custom">
225+
These links open in a new tab.
226+
</div>
227+
</div>
228+
<div class="govuk-footer__meta-item">
229+
<span
230+
class="govuk-footer__link govuk-footer__copyright-logo govuk-footer__copyright-logo--hmlr"
231+
>&copy; Crown copyright</span>
232+
</div>
233+
</div>
234+
</div>
235+
</footer>
236+
237+
</body>
238+
</html>

0 commit comments

Comments
 (0)