diff --git a/src/PublicServiceRegistry.Api.Backoffice/LabelType/Responses/LabelTypeListResponse.cs b/src/PublicServiceRegistry.Api.Backoffice/LabelType/Responses/LabelTypeListResponse.cs
index d4c3b16..7eaf261 100755
--- a/src/PublicServiceRegistry.Api.Backoffice/LabelType/Responses/LabelTypeListResponse.cs
+++ b/src/PublicServiceRegistry.Api.Backoffice/LabelType/Responses/LabelTypeListResponse.cs
@@ -1,12 +1,15 @@
namespace PublicServiceRegistry.Api.Backoffice.LabelType.Responses
{
using System.Collections.Generic;
+ using System.Runtime.Serialization;
using Swashbuckle.AspNetCore.Filters;
+ [DataContract(Name = "Labeltype", Namespace = "")]
public class LabelTypeListResponse
{
/// Id van de alternatieve benamingstype.
- public string Id { get; }
+ [DataMember(Name = "Id", Order = 1)]
+ public string Id { get; set; }
public LabelTypeListResponse(string id) => Id = id;
}
diff --git a/src/PublicServiceRegistry.Api.Backoffice/Labels/Responses/LabelListResponse.cs b/src/PublicServiceRegistry.Api.Backoffice/Labels/Responses/LabelListResponse.cs
index c70a01a..838b7b7 100755
--- a/src/PublicServiceRegistry.Api.Backoffice/Labels/Responses/LabelListResponse.cs
+++ b/src/PublicServiceRegistry.Api.Backoffice/Labels/Responses/LabelListResponse.cs
@@ -1,15 +1,19 @@
namespace PublicServiceRegistry.Api.Backoffice.Labels.Responses
{
using System.Collections.Generic;
+ using System.Runtime.Serialization;
using Swashbuckle.AspNetCore.Filters;
+ [DataContract(Name = "Label", Namespace = "")]
public class LabelListResponse
{
/// Id van het alternatieve benamingstype.
- public string Id { get; }
+ [DataMember(Name = "Id", Order = 1)]
+ public string Id { get; set; }
/// Alternatieve benaming.
- public string Naam { get; }
+ [DataMember(Name = "Naam", Order = 2)]
+ public string Naam { get; set; }
public LabelListResponse(
string id,
diff --git a/src/PublicServiceRegistry.Api.Backoffice/LifeCycle/Responses/LifeCycleResponse.cs b/src/PublicServiceRegistry.Api.Backoffice/LifeCycle/Responses/LifeCycleResponse.cs
index 6ff6476..0cb7484 100755
--- a/src/PublicServiceRegistry.Api.Backoffice/LifeCycle/Responses/LifeCycleResponse.cs
+++ b/src/PublicServiceRegistry.Api.Backoffice/LifeCycle/Responses/LifeCycleResponse.cs
@@ -1,16 +1,20 @@
namespace PublicServiceRegistry.Api.Backoffice.LifeCycle.Responses
{
using System.Collections.Generic;
+ using System.Runtime.Serialization;
using Labels.Responses;
using Swashbuckle.AspNetCore.Filters;
+ [DataContract(Name = "Levensloop", Namespace = "")]
public class LifeCycleResponse
{
/// Id van het alternatieve benamingstype.
- public string Id { get; }
+ [DataMember(Name = "Id", Order = 1)]
+ public string Id { get; set; }
/// Alternatieve benaming.
- public string Naam { get; }
+ [DataMember(Name = "Naam", Order = 2)]
+ public string Naam { get; set; }
public LifeCycleResponse(
string id,
diff --git a/src/PublicServiceRegistry.Api.Backoffice/LifeCycleStage/Responses/LifeCycleStageListResponse.cs b/src/PublicServiceRegistry.Api.Backoffice/LifeCycleStage/Responses/LifeCycleStageListResponse.cs
index 0178c82..1133405 100755
--- a/src/PublicServiceRegistry.Api.Backoffice/LifeCycleStage/Responses/LifeCycleStageListResponse.cs
+++ b/src/PublicServiceRegistry.Api.Backoffice/LifeCycleStage/Responses/LifeCycleStageListResponse.cs
@@ -1,12 +1,15 @@
namespace PublicServiceRegistry.Api.Backoffice.LifeCycleStage.Responses
{
using System.Collections.Generic;
+ using System.Runtime.Serialization;
using Swashbuckle.AspNetCore.Filters;
+ [DataContract(Name = "Levensloopfase", Namespace = "")]
public class LifeCycleStageListResponse
{
/// Id van de levensfase.
- public string Id { get; }
+ [DataMember(Name = "Id", Order = 1)]
+ public string Id { get; set; }
public LifeCycleStageListResponse(string id) => Id = id;
}
diff --git a/src/PublicServiceRegistry.Api.Backoffice/PublicService/Responses/PublicServiceListResponse.cs b/src/PublicServiceRegistry.Api.Backoffice/PublicService/Responses/PublicServiceListResponse.cs
index e41a6cf..bb24e7a 100755
--- a/src/PublicServiceRegistry.Api.Backoffice/PublicService/Responses/PublicServiceListResponse.cs
+++ b/src/PublicServiceRegistry.Api.Backoffice/PublicService/Responses/PublicServiceListResponse.cs
@@ -1,24 +1,31 @@
namespace PublicServiceRegistry.Api.Backoffice.PublicService.Responses
{
using System.Collections.Generic;
+ using System.Runtime.Serialization;
using Swashbuckle.AspNetCore.Filters;
+ [DataContract(Name = "Dienstverlening", Namespace = "")]
public class PublicServiceListResponse
{
/// Id van de dienstverlening.
- public string Id { get; }
+ [DataMember(Name = "Id", Order = 1)]
+ public string Id { get; set; }
/// Naam van de dienstverlening.
- public string Naam { get; }
+ [DataMember(Name = "Naam", Order = 2)]
+ public string Naam { get; set; }
/// Code van de verantwoordelijke autoriteit
- public string VerantwoordelijkeAutoriteitCode { get; }
+ [DataMember(Name = "VerantwoordelijkeAutoriteitCode", Order = 3)]
+ public string VerantwoordelijkeAutoriteitCode { get; set; }
/// Naam van de verantwoordelijke autoriteit
- public string VerantwoordelijkeAutoriteitNaam { get; }
+ [DataMember(Name = "VerantwoordelijkeAutoriteitNaam", Order = 4)]
+ public string VerantwoordelijkeAutoriteitNaam { get; set; }
/// Of de dienstverlening al dan niet naar Orafin geexporteerd wordt.
- public bool ExportNaarOrafin { get; }
+ [DataMember(Name = "ExportNaarOrafin", Order = 5)]
+ public bool ExportNaarOrafin { get; set; }
public PublicServiceListResponse(
string id,
diff --git a/src/PublicServiceRegistry.Api.Backoffice/PublicService/Responses/PublicServiceResponse.cs b/src/PublicServiceRegistry.Api.Backoffice/PublicService/Responses/PublicServiceResponse.cs
index 8645d4a..d4572ad 100755
--- a/src/PublicServiceRegistry.Api.Backoffice/PublicService/Responses/PublicServiceResponse.cs
+++ b/src/PublicServiceRegistry.Api.Backoffice/PublicService/Responses/PublicServiceResponse.cs
@@ -1,25 +1,32 @@
namespace PublicServiceRegistry.Api.Backoffice.PublicService.Responses
{
+ using System.Runtime.Serialization;
using Be.Vlaanderen.Basisregisters.Api.Exceptions;
using Microsoft.AspNetCore.Http;
using Swashbuckle.AspNetCore.Filters;
+ [DataContract(Name = "Dienstverlening", Namespace = "")]
public class PublicServiceResponse
{
/// Id van de dienstverlening.
- public string Id { get; }
+ [DataMember(Name = "Id", Order = 1)]
+ public string Id { get; set; }
/// Naam van de dienstverlening.
- public string Naam { get; }
+ [DataMember(Name = "Naam", Order = 2)]
+ public string Naam { get; set; }
/// Code van de verantwoordelijke autoriteit
- public string VerantwoordelijkeAutoriteitCode { get; }
+ [DataMember(Name = "VerantwoordelijkeAutoriteitCode", Order = 3)]
+ public string VerantwoordelijkeAutoriteitCode { get; set; }
/// Naam van de verantwoordelijke autoriteit
- public string VerantwoordelijkeAutoriteitNaam { get; }
+ [DataMember(Name = "VerantwoordelijkeAutoriteitNaam", Order = 4)]
+ public string VerantwoordelijkeAutoriteitNaam { get; set; }
/// Of de dienstverlening al dan niet naar Orafin geexporteerd wordt.
- public bool ExportNaarOrafin { get; }
+ [DataMember(Name = "ExportNaarOrafin", Order = 5)]
+ public bool ExportNaarOrafin { get; set; }
public PublicServiceResponse(
string id,