Skip to content

Commit

Permalink
Update brreg endpoints to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbard authored and johannmo committed Aug 15, 2024
1 parent 1de5e09 commit da39dd2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public BrregClientImpl(URI uri) {
@Override
public Optional<BrregEnhet> getBrregEnhetByOrgnr(String orgnr) {
return getEnhet("enhetsregisteret/api/enheter/",
"application/vnd.brreg.enhetsregisteret.enhet.v1+json",
"application/vnd.brreg.enhetsregisteret.enhet.v2+json",
orgnr);
}

Expand All @@ -51,7 +51,7 @@ public Optional<BrregEnhet> getBrregEnhetByOrgnr(String orgnr) {
@Override
public Optional<BrregEnhet> getBrregUnderenhetByOrgnr(String orgnr) {
return getEnhet("enhetsregisteret/api/underenheter/",
"application/vnd.brreg.enhetsregisteret.underenhet.v1+json",
"application/vnd.brreg.enhetsregisteret.underenhet.v2+json",
orgnr);
}

Expand Down

0 comments on commit da39dd2

Please sign in to comment.