Skip to content

Commit

Permalink
fix: documentation examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD committed Jan 30, 2024
1 parent fba8219 commit 13a02df
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ public SuspiciousCasesDetailResponse GetExamples()
new Uri(string.Format(_responseOptions.Value.AddressDetailUrl, "2")),
"Verdacht geval 2")
},
new Uri(string.Format(_responseOptions.Value.SuspiciousCasesTypeNextUrl, SuspiciousCasesType.CurrentAddressWithoutLinkedParcelsOrBuildingUnits, 10, 2)));
new Uri(
string.Format(_responseOptions.Value.SuspiciousCasesTypeNextUrl, 10, 2)
.Replace("{type}", ((int)SuspiciousCasesType.CurrentAddressWithoutLinkedParcelsOrBuildingUnits).ToString())));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Abstractions;
using Abstractions.Detail;
using Be.Vlaanderen.Basisregisters.Api.Search.Pagination;
using Be.Vlaanderen.Basisregisters.Utilities;
using MediatR;
using Microsoft.Extensions.Options;

Expand Down Expand Up @@ -41,9 +42,8 @@ public async Task<SuspiciousCasesDetailResponse> Handle(SuspiciousCasesDetailReq
suspiciousCases.Count > paginationRequest.Limit
? new Uri(string.Format(
_responseOptions.SuspiciousCasesTypeNextUrl,
(int)detailRequest.Type,
paginationRequest.Offset + paginationRequest.Limit,
paginationRequest.Limit))
paginationRequest.Limit).Replace("{type}", ((int)detailRequest.Type).ToString()))
: null);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"ParcelDetailUrl": "https://api.basisregisters.vlaanderen.be/v2/percelen/{0}",
"RoadSegmentDetailUrl": "https://api.basisregisters.vlaanderen.be/v2/wegsegmenten/{0}",
"SuspiciousCasesTypeUrl": "https://api.basisregisters.vlaanderen.be/v2/verdachte-gevallen/{0}",
"SuspiciousCasesTypeNextUrl": "https://api.basisregisters.vlaanderen.be/v2/verdachte-gevallen/{0}?offset={1}&limit={2}"
"SuspiciousCasesTypeNextUrl": "https://api.basisregisters.vlaanderen.be/v2/verdachte-gevallen/{type}?offset={0}&limit={1}"
},

"OvoCodeWhiteList": [
Expand Down

0 comments on commit 13a02df

Please sign in to comment.