{ "openapi": "3.0.1", "info": { "title": "ehic", "version": "v1" }, "servers": [ { "url": "https://midgardur-test.sjukra.is/ehic" } ], "paths": { "/v1/cardstatus/{applicantnationalids}": { "get": { "tags": ["ehic"], "operationId": "CardStatus", "parameters": [ { "name": "applicantnationalids", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CardStatusResponseDTO" } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "type": "string" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error" } } } }, "/v1/requestcard/{applicantnationalid}/{cardtype}": { "post": { "tags": ["ehic"], "operationId": "RequestCard", "parameters": [ { "name": "applicantnationalid", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } }, { "name": "cardtype", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CardStatusResponseDTO" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "type": "string" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error" } } } }, "/v1/fetchtemppdfcard/{applicantnationalid}/{cardnumber}": { "get": { "tags": ["ehic"], "operationId": "FetchTempPDFCard", "parameters": [ { "name": "applicantnationalid", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } }, { "name": "cardnumber", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TempPDFCardResponseDTO" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "type": "string" } } } }, "404": { "description": "Not Found" }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error" } } } }, "/v1/rollnationalid/{nationalid}": { "get": { "tags": ["ehic"], "operationId": "RollNationalId", "parameters": [ { "name": "nationalid", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "type": "string" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "type": "string" } } } }, "401": { "description": "Unauthorized" }, "500": { "description": "Server Error" } } } } }, "components": { "schemas": { "CardInfoDTO": { "type": "object", "properties": { "cardNumber": { "type": "string", "nullable": true }, "expiryDate": { "type": "string", "format": "date", "nullable": true }, "issued": { "type": "string", "format": "date", "nullable": true }, "sent": { "type": "string", "format": "date", "nullable": true }, "resent": { "type": "string", "format": "date", "nullable": true }, "cardType": { "type": "string", "nullable": true }, "sentStatus": { "type": "string", "nullable": true }, "comment": { "type": "string", "nullable": true }, "isPlastic": { "type": "boolean", "readOnly": true }, "isTemp": { "type": "boolean", "readOnly": true } }, "additionalProperties": false }, "CardStatusResponseDTO": { "type": "object", "properties": { "applicantNationalId": { "type": "string", "nullable": true }, "isInsured": { "type": "boolean", "nullable": true }, "canApply": { "type": "boolean", "nullable": true }, "canApplyForPDF": { "type": "boolean", "nullable": true }, "cards": { "type": "array", "items": { "$ref": "#/components/schemas/CardInfoDTO" }, "nullable": true } }, "additionalProperties": false }, "TempPDFCardResponseDTO": { "type": "object", "properties": { "data": { "type": "string", "format": "byte", "nullable": true }, "fileName": { "type": "string", "nullable": true }, "contentType": { "type": "string", "nullable": true } }, "additionalProperties": false } } } }