Skip to content

Commit

Permalink
Bruk PDL-fullmakt-api for fullmakter
Browse files Browse the repository at this point in the history
  • Loading branch information
LudvigHz committed Jun 6, 2024
1 parent 4767be5 commit 8273451
Show file tree
Hide file tree
Showing 19 changed files with 1,380 additions and 50 deletions.
4 changes: 4 additions & 0 deletions .nais/nais-q0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ spec:
value: "https://pdl-pip-api-q0.dev.intern.nav.no"
- name: PDL_PIP_SCOPE
value: "dev-fss:pdl:pdl-pip-api-q0"
- name: PDL_FULLMAKT_URL
value: "https://pdl-fullmakt.dev.intern.nav.no"
- name: PDL_FULLMAKT_SCOPE
value: "dev-fss:pdl:pdl-fullmakt"
- name: PERSONFORVALTER_URL
value: "https://pdl-web.dev.intern.nav.no/endreperson"
- name: OPPGAVE_BASEURL
Expand Down
4 changes: 4 additions & 0 deletions .nais/nais-q1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ spec:
value: "https://pdl-pip-api-q1.dev.intern.nav.no"
- name: PDL_PIP_SCOPE
value: "dev-fss:pdl:pdl-pip-api-q1"
- name: PDL_FULLMAKT_URL
value: "https://pdl-fullmakt.dev.intern.nav.no"
- name: PDL_FULLMAKT_SCOPE
value: "dev-fss:pdl:pdl-fullmakt"
- name: PERSONFORVALTER_URL
value: "https://pdl-web.dev.intern.nav.no/endreperson"
- name: OPPGAVE_BASEURL
Expand Down
6 changes: 5 additions & 1 deletion .nais/nais.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ spec:
value: "https://pdl-pip-api.intern.nav.no"
- name: PDL_PIP_SCOPE
value: "prod-fss:pdl:pdl-pip-api"
- name: PDL_FULLMAKT_URL
value: "https://pdl-fullmakt.intern.nav.no"
- name: PDL_FULLMAKT_SCOPE
value: "prod-fss:pdl:pdl-fullmakt"
- name: PERSONFORVALTER_URL
value: "https://pdl-web.intern.nav.no/endreperson"
- name: OPPGAVE_BASEURL
Expand Down Expand Up @@ -193,4 +197,4 @@ spec:
value: "production"
# TODO: Bruke ekte URL
- name: SKATTEETATEN_INNKREVINGSOPPDRAG_API_BASE_URL
value: "https://api-test.sits.no"
value: "https://api-test.sits.no"
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,6 @@ query hentPersondata($ident: ID!){
spraak
}
}
fullmakt {
motpartsPersonident
motpartsRolle
omraader
gyldigFraOgMed
gyldigTilOgMed
}
telefonnummer {
landskode
nummer
Expand Down
85 changes: 85 additions & 0 deletions tjenestespesifikasjoner/pdl-fullmakt-api/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>no.nav.sbl.dialogarena</groupId>
<artifactId>tjenestespesifikasjoner</artifactId>
<version>dev</version>
</parent>

<artifactId>pdl-fullmakt-api</artifactId>

<properties>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
</properties>

<dependencies>
<dependency>
<groupId>no.nav.common</groupId>
<artifactId>rest</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-kotlin</artifactId>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<executions>
<execution>
<id>default</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/resources/pdl-fullmakt-api/openapi.json</inputSpec>
<generatorName>kotlin</generatorName>
<library>jvm-okhttp4</library>
<packageName>no.nav.modiapersonoversikt.consumer.pdlFullmaktApi.generated</packageName>
<templateDirectory>${project.basedir}/../openapi-templates</templateDirectory>
<configOptions>
<enumPropertyNaming>original</enumPropertyNaming>
<serializationLibrary>jackson</serializationLibrary>
</configOptions>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<executions>
<execution>
<id>compile</id>
<phase>process-sources</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<sourceDirs>
<sourceDir>${project.build.directory}/generated-sources/openapi/src/main/kotlin</sourceDir>
</sourceDirs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>


</project>
Loading

0 comments on commit 8273451

Please sign in to comment.