Skip to content

Commit 9fbd050

Browse files
Fix swagger static and some typos
1 parent 54b0fc2 commit 9fbd050

File tree

9 files changed

+26
-57
lines changed

9 files changed

+26
-57
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@
7676
"installDockerComposeSwitch": true,
7777
"moby": true,
7878
"version": "latest"
79+
},
80+
"ghcr.io/devcontainers/features/dotnet:2.4.0": {
81+
"version": "8.0"
7982
}
8083
},
8184
"mounts": [

.github/actions/build-sdk/action.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ runs:
4949
run: |
5050
make build VERSION="${{ inputs.version }}"
5151
52-
5352
- name: Upload API OAS specification artifact
5453
uses: actions/upload-artifact@v4
5554
with:
@@ -86,13 +85,6 @@ runs:
8685
path: "sdk/csharp"
8786
name: sdk-csharp-${{ inputs.version }}
8887

89-
# - name: Upload artifact
90-
# # Automatically uploads an artifact from the './_site' directory by default
91-
# uses: actions/upload-pages-artifact@v3
92-
# with:
93-
# path: "docs/_site/"
94-
# name: jekyll-docs-${{ inputs.version }}
95-
9688
- name: Upload artifact
9789
uses: actions/upload-pages-artifact@v3
9890
with:

.github/workflows/stage-5-publish.yaml

Lines changed: 13 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ jobs:
112112
draft: false
113113
prerelease: ${{ inputs.is_version_prerelease == 'true'}}
114114

115-
116-
- name: "Upload jeykll docs release asset"
115+
- name: "Upload jekyll docs release asset"
117116
uses: actions/upload-release-asset@v1
118117
env:
119118
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -143,7 +142,6 @@ jobs:
143142
asset_name: sdk-swagger-docs-${{ inputs.version }}.tar
144143
asset_content_type: "application/gzip"
145144

146-
147145
- name: "zip html release asset"
148146
# Git hub pages needs a single tar called artifact inside the zip.
149147
working-directory: ./artifacts/sdk-html-${{ inputs.version }}
@@ -192,9 +190,6 @@ jobs:
192190
asset_name: sdk-python-${{ inputs.version }}.zip
193191
asset_content_type: "application/gzip"
194192

195-
196-
197-
198193
- name: "zip sdk csharp release asset"
199194
# Git hub pages needs a single tar called artifact inside the zip.
200195
working-directory: ./artifacts/sdk-csharp-${{ inputs.version }}
@@ -227,7 +222,6 @@ jobs:
227222
asset_name: api-oas-specification-${{ inputs.version }}.zip
228223
asset_content_type: "application/gzip"
229224

230-
231225
- name: "zip csharp server release asset"
232226
# Git hub pages needs a single tar called artifact inside the zip.
233227
working-directory: ./artifacts/server-csharp-${{ inputs.version }}
@@ -244,8 +238,7 @@ jobs:
244238
asset_name: server-csharp-${{ inputs.version }}.zip
245239
asset_content_type: "application/gzip"
246240

247-
248-
### PUBLISH DOCKER - THIS NEEDS CHANGING TO DO THE DOCKER BUILD IN THE BUILD STAGE AND ARTIFACT IT. SEE publishlibhostdocker below how how and the buildlibs action.
241+
### PUBLISH DOCKER - THIS NEEDS CHANGING TO DO THE DOCKER BUILD IN THE BUILD STAGE AND ARTIFACT IT. SEE publishlibhostdocker below how how and the buildlibs action.
249242
publishdocker:
250243
name: "Publish docker packages"
251244
runs-on: ubuntu-latest
@@ -272,8 +265,7 @@ jobs:
272265
env:
273266
CR_PAT: ${{ secrets.GITHUB_TOKEN }}
274267
275-
276-
### PUBLISH NUGET
268+
### PUBLISH NUGET
277269
publishnuget:
278270
name: "Publish nuget packages to nuget.pkg.github.com"
279271
runs-on: ubuntu-latest
@@ -328,7 +320,7 @@ jobs:
328320
TEST_NUGET_VERSION: ${{ steps.set-nuget-version.outputs.TEST_NUGET_VERSION }}
329321
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
330322
331-
### Publish NPM
323+
### Publish NPM
332324

333325
publishnpm:
334326
name: "Publish npm packages to npm.pkg.github.com"
@@ -345,9 +337,9 @@ jobs:
345337
name: sdk-ts-${{ inputs.version }}
346338
- uses: actions/setup-node@v4
347339
with:
348-
node-version: '24.3'
349-
registry-url: 'https://npm.pkg.github.com'
350-
scope: '@NHSDigital'
340+
node-version: "24.3"
341+
registry-url: "https://npm.pkg.github.com"
342+
scope: "@NHSDigital"
351343

352344
- run: ls -la
353345
- run: npm cache clear --force
@@ -358,9 +350,6 @@ jobs:
358350
env:
359351
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
360352

361-
362-
363-
364353
# - name: "Upload other release asset 1"
365354
# uses: actions/upload-release-asset@v1
366355
# env:
@@ -382,7 +371,7 @@ jobs:
382371
success:
383372
name: "Success notification"
384373
runs-on: ubuntu-latest
385-
needs: [publish,publishnpm]
374+
needs: [publish, publishnpm]
386375
steps:
387376
- name: "Check prerequisites for notification"
388377
id: check
@@ -397,8 +386,7 @@ jobs:
397386
message-text: "This is a notification body"
398387
link: ${{ github.event.pull_request.html_url }}
399388

400-
401-
### PUBLISH LIBS ABSTRACTION NUGET
389+
### PUBLISH LIBS ABSTRACTION NUGET
402390
publishlibsabstractionsnuget:
403391
name: "Publish libs abstractions packages to nuget.pkg.github.com"
404392
runs-on: ubuntu-latest
@@ -454,9 +442,7 @@ jobs:
454442
TEST_NUGET_VERSION: ${{ steps.set-nuget-version.outputs.TEST_NUGET_VERSION }}
455443
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
456444
457-
458-
459-
### PUBLISH LIBS LETTERS NUGET
445+
### PUBLISH LIBS LETTERS NUGET
460446
publishliblettersnuget:
461447
name: "Publish libs letter packages to nuget.pkg.github.com"
462448
runs-on: ubuntu-latest
@@ -512,8 +498,7 @@ jobs:
512498
TEST_NUGET_VERSION: ${{ steps.set-nuget-version.outputs.TEST_NUGET_VERSION }}
513499
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
514500
515-
516-
### PUBLISH LIBS data NUGET
501+
### PUBLISH LIBS data NUGET
517502
publishlibhostnuget:
518503
name: "Publish libs data packages to nuget.pkg.github.com"
519504
runs-on: ubuntu-latest
@@ -569,9 +554,7 @@ jobs:
569554
TEST_NUGET_VERSION: ${{ steps.set-nuget-version.outputs.TEST_NUGET_VERSION }}
570555
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
571556
572-
573-
574-
### PUBLISH LIBS host NUGET
557+
### PUBLISH LIBS host NUGET
575558
publishlibdatanuget:
576559
name: "Publish libs host packages to nuget.pkg.github.com"
577560
runs-on: ubuntu-latest
@@ -627,9 +610,7 @@ jobs:
627610
TEST_NUGET_VERSION: ${{ steps.set-nuget-version.outputs.TEST_NUGET_VERSION }}
628611
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
629612
630-
631-
632-
### PUBLISH LIBS host docker
613+
### PUBLISH LIBS host docker
633614
publishlibhostdocker:
634615
name: "Publish libs host docker"
635616
runs-on: ubuntu-latest

README.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
The NHS Notify Supplier API is intended primarily for print suppliers to integrate with the NHS Notify message request queueing system.
77

8-
It models the concepts needed to configure production of letters and other printed materials to specific specifications, provide proofs of these materials, receive batch production requests, provide details of returned letters and correspondence, and to report on the status of these artifacts and associated management information such as volumes and assocated costs.
8+
It models the concepts needed to configure production of letters and other printed materials to specific specifications, provide proofs of these materials, receive batch production requests, provide details of returned letters and correspondence, and to report on the status of these artifacts and associated management information such as volumes and associated costs.
99

1010
This repository documents the Supplier API specification and provides an SDK with examples and reference client implementations for interacting with it.
1111

@@ -25,8 +25,7 @@ This repository documents the Supplier API specification and provides an SDK wit
2525
- [SDK Assets](#sdk-assets)
2626
- [Examples](#examples)
2727
- [API Developers](#api-developers)
28-
- [Documentation](#documentation-1)
29-
- [pre built servers](#pre-built-servers)
28+
- [Pre built servers](#pre-built-servers)
3029
- [Setup](#setup)
3130
- [Prerequisites and Configuration](#prerequisites-and-configuration)
3231
- [SDKs](#sdks)
@@ -71,15 +70,9 @@ TODO:CCM-11209 Links to example clients.
7170

7271
## API Developers
7372

74-
New developer of the NHS Notify Supplier API
75-
should understand the below.
73+
New developer of the NHS Notify Supplier API should understand the below.
7674

77-
### Documentation
78-
79-
- [Built](/)
80-
- [Source](/docs/README.md)
81-
82-
### pre built servers
75+
### Pre built servers
8376

8477
- "Working" C# server [/src/server/host](/src/server/host) `docker run -p 8080:8080 ghcr.io/nhsdigital/libshostdocker:latest`
8578
- View at [http://localhost:8080/swagger/index.html](http://localhost:8080/swagger/index.html)
@@ -109,7 +102,7 @@ should understand the below.
109102

110103
##### Libs
111104

112-
- [/src/server](/src/server) has various separate libaries that are used by:
105+
- [/src/server](/src/server) has various separate libraries that are used by:
113106
- [/src/server/host](/src/server/host) custom loads libs for different parts of the server
114107

115108
### Build

sdk/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ build: version # Build the project artefact @Pipeline
88

99
clean: # Clean-up project resources (main) @Operations
1010
rm -rf */
11+
1112
swagger:
1213
./swagger.sh
1314

sdk/swagger-initializer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ window.onload = function() {
33

44
// the following lines will be replaced by docker/configurator, when it runs in a docker-container
55
window.ui = SwaggerUIBundle({
6-
urls: [{url:"swagger.json", name: "current"}],
6+
urls: [{url:"swagger.yml", name: "current"}],
77
dom_id: '#swagger-ui',
88
deepLinking: true,
99
presets: [

sdk/swagger-static.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ unzip swagger.zip "swagger-ui-$VERSION/dist/*" -d swagger
99
mv swagger/swagger-ui-$VERSION/dist/* swagger
1010
rm -r swagger/swagger-ui-$VERSION
1111
cp swagger-initializer.js swagger/swagger-initializer.js
12-
cp ../specification/api/notify-supplier-phase1.yml swagger/swagger.json
12+
cp ../build/notify-supplier.yml swagger/swagger.yml
1313
rm swagger.zip

sdk/swagger.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/sh
2+
set -eux
23

3-
docker run -p 80:8080 -e SWAGGER_JSON=/swagger/swagger.json -v ../specification/api/notify-supplier.yml:/swagger/swagger.json docker.swagger.io/swaggerapi/swagger-ui
4+
docker run -p 80:8080 -e SWAGGER_JSON=/swagger/swagger.yml -v ../build/notify-supplier.yml:/swagger/swagger.yml docker.swagger.io/swaggerapi/swagger-ui

server/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ build: version # Build the project artefact @Pipeline
77

88
clean: # Clean-up project resources (main) @Operations
99
rm -rf */
10-
swagger:
11-
./swagger.sh
1210

1311
version:
1412
touch _config.version.yml

0 commit comments

Comments
 (0)