From 431fe16587c787e785a8a100f3c464c339d5ee0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Skogstad?= Date: Mon, 4 Nov 2024 12:44:23 +0100 Subject: [PATCH] feat(webapi): Add ExternalReference to dialog search result (#1384) ## Description ## Related Issue(s) - #1376 ## Verification - [ ] **Your** code builds clean without any errors or warnings - [ ] Manual testing done (required) - [ ] Relevant automated test added (if you find this hard, leave it and we'll help out) ## Documentation - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia or a separate linked PR in [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if applicable) ## Summary by CodeRabbit - **New Features** - Introduced an `externalReference` property in the dialog schema, enhancing metadata for better integration with external systems. - Added an `ExternalReference` property in the `DialogDtoBase` class for service-specific references to external systems. --- docs/schema/V1/swagger.verified.json | 12 +++++++++++- .../EndUser/Dialogs/Queries/Search/DialogDtoBase.cs | 7 +++++++ .../Dialogs/Queries/Search/DialogDtoBase.cs | 7 +++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/docs/schema/V1/swagger.verified.json b/docs/schema/V1/swagger.verified.json index 2529f84a7..a27f1abdf 100644 --- a/docs/schema/V1/swagger.verified.json +++ b/docs/schema/V1/swagger.verified.json @@ -1337,6 +1337,11 @@ "nullable": true, "type": "string" }, + "externalReference": { + "description": "Arbitrary string with a service-specific reference to an external system or service.\n \nRefer to the service-specific documentation provided by the service owner for details (if in use).", + "nullable": true, + "type": "string" + }, "guiAttachmentCount": { "description": "The number of attachments in the dialog made available for browser-based frontends.", "format": "int32", @@ -4352,6 +4357,11 @@ "nullable": true, "type": "string" }, + "externalReference": { + "description": "Arbitrary string with a service-specific reference to an external system or service.\n \nRefer to the service-specific documentation provided by the service owner for details (if in use).", + "nullable": true, + "type": "string" + }, "guiAttachmentCount": { "description": "The number of attachments in the dialog made available for browser-based frontends.", "format": "int32", @@ -7445,4 +7455,4 @@ "url": "https://altinn-dev-api.azure-api.net/dialogporten" } ] -} \ No newline at end of file +} diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/DialogDtoBase.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/DialogDtoBase.cs index 9303298ec..7d904e170 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/DialogDtoBase.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/DialogDtoBase.cs @@ -71,6 +71,13 @@ public class DialogDtoBase /// public string? ExtendedStatus { get; set; } + /// + /// Arbitrary string with a service-specific reference to an external system or service. + /// + /// Refer to the service-specific documentation provided by the service owner for details (if in use). + /// + public string? ExternalReference { get; set; } + /// /// The date and time when the dialog was created. /// diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Search/DialogDtoBase.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Search/DialogDtoBase.cs index ac46deaf2..1f28661fc 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Search/DialogDtoBase.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Queries/Search/DialogDtoBase.cs @@ -77,6 +77,13 @@ public class DialogDtoBase /// public string? ExtendedStatus { get; set; } + /// + /// Arbitrary string with a service-specific reference to an external system or service. + /// + /// Refer to the service-specific documentation provided by the service owner for details (if in use). + /// + public string? ExternalReference { get; set; } + /// /// The date and time when the dialog was created. ///