Skip to content

Commit

Permalink
chore: rename duplicates endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsOveTen committed Aug 20, 2024
1 parent 79f8d9b commit 731ba08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ open class DatasetsController(
ResponseEntity(HttpStatus.NO_CONTENT)
} else ResponseEntity(HttpStatus.FORBIDDEN)

@PostMapping("/duplicates")
@PostMapping("/remove-duplicates")
fun removeDuplicates(
@AuthenticationPrincipal jwt: Jwt,
@RequestBody duplicates: List<DuplicateIRI>
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ logging:
level.org.apache.jena.riot: ERROR
server:
port: 8080
error.include-message: always
application:
datasetUri: ${FDK_DATASET_HARVESTER_URI:https://datasets.staging.fellesdatakatalog.digdir.no}/datasets
catalogUri: ${FDK_DATASET_HARVESTER_URI:https://datasets.staging.fellesdatakatalog.digdir.no}/catalogs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class DatasetsContract : ApiTestContext() {
val body = listOf(DuplicateIRI(iriToRemove = DATASET_DBO_0.uri, iriToRetain = DATASET_DBO_1.uri))
val response = authorizedRequest(
port,
"/datasets/duplicates",
"/datasets/remove-duplicates",
null,
HttpMethod.POST,
mapper.writeValueAsString(body)
Expand All @@ -124,7 +124,7 @@ class DatasetsContract : ApiTestContext() {
val body = listOf(DuplicateIRI(iriToRemove = DATASET_DBO_0.uri, iriToRetain = DATASET_DBO_1.uri))
val response = authorizedRequest(
port,
"/datasets/duplicates",
"/datasets/remove-duplicates",
JwtToken(Access.ORG_WRITE).toString(),
HttpMethod.POST,
mapper.writeValueAsString(body)
Expand All @@ -138,7 +138,7 @@ class DatasetsContract : ApiTestContext() {
val response =
authorizedRequest(
port,
"/datasets/duplicates",
"/datasets/remove-duplicates",
JwtToken(Access.ROOT).toString(),
HttpMethod.POST,
mapper.writeValueAsString(body)
Expand All @@ -151,7 +151,7 @@ class DatasetsContract : ApiTestContext() {
val body = listOf(DuplicateIRI(iriToRemove = DATASET_DBO_0.uri, iriToRetain = DATASET_DBO_1.uri))
val response = authorizedRequest(
port,
"/datasets/duplicates",
"/datasets/remove-duplicates",
JwtToken(Access.ROOT).toString(),
HttpMethod.POST,
mapper.writeValueAsString(body)
Expand Down

0 comments on commit 731ba08

Please sign in to comment.