Skip to content

Commit

Permalink
Merge pull request #941 from navikt/omstrukturer-app
Browse files Browse the repository at this point in the history
Omstrukturer app
  • Loading branch information
ViktorGSolberg authored Jan 15, 2024
2 parents 5337939 + 52d99f4 commit a64523c
Show file tree
Hide file tree
Showing 164 changed files with 713 additions and 1,357 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# familie-ef-soknad-api
Denne applikasjonen tilbyr apier for Team Enslig Forsørger sine eksterne flater:
* [søknad om overgansstønad](https://www.nav.no/familie/alene-med-barn/soknad/)
* [søknad om barnetilsyn](https://www.nav.no/familie/alene-med-barn/soknad/barnetilsyn)
* [søknad om skolepenger](https://www.nav.no/familie/alene-med-barn/soknad/skolepenger)
* [ettersending av dokumentasjon](https://www.nav.no/familie/alene-med-barn/ettersending)
* [min side](https://www.nav.no/familie/alene-med-barn/minside)

## Kjør på localhost:
bruk Launcher : ApplicationLocalLauncher

## Hvordan logge inn på localhost:
### Hvordan logge inn på localhost:
Eksempel:
http://localhost:8091/local/cookie?issuerId=tokenx&audience=familie-app&redirect=
Med redirect:
Expand All @@ -16,6 +22,8 @@ http://localhost:8091/local/cookie?subject=[gyldigFødselsnummer] dersom du skal
http://localhost:8091/swagger-ui.html
https://familie-ef-soknad-api.intern.dev.nav.no/swagger-ui.html

## Kode generert av GitHub Copilot
## Henvendelser for NAV-ansatte
Interne henvendelser kan sendes via Slack i kanalen `#team-familie`.

## Kode generert av GitHub Copilot
Dette repoet bruker GitHub Copilot til å generere kode.
5 changes: 0 additions & 5 deletions ordbok/oppdaterOrdbok.sh

This file was deleted.

2 changes: 0 additions & 2 deletions ordbok/ordbok.dic

This file was deleted.

3 changes: 0 additions & 3 deletions src/main/kotlin/no/nav/familie/ef/søknad/api/dto/FeilDto.kt

This file was deleted.

12 changes: 0 additions & 12 deletions src/main/kotlin/no/nav/familie/ef/søknad/api/dto/Søkerinfo.kt

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package no.nav.familie.ef.søknad.api
package no.nav.familie.ef.søknad.ettersending

import no.nav.familie.ef.søknad.integration.SøknadClient
import no.nav.familie.ef.søknad.søknad.SøknadClient
import no.nav.familie.kontrakter.ef.ettersending.SøknadMedDokumentasjonsbehovDto
import no.nav.familie.sikkerhet.EksternBrukerUtils
import no.nav.security.token.support.core.api.ProtectedWithClaims
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package no.nav.familie.ef.søknad.api
package no.nav.familie.ef.søknad.ettersending

import no.nav.familie.ef.søknad.api.dto.Kvittering
import no.nav.familie.ef.søknad.featuretoggle.FeatureToggleService
import no.nav.familie.ef.søknad.service.EttersendingService
import no.nav.familie.ef.søknad.infrastruktur.exception.ApiFeil
import no.nav.familie.ef.søknad.infrastruktur.featuretoggle.FeatureToggleService
import no.nav.familie.ef.søknad.søknad.domain.Kvittering
import no.nav.familie.kontrakter.ef.ettersending.EttersendelseDto
import no.nav.familie.sikkerhet.EksternBrukerUtils
import no.nav.security.token.support.core.api.ProtectedWithClaims
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package no.nav.familie.ef.søknad.service
package no.nav.familie.ef.søknad.ettersending

import no.nav.familie.ef.søknad.api.dto.Kvittering
import no.nav.familie.ef.søknad.integration.SøknadClient
import no.nav.familie.ef.søknad.mapper.KvitteringMapper
import no.nav.familie.ef.søknad.mapper.kontrakt.EttersendingMapper
import no.nav.familie.ef.søknad.ettersending.mapper.EttersendingMapper
import no.nav.familie.ef.søknad.søknad.SøknadClient
import no.nav.familie.ef.søknad.søknad.domain.Kvittering
import no.nav.familie.ef.søknad.søknad.mapper.KvitteringMapper
import no.nav.familie.kontrakter.ef.ettersending.EttersendelseDto
import no.nav.familie.kontrakter.felles.ef.StønadType
import org.springframework.stereotype.Service
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.familie.ef.søknad.mapper.kontrakt
package no.nav.familie.ef.søknad.ettersending.mapper

import no.nav.familie.kontrakter.ef.ettersending.EttersendelseDto
import no.nav.familie.kontrakter.felles.ef.StønadType
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.familie.ef.søknad.api
package no.nav.familie.ef.søknad.infrastruktur

import no.nav.security.token.support.core.api.Unprotected
import org.springframework.http.MediaType
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package no.nav.familie.ef.søknad.config
package no.nav.familie.ef.søknad.infrastruktur.config

import com.fasterxml.jackson.module.kotlin.KotlinModule
import no.nav.familie.ef.søknad.api.filter.CORSResponseFilter
import no.nav.familie.ef.søknad.infrastruktur.sikkerhet.CORSResponseFilter
import no.nav.familie.http.client.RetryOAuth2HttpClient
import no.nav.familie.http.interceptor.BearerTokenClientCredentialsClientInterceptor
import no.nav.familie.http.interceptor.BearerTokenExchangeClientInterceptor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.familie.ef.søknad.config
package no.nav.familie.ef.søknad.infrastruktur.config

import com.github.benmanes.caffeine.cache.Caffeine
import org.springframework.cache.Cache
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.familie.ef.søknad.config
package no.nav.familie.ef.søknad.infrastruktur.config

import org.springframework.boot.context.properties.ConfigurationProperties

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.familie.ef.søknad.config
package no.nav.familie.ef.søknad.infrastruktur.config

import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.web.util.UriComponentsBuilder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package no.nav.familie.ef.søknad.config
package no.nav.familie.ef.søknad.infrastruktur.config

import io.getunleash.strategy.Strategy
import no.nav.familie.ef.søknad.featuretoggle.ByEnvironmentStrategy
import no.nav.familie.ef.søknad.infrastruktur.featuretoggle.ByEnvironmentStrategy
import no.nav.familie.unleash.DefaultUnleashService
import org.springframework.beans.factory.annotation.Value
import org.springframework.context.annotation.Bean
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.familie.ef.søknad.config
package no.nav.familie.ef.søknad.infrastruktur.config

import org.springframework.boot.context.properties.ConfigurationProperties

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.familie.ef.søknad.config
package no.nav.familie.ef.søknad.infrastruktur.config

import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.web.util.UriComponentsBuilder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.familie.ef.søknad.config
package no.nav.familie.ef.søknad.infrastruktur.config

import org.apache.commons.lang3.StringUtils
import org.springframework.beans.factory.annotation.Value
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.familie.ef.søknad.config
package no.nav.familie.ef.søknad.infrastruktur.config

import org.springframework.boot.context.properties.ConfigurationProperties

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.familie.ef.søknad.config
package no.nav.familie.ef.søknad.infrastruktur.config

import io.swagger.v3.oas.models.Components
import io.swagger.v3.oas.models.OpenAPI
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package no.nav.familie.ef.søknad.api
package no.nav.familie.ef.søknad.infrastruktur.exception

import no.nav.familie.ef.søknad.api.dto.FeilDto
import no.nav.familie.ef.søknad.infrastruktur.exception.dto.FeilDto
import no.nav.security.token.support.spring.validation.interceptor.JwtTokenUnauthorizedException
import org.slf4j.LoggerFactory
import org.springframework.core.NestedExceptionUtils
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.familie.ef.søknad.api
package no.nav.familie.ef.søknad.infrastruktur.exception

import org.springframework.http.HttpStatus

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.familie.ef.søknad.exception
package no.nav.familie.ef.søknad.infrastruktur.exception

open class PdlRequestException(melding: String? = null) : Exception(melding)
class PdlNotFoundException : PdlRequestException()
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package no.nav.familie.ef.søknad.infrastruktur.exception.dto

data class FeilDto(val feil: String)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.familie.ef.søknad.featuretoggle
package no.nav.familie.ef.søknad.infrastruktur.featuretoggle

import io.getunleash.UnleashContext
import io.getunleash.strategy.Strategy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package no.nav.familie.ef.søknad.api
package no.nav.familie.ef.søknad.infrastruktur.featuretoggle

import no.nav.familie.ef.søknad.featuretoggle.FeatureToggleService
import no.nav.security.token.support.core.api.Unprotected
import org.springframework.http.MediaType
import org.springframework.web.bind.annotation.GetMapping
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.familie.ef.søknad.featuretoggle
package no.nav.familie.ef.søknad.infrastruktur.featuretoggle

import no.nav.familie.unleash.DefaultUnleashService
import org.springframework.stereotype.Service
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.familie.ef.søknad.featuretoggle
package no.nav.familie.ef.søknad.infrastruktur.featuretoggle

import org.springframework.http.HttpStatus
import org.springframework.web.bind.annotation.ResponseStatus
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package no.nav.familie.ef.søknad.health
package no.nav.familie.ef.søknad.infrastruktur.health

import no.nav.familie.ef.søknad.integration.FamilieIntegrasjonerClient
import no.nav.familie.ef.søknad.kodeverk.FamilieIntegrasjonerClient
import no.nav.familie.http.health.AbstractHealthIndicator
import org.springframework.stereotype.Component

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package no.nav.familie.ef.søknad.health
package no.nav.familie.ef.søknad.infrastruktur.health

import no.nav.familie.ef.søknad.integration.PdlClient
import no.nav.familie.ef.søknad.person.PdlClient
import no.nav.familie.http.health.AbstractHealthIndicator
import org.springframework.stereotype.Component

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package no.nav.familie.ef.søknad.health
package no.nav.familie.ef.søknad.infrastruktur.health

import no.nav.familie.ef.søknad.integration.SøknadClient
import no.nav.familie.ef.søknad.søknad.SøknadClient
import no.nav.familie.http.health.AbstractHealthIndicator
import org.springframework.stereotype.Component

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.familie.ef.søknad.api
package no.nav.familie.ef.søknad.infrastruktur.sikkerhet

import no.nav.familie.sikkerhet.EksternBrukerUtils
import no.nav.security.token.support.core.api.ProtectedWithClaims
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.familie.ef.søknad.api.filter
package no.nav.familie.ef.søknad.infrastruktur.sikkerhet

import jakarta.servlet.Filter
import jakarta.servlet.FilterChain
Expand All @@ -7,7 +7,7 @@ import jakarta.servlet.ServletRequest
import jakarta.servlet.ServletResponse
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletResponse
import no.nav.familie.ef.søknad.config.CorsProperties
import no.nav.familie.ef.søknad.infrastruktur.config.CorsProperties
import java.io.IOException

internal class CORSResponseFilter(val corsProperties: CorsProperties) : Filter {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package no.nav.familie.ef.søknad.integration
package no.nav.familie.ef.søknad.kodeverk

import no.nav.familie.ef.søknad.config.FamilieIntegrasjonerConfig
import no.nav.familie.ef.søknad.infrastruktur.config.FamilieIntegrasjonerConfig
import no.nav.familie.http.client.AbstractPingableRestClient
import no.nav.familie.kontrakter.felles.Ressurs
import no.nav.familie.kontrakter.felles.kodeverk.KodeverkDto
Expand Down
Loading

0 comments on commit a64523c

Please sign in to comment.