Skip to content

Commit

Permalink
chore: remove get sykmelder request
Browse files Browse the repository at this point in the history
  • Loading branch information
nuranes committed Nov 18, 2024
1 parent 98f7952 commit 56c7fa1
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,28 +75,6 @@ class SmregistreringClient(
return res
}

@Retryable
fun getSykmelderRequest(
authorization: String,
hprNummer: String,
): ResponseEntity<Sykmelder> {
val headers = HttpHeaders()
headers.contentType = MediaType.APPLICATION_JSON
headers.setBearerAuth(removeBearerPrefix(authorization))

val uri =
UriComponentsBuilder.fromHttpUrl("$url/api/v1/sykmelder/{hprNummer}")
.buildAndExpand(hprNummer)
.toUri()

return smregisteringRestTemplate.exchange(
uri,
HttpMethod.GET,
HttpEntity<String>(headers),
Sykmelder::class.java,
)
}

@Retryable
fun postSendOppgaveRequest(
authorization: String,
Expand Down

0 comments on commit 56c7fa1

Please sign in to comment.