Skip to content

Commit

Permalink
Merge pull request #413 from Hochfrequenz/openapi-adaptions
Browse files Browse the repository at this point in the history
refactor(format-version endpoint): Use sqlite to provide extended endpoint /api/format-versions/FV2504/pruefis
  • Loading branch information
hf-krechan authored Jan 29, 2025
2 parents b74a2f4 + c0d08fc commit 62683e7
Show file tree
Hide file tree
Showing 36 changed files with 1,675 additions and 260 deletions.
11 changes: 11 additions & 0 deletions bruno/Get FormatVersions.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Get FormatVersions
type: http
seq: 3
}

get {
url: http://localhost:3000/formatversions
body: none
auth: none
}
11 changes: 11 additions & 0 deletions bruno/Get all pruefis of formatversion.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Get all pruefis of formatversion
type: http
seq: 2
}

get {
url: localhost:4200/api/format-versions/FV2504/pruefis
body: none
auth: none
}
6 changes: 6 additions & 0 deletions bruno/bruno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"version": "1",
"name": "ahbesser",
"type": "collection",
"ignore": ["node_modules", ".git"]
}
16 changes: 9 additions & 7 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,15 @@ paths:
schema:
type: array
items:
type: string
example: ['31001', '31002', '31003']
type: object
properties:
pruefidentifikator:
type: string
pattern: '^\\d{5}$'
example: '31001'
name:
type: string
example: 'Pruefidentifikator Name'
/version:
get:
tags:
Expand Down Expand Up @@ -180,17 +187,12 @@ components:
direction:
type: string
example: 'inbound'
maus_version:
type: string
pattern: '^\\d+\\.\\d+\\.\\d+$'
example: '0.3.1'
pruefidentifikator:
type: string
example: '25007'
required:
- description
- direction
- maus_version
- pruefidentifikator
required:
- lines
Expand Down
Loading

0 comments on commit 62683e7

Please sign in to comment.