From b684ffce43ca8008a43b93056388e38596074da1 Mon Sep 17 00:00:00 2001 From: joeldlin Date: Wed, 15 Jan 2025 10:58:02 +0100 Subject: [PATCH] f - wip --- soknad-api-new.json | 240 ++++++++++++++++++++++++------ soknad-api-old.json | 345 +++++++++++++++++++++++++++++++++++--------- 2 files changed, 470 insertions(+), 115 deletions(-) diff --git a/soknad-api-new.json b/soknad-api-new.json index 03bb7bde7..6cf7bd464 100644 --- a/soknad-api-new.json +++ b/soknad-api-new.json @@ -33,7 +33,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BoutgifterDto"}}} @@ -82,7 +85,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BoutgifterDto"}}} @@ -120,7 +126,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BarneutgifterDto"}}} @@ -169,7 +178,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BarneutgifterDto"}}} @@ -207,7 +219,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UtdanningDto"}}} @@ -256,7 +271,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UtdanningDto"}}} @@ -294,7 +312,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -336,7 +357,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -376,7 +400,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/TelefonnummerDto"}}} @@ -416,7 +443,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/TelefonnummerDto"}}} @@ -454,7 +484,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/KontoInformasjonDto"}}} @@ -503,7 +536,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/KontoInformasjonDto"}}} @@ -541,7 +577,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/ForventetDokumentasjonDto"}}} @@ -591,7 +630,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/ForventetDokumentasjonDto"}}} @@ -629,7 +671,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/VerdierDto"}}} @@ -678,7 +723,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/VerdierDto"}}} @@ -716,7 +764,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UtbetalingerDto"}}} @@ -765,7 +816,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UtbetalingerDto"}}} @@ -803,7 +857,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/StudielanDto"}}} @@ -843,7 +900,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/StudielanDto"}}} @@ -882,7 +942,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SkattbarInntektDto"}}} @@ -920,7 +983,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/FormueDto"}}} @@ -960,7 +1026,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/FormueDto"}}} @@ -998,7 +1067,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BostotteDto"}}} @@ -1038,7 +1110,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BostotteDto"}}} @@ -1084,7 +1159,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BostotteDto"}}} @@ -1122,7 +1200,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SivilstandDto"}}} @@ -1162,7 +1243,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SivilstandDto"}}} @@ -1200,7 +1284,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ForsorgerDto"}}} @@ -1240,7 +1327,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ForsorgerDto"}}} @@ -1278,7 +1368,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BosituasjonDto"}}} @@ -1318,7 +1411,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BosituasjonDto"}}} @@ -1356,7 +1452,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BegrunnelseDto"}}} @@ -1396,7 +1495,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BegrunnelseDto"}}} @@ -1434,7 +1536,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ArbeidDto"}}} @@ -1474,7 +1579,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ArbeidDto"}}} @@ -1512,7 +1620,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdresserDto"}}} @@ -1552,7 +1663,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdresserDto"}}} @@ -1590,7 +1704,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SoknadSendtDto"}}} @@ -1626,7 +1743,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -1683,7 +1803,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DokumentDto"}}} @@ -1721,7 +1844,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PersonaliaDto"}}} @@ -1759,7 +1885,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SkattbarInntektDto"}}} @@ -1797,7 +1926,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/NavYtelseDto"}}} @@ -1844,7 +1976,10 @@ "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, "404": {"description": "Filen ble ikke funnet", "content": {}}, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "Dokumentet ble funnet og returneres", "content": {"application/octet-stream": {"schema": {"type": "string", "format": "binary"}}} @@ -1891,7 +2026,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -1932,7 +2070,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -1977,6 +2118,11 @@ "mapping": {"SoknadApiError": "#/components/schemas/SoknadApiError"} } }, + "UnauthorizedMelding": { + "required": ["loginUrl"], + "type": "object", + "properties": {"loginUrl": {"type": "string", "format": "uri"}} + }, "BoutgifterInput": {"type": "object"}, "HarBoutgifterInput": { "required": [ diff --git a/soknad-api-old.json b/soknad-api-old.json index 0a9766d0f..305b50ef8 100644 --- a/soknad-api-old.json +++ b/soknad-api-old.json @@ -31,7 +31,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BoutgifterFrontend"}}} @@ -69,7 +72,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -102,7 +108,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -142,7 +151,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -175,7 +187,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UtdanningFrontend"}}} @@ -213,7 +228,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -246,7 +264,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -288,7 +309,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -321,7 +345,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -361,7 +388,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -399,7 +429,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/KontonummerFrontend"}}} @@ -437,7 +470,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/KontonummerFrontend"}}} @@ -473,7 +509,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/AdresserFrontend"}}} @@ -511,7 +550,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -551,7 +593,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/VedleggFrontends"}}} @@ -589,7 +634,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -622,7 +670,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/VerdierFrontend"}}} @@ -660,7 +711,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -693,7 +747,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -733,7 +790,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -766,7 +826,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/StudielanFrontend"}}} @@ -804,7 +867,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/StudielanFrontend"}}} @@ -840,7 +906,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -882,7 +951,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -920,7 +992,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/FormueFrontend"}}} @@ -958,7 +1033,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -991,7 +1069,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BostotteFrontend"}}} @@ -1029,7 +1110,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -1062,7 +1146,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -1102,7 +1189,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -1135,7 +1225,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -1177,7 +1270,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -1210,7 +1306,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -1250,7 +1349,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -1288,7 +1390,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -1328,7 +1433,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -1361,7 +1469,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -1401,7 +1512,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -1450,7 +1564,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "Vedlegg konvertert til PDF", "content": {"application/pdf": {"schema": {"type": "string", "format": "binary"}}} @@ -1497,7 +1614,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -1531,7 +1651,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} }, "deprecated": true @@ -1569,7 +1692,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -1605,7 +1731,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SendTilUrlFrontend"}}} @@ -1644,7 +1773,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -1696,7 +1828,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DokumentUpload"}}} @@ -1735,7 +1870,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -1773,7 +1911,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK", "content": {"application/json": {"schema": {"type": "boolean"}}}} } } @@ -1806,7 +1947,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK", "content": {"application/json": {"schema": {"type": "boolean"}}}} } } @@ -1839,7 +1983,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -1877,7 +2024,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Oppsummering"}}} @@ -1913,7 +2063,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK", "content": {"application/json": {"schema": {"type": "boolean"}}}} } } @@ -1946,7 +2099,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK", "content": {"application/json": {"schema": {"type": "boolean"}}}} } } @@ -1979,7 +2135,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -2020,7 +2179,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -2066,7 +2228,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK", "content": {"application/json": {"schema": {"type": "boolean"}}}} } } @@ -2103,7 +2268,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "Dokumentets innhold sendes til klienten", "content": {"application/octet-stream": {"schema": {"type": "string", "format": "binary"}}} @@ -2138,7 +2306,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/NedetidFrontend"}}} @@ -2173,7 +2344,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK", "content": {"application/json": {"schema": {"type": "string"}}}} } } @@ -2205,7 +2379,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -2244,7 +2421,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SelftestResult"}}} @@ -2279,7 +2459,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK", "content": {"text/plain": {"schema": {"type": "string"}}}} } } @@ -2311,7 +2494,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SessionResponse"}}} @@ -2347,7 +2533,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -2386,7 +2575,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -2425,7 +2617,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -2464,7 +2659,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": { "description": "OK", "content": { @@ -2507,7 +2705,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -2543,7 +2744,10 @@ "description": "Not Found", "content": {"*/*": {"schema": {"$ref": "#/components/schemas/SoknadApiError"}}} }, - "401": {"description": "Unauthorized", "content": {"*/*": {"schema": {"type": "object"}}}}, + "401": { + "description": "Unauthorized", + "content": {"*/*": {"schema": {"$ref": "#/components/schemas/UnauthorizedMelding"}}} + }, "200": {"description": "OK"} } } @@ -2588,6 +2792,11 @@ "mapping": {"SoknadApiError": "#/components/schemas/SoknadApiError"} } }, + "UnauthorizedMelding": { + "required": ["loginUrl"], + "type": "object", + "properties": {"loginUrl": {"type": "string", "format": "uri"}} + }, "BoutgifterFrontend": { "required": [ "annet",