diff --git a/README.md b/README.md index 3e27761..7ca2ea3 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ A simple script is made to do the generation based on the banker.csv file and th ## Run cli script -```shell +````shell % poetry shell % dsop_api_spesifikasjoner --help @@ -62,10 +62,10 @@ Alternatively you can use `poetry run`: ```shell % poetry run dsop_api_spesifikasjoner --help -``` +```` Example: ```shell -% dsop_api_spesifikasjoner -d specs template/Accounts\ API\ openapi\ v1.0.0.yaml banker.csv +% dsop_api_spesifikasjoner -d specs template/Accounts\ API\ openapi\ v1.0.0.yaml banker.csv true ``` diff --git a/banker.csv b/banker.csv index 5be22d8..fcdb8a6 100644 --- a/banker.csv +++ b/banker.csv @@ -12,7 +12,7 @@ OrgNummer,Navn,Filnavn,EndepunktProduksjon,EndepunktTest,Id,TestId 944521836,SPAREBANK 1 BV,Sparebank1_944521836_Accounts-API.json,https://api.sparebank1.no/dsopaccountcontrolinfo/v2/AccountControlInfoService/v2/944521836,https://api-test.sparebank1.no/dsopaccountcontrolinfo/v2/AccountControlInfoService/v2/944521836,8887f1d014cdc46a69e56931e6c7beb149decdeb,1c787e11a1cdb72f3bac222ba8b6c496ec5834bd 952706365,SPAREBANK 1 NORD-NORGE,Sparebank1_952706365_Accounts-API.json,https://api.sparebank1.no/dsopaccountcontrolinfo/v2/AccountControlInfoService/v2/952706365,https://api-test.sparebank1.no/dsopaccountcontrolinfo/v2/AccountControlInfoService/v2/952706365,1b4c6967dfab77eb9313ed50b42ab5ee351ed486,43934944d65062f8b440f4224ad2a753a1da4a42 984851006,DNB,DNB_984851006_Accounts-API.json,https://publicsector.dnb.no/v1,https://test.publicsector.dnb.no/v1,8b34e3adde194a6bc2e04f9dc4c9aa89395f58c0,fe6ca588a126e516561670598d3ebfbfbea24f5a -920058817,"Nordea Bank Abp, filial i Norge",Nordea_Bank_Abp_920058817_Accounts-API.json,https://RB-DSOP-ARC642-NO-prod-extranet.nordea.com:9040/v1,https://RB-DSOP-ARC642-NO-test01-extranet.test.nordea.com:9040/v1,4a2b8b10aa0d703156a750ebd467f13734be8953,2d337c3e4377ef8634d92ff6070c139f7b8d0cf9 +920058817,"Nordea Bank Abp, filial i Norge",Nordea_Bank_Abp_920058817_Accounts-API.json,https://RB-DSOP-ARC642-NO-prod-extranet.nordea.com:9040/v1,https://rb-dsop-arc642-no-test01-extranet.test.nordea.com:9040/v2,4a2b8b10aa0d703156a750ebd467f13734be8953,2d337c3e4377ef8634d92ff6070c139f7b8d0cf9 998997801,"Morrow Bank ASA",Morrow_Bank_ASA_998997801_Accounts-API.json,https://eoppslag.online.komplettbank.no/v1,https://eoppslag.onlineservices.komplettbank.no/pp/v1,9810a14ef6a116402c22b2da67362f05fc3d8c60,2ecc51698f6fd8d23981512564a8b7111fff49cb 937905378,"Sparebank 68 grader Nord",Sparebank_68_grader_Nord_937905378_Accounts-API.json,https://api-proxy.sdc.dk/api/dsop-accounts-api/v1/banks/937905378,https://api-proxy.test.sdc.dk/api/dsop-accounts-api/v1/banks/937905378,4195429bf2b076d55e45953bc815902c03f94fb6,88bf15ccd83adbf8ebe7a02759ae57b2db4abb4d 937894538,"Sparebanken Sør",Sparebanken_Sor_937894538_Accounts-API.json,https://bf-esb-internet.edb.com/secesb/rest/era-dsop/v1/2844,https://esb-internet.preprod.evry.com/secesb/rest/era-dsop/v1/2844,4dd129f65f41e4dd987347e77f704643f2d8d7dc,7276aa05aca2e6dda3cba27a15ecfa50a1fb494d diff --git a/specs/rdf/dsop_catalog_test.ttl b/specs/rdf/dsop_catalog_test.ttl index 3ab73b2..d4e5b79 100644 --- a/specs/rdf/dsop_catalog_test.ttl +++ b/specs/rdf/dsop_catalog_test.ttl @@ -123,7 +123,7 @@ dct:publisher ; dct:title "Accounts API Nordea Bank Abp, filial i Norge"@en ; dcat:endpointDescription ; - dcat:endpointURL ; + dcat:endpointURL ; dcat:mediaType , . diff --git a/specs/test/Nordea_Bank_Abp_920058817_Accounts-API.json b/specs/test/Nordea_Bank_Abp_920058817_Accounts-API.json index 0f87524..fea466e 100644 --- a/specs/test/Nordea_Bank_Abp_920058817_Accounts-API.json +++ b/specs/test/Nordea_Bank_Abp_920058817_Accounts-API.json @@ -7,7 +7,7 @@ }, "servers": [ { - "url": "https://RB-DSOP-ARC642-NO-test01-extranet.test.nordea.com:9040/v1", + "url": "https://rb-dsop-arc642-no-test01-extranet.test.nordea.com:9040/v2", "description": "test" } ], diff --git a/src/dsop_api_spesifikasjoner/generateSpecification.py b/src/dsop_api_spesifikasjoner/generateSpecification.py index 4cbcedf..7f2df86 100644 --- a/src/dsop_api_spesifikasjoner/generateSpecification.py +++ b/src/dsop_api_spesifikasjoner/generateSpecification.py @@ -1,4 +1,5 @@ """Module for generate openAPI specifications.""" + import copy import csv import json