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 f66f05d
Show file tree
Hide file tree
Showing 15 changed files with 1,367 additions and 45 deletions.
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 f66f05d

Please sign in to comment.