Skip to content

Commit b1f85a7

Browse files
committed
CCM-8855: Add skeleton API spec
1 parent 59035ee commit b1f85a7

File tree

122 files changed

+20808
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+20808
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ version.json
1111
!project.code-workspace
1212

1313
# Please, add your custom content below!
14+
node_modules
15+
.idea

.tool-versions

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ terraform-docs 0.19.0
66
tfsec 1.28.10
77
vale 3.6.0
88
python 3.13.2
9+
pnpm 10.4.1
10+
nodejs 20.18.2
911

1012
# ==============================================================================
1113
# The section below is reserved for Docker image versions.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.2-${yyyy}${mm}${dd}.${HH}${MM}${SS}+${hash}
1+
0.0.1-${yyyy}${mm}${dd}.${HH}${MM}${SS}+${hash}

orval.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// orval.config.js
2+
module.exports = {
3+
client: {
4+
input: 'specification/api/notify-supplier.yml',
5+
output: {
6+
mode: 'single',
7+
target: 'sdk/typescript/api.ts',
8+
client: 'axios',
9+
schemas: 'sdk/typescript/types', // Assuming openapi-typescript outputs here
10+
override: {
11+
useDates: true,
12+
},
13+
},
14+
},
15+
};

package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"author": "Crown Copyright",
3+
"dependencies": {
4+
"axios": "^1.8.4"
5+
},
6+
"description": "",
7+
"devDependencies": {
8+
"@openapitools/openapi-generator-cli": "^2.18.4",
9+
"orval": "^7.7.0"
10+
},
11+
"keywords": [],
12+
"license": "MIT",
13+
"main": "index.js",
14+
"name": "nhs-notify-supplier-api",
15+
"packageManager": "[email protected]",
16+
"scripts": {
17+
"generate": "pnpm generate:ts && pnpm generate:python",
18+
"generate:python": "docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli generate -i /local/specification/api/notify-supplier.yml -g python -o /local/sdk/python --skip-validate-spec",
19+
"generate:ts": "npx orval",
20+
"test": "echo \"Error: no test specified\" && exit 1"
21+
},
22+
"version": "1.0.0"
23+
}

0 commit comments

Comments
 (0)