diff --git a/mockdata/authorization-mock/555111097.json b/mockdata/authorization-mock/555111097.json index 66d7841..53e9f70 100644 --- a/mockdata/authorization-mock/555111097.json +++ b/mockdata/authorization-mock/555111097.json @@ -1,5 +1,5 @@ { "Subject": {}, "Reportee": {"OrganizationNumber": "555111097"}, - "Rights": [{"ServiceCode": "5977"}] + "Rights": [{"ServiceCode": "5755"}] } diff --git a/mockdata/authorization-mock/555111097_01018800128.json b/mockdata/authorization-mock/555111097_01018800128.json new file mode 100644 index 0000000..66d7841 --- /dev/null +++ b/mockdata/authorization-mock/555111097_01018800128.json @@ -0,0 +1,5 @@ +{ + "Subject": {}, + "Reportee": {"OrganizationNumber": "555111097"}, + "Rights": [{"ServiceCode": "5977"}] +} diff --git a/mockdata/authorization-mock/555111097_01018800129.json b/mockdata/authorization-mock/555111097_01018800129.json new file mode 100644 index 0000000..66d7841 --- /dev/null +++ b/mockdata/authorization-mock/555111097_01018800129.json @@ -0,0 +1,5 @@ +{ + "Subject": {}, + "Reportee": {"OrganizationNumber": "555111097"}, + "Rights": [{"ServiceCode": "5977"}] +} diff --git a/mockdata/authorization-mock/555111097_01018800130.json b/mockdata/authorization-mock/555111097_01018800130.json new file mode 100644 index 0000000..66d7841 --- /dev/null +++ b/mockdata/authorization-mock/555111097_01018800130.json @@ -0,0 +1,5 @@ +{ + "Subject": {}, + "Reportee": {"OrganizationNumber": "555111097"}, + "Rights": [{"ServiceCode": "5977"}] +} diff --git a/nginx.conf b/nginx.conf index f2e4a48..6b3fe63 100644 --- a/nginx.conf +++ b/nginx.conf @@ -17,7 +17,8 @@ http { location /api/serviceowner/authorization/rights { default_type application/json; - try_files /mockdata/authorization-mock/${arg_subject}_${arg_reportee}.json /mockdata/authorization-mock/${arg_reportee}.json =404; + alias /mockdata/authorization-mock/; + try_files ${arg_reportee}_${arg_subject}.json ${arg_reportee}.json =404; } } }