From e19eb50239a1c740af7cda78cc55fbf5988ea47f Mon Sep 17 00:00:00 2001 From: Jan Sander <63044278+JanhSander@users.noreply.github.com> Date: Tue, 30 Apr 2024 14:54:51 +0200 Subject: [PATCH 1/3] Added backstage.yaml --- backstage.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 backstage.yaml diff --git a/backstage.yaml b/backstage.yaml new file mode 100644 index 0000000..3820a2f --- /dev/null +++ b/backstage.yaml @@ -0,0 +1,20 @@ +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: klass + title: KLASS + description: | + Spring Boot applications that handles classifications for SSB. Klass provides a REST api that clients can use to read classifications, and a Vaadin frontend for maintaining classifications. + tags: + - dapla + - metadata + - java + - classification + - codelist + annotations: + github.com/project-slug: statisticsnorway/klass +spec: + type: service + owner: dapla-metadata-developers + lifecycle: production + system: metadata \ No newline at end of file From fc9dbb08727ca1031baab8ccd2669eea693e9ea4 Mon Sep 17 00:00:00 2001 From: Jan Sander <63044278+JanhSander@users.noreply.github.com> Date: Tue, 30 Apr 2024 14:58:46 +0200 Subject: [PATCH 2/3] Removed symbol --- backstage.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backstage.yaml b/backstage.yaml index 3820a2f..e08ac80 100644 --- a/backstage.yaml +++ b/backstage.yaml @@ -3,7 +3,7 @@ kind: Component metadata: name: klass title: KLASS - description: | + description: Spring Boot applications that handles classifications for SSB. Klass provides a REST api that clients can use to read classifications, and a Vaadin frontend for maintaining classifications. tags: - dapla From 6c6260abadd848ef36329a3057aee3cc4c873f35 Mon Sep 17 00:00:00 2001 From: Jan Sander <63044278+JanhSander@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:22:08 +0200 Subject: [PATCH 3/3] Added API document --- backstage.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/backstage.yaml b/backstage.yaml index e08ac80..1997df5 100644 --- a/backstage.yaml +++ b/backstage.yaml @@ -17,4 +17,21 @@ spec: type: service owner: dapla-metadata-developers lifecycle: production - system: metadata \ No newline at end of file + system: metadata + providesApis: + - klass-api +--- +apiVersion: backstage.io/v1alpha1 +kind: API +metadata: + name: klass-api + description: REST api that clients can use to read classifications + links: + - url: https://data.ssb.no/api/klass/v1/api-guide.html +spec: + type: openapi + lifecycle: production + owner: dapla-metadata-developers + system: metadata + definition: + $text: . \ No newline at end of file