Skip to content

Commit

Permalink
fix: make xml conneg work
Browse files Browse the repository at this point in the history
  • Loading branch information
CumpsD committed Mar 26, 2019
1 parent 4a19806 commit bcd809e
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -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
{
/// <summary>Id van de alternatieve benamingstype.</summary>
public string Id { get; }
[DataMember(Name = "Id", Order = 1)]
public string Id { get; set; }

public LabelTypeListResponse(string id) => Id = id;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
/// <summary>Id van het alternatieve benamingstype.</summary>
public string Id { get; }
[DataMember(Name = "Id", Order = 1)]
public string Id { get; set; }

/// <summary>Alternatieve benaming.</summary>
public string Naam { get; }
[DataMember(Name = "Naam", Order = 2)]
public string Naam { get; set; }

public LabelListResponse(
string id,
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
/// <summary>Id van het alternatieve benamingstype.</summary>
public string Id { get; }
[DataMember(Name = "Id", Order = 1)]
public string Id { get; set; }

/// <summary>Alternatieve benaming.</summary>
public string Naam { get; }
[DataMember(Name = "Naam", Order = 2)]
public string Naam { get; set; }

public LifeCycleResponse(
string id,
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
/// <summary>Id van de levensfase.</summary>
public string Id { get; }
[DataMember(Name = "Id", Order = 1)]
public string Id { get; set; }

public LifeCycleStageListResponse(string id) => Id = id;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
/// <summary>Id van de dienstverlening.</summary>
public string Id { get; }
[DataMember(Name = "Id", Order = 1)]
public string Id { get; set; }

/// <summary>Naam van de dienstverlening.</summary>
public string Naam { get; }
[DataMember(Name = "Naam", Order = 2)]
public string Naam { get; set; }

/// <summary>Code van de verantwoordelijke autoriteit</summary>
public string VerantwoordelijkeAutoriteitCode { get; }
[DataMember(Name = "VerantwoordelijkeAutoriteitCode", Order = 3)]
public string VerantwoordelijkeAutoriteitCode { get; set; }

/// <summary>Naam van de verantwoordelijke autoriteit</summary>
public string VerantwoordelijkeAutoriteitNaam { get; }
[DataMember(Name = "VerantwoordelijkeAutoriteitNaam", Order = 4)]
public string VerantwoordelijkeAutoriteitNaam { get; set; }

/// <summary>Of de dienstverlening al dan niet naar Orafin geexporteerd wordt.</summary>
public bool ExportNaarOrafin { get; }
[DataMember(Name = "ExportNaarOrafin", Order = 5)]
public bool ExportNaarOrafin { get; set; }

public PublicServiceListResponse(
string id,
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
/// <summary>Id van de dienstverlening.</summary>
public string Id { get; }
[DataMember(Name = "Id", Order = 1)]
public string Id { get; set; }

/// <summary>Naam van de dienstverlening.</summary>
public string Naam { get; }
[DataMember(Name = "Naam", Order = 2)]
public string Naam { get; set; }

/// <summary>Code van de verantwoordelijke autoriteit</summary>
public string VerantwoordelijkeAutoriteitCode { get; }
[DataMember(Name = "VerantwoordelijkeAutoriteitCode", Order = 3)]
public string VerantwoordelijkeAutoriteitCode { get; set; }

/// <summary>Naam van de verantwoordelijke autoriteit</summary>
public string VerantwoordelijkeAutoriteitNaam { get; }
[DataMember(Name = "VerantwoordelijkeAutoriteitNaam", Order = 4)]
public string VerantwoordelijkeAutoriteitNaam { get; set; }

/// <summary>Of de dienstverlening al dan niet naar Orafin geexporteerd wordt.</summary>
public bool ExportNaarOrafin { get; }
[DataMember(Name = "ExportNaarOrafin", Order = 5)]
public bool ExportNaarOrafin { get; set; }

public PublicServiceResponse(
string id,
Expand Down

0 comments on commit bcd809e

Please sign in to comment.