Page History
...
Dette eksempel viser tilfældet hvor pid har et matchende cpr-nummer.
Request:
Code Block |
---|
curl -i localhost:8080/uuid2cpr-proxy-api/service/lookup-pid-cpr/9208-2002-2-199567135534 |
Response:
Code Block |
---|
HTTP/1.1 200 OK |
...
Connection: keep-alive |
...
Content-Type: application/json |
...
Content-Length: 22 |
...
Date: Fri, 24 Feb 2023 12:26:53 GMT |
...
{"value":"2501879875"} |
Cpr-nummer findes ikke
Dette eksempel viser tilfældet hvor pid ikke har et matchende cpr-nummer.
Request:
Code Block |
---|
curl -i localhost:8080/uuid2cpr-proxy-api/service/lookup-pid-cpr/9208-2002-2-000000000000 |
Response:
Code Block |
---|
HTTP/1.1 404 Not Found |
...
Connection: keep-alive |
...
Content-Type: application/json |
...
Content-Length: 51 |
...
Date: Wed, 01 Mar 2023 05:43:12 GMT |
...
Pid 9208-2002-2-000000000000 has no associated cpr. |
Service lookup-uuid-rid
Rid findes
Dette eksempel viser tilfældet hvor uuid har et matchende rid.
Request:
Code Block |
---|
curl -i localhost:8080/uuid2cpr-proxy-api/service/lookup-uuid-rid/UI:DK-E:G:2634ccc3-225a-44ee-94bc-565904f46ead |
Response:
Code Block |
---|
HTTP/1.1 200 OK |
...
Connection: keep-alive |
...
Content-Type: application/json |
...
Content-Length: 20 |
...
Date: Fri, 24 Feb 2023 12:44:22 GMT |
...
{"value":"72976780"} |
Rid findes ikke
Dette eksempel viser tilfældet hvor uuid ikke har et matchende rid.
Request:
Code Block |
---|
curl -i localhost:8080/uuid2cpr-proxy-api/service/lookup-uuid-rid/UI:DK-E:G:2634ccc3-225a-44ee-94bc-000000000000 |
Response:
Code Block |
---|
HTTP/1.1 404 Not Found |
...
Connection: keep-alive |
...
Content-Type: application/json |
...
Content-Length: 74 |
...
Date: Wed, 01 Mar 2023 05:45:00 GMT |
...
Uuid UI:DK-E:G:2634ccc3-225a-44ee-94bc-000000000000 has no associated rid. |