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 authored and jaflaten committed Dec 10, 2024
1 parent 1d020be commit 2e0474d
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,28 +78,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 2e0474d

Please sign in to comment.