...
Code Block | ||
---|---|---|
| ||
curl -i -H "Accept: application/json" \ -H "Authorization: Boknett TGT-28905-pOzdvVr50wpTMl10DooFrDjTarMdwkeRzhlJ4KcMrQfEl13fxK-login.boknett.no" \ -H "Date: Thu, 13 Aug 2015 12:16:39 GMT" \ 'https://idp.dds.boknett.no/validate/ola.nordmann@norge.no' HTTP/1.1 200 OK Content-Length: 59 {"id":"212c60f9-57db-4b5b-b32a-ed561346eda1","active":true} |
...
Code Block | ||
---|---|---|
| ||
curl -i -H "Accept: application/json" \ -H "Authorization: Boknett TGT-28905-pOzdvVr50wpTMl10DooFrDjTarMdwkeRzhlJ4KcMrQfEl13fxK-login.boknett.no" \ -H "Date: Thu, 13 Aug 2015 12:16:39 GMT" \ 'https://idp.dds.boknett.no/validate/kari.nordmann@norge.no' HTTP/1.1 200 OK OKDateDate: Thu, 13 Aug 2015 12:24:30 GMT Content-Type: application/json;charset=UTF-8 Content-Length: 25 {"data":"USER_NOT_FOUND"} |
...
Code Block | ||
---|---|---|
| ||
$curl -i -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "Authorization: Boknett TGT-29061-mbdeGwDnbGTJ4qlSv4IYTm5Cpu5iDO1XxOSgg2IPAXNPhGEa0v-login.boknett.no" \ -H "Date: Thu, 13 Aug 2015 14:40:00 GMT" \ -d '{"email":"ola.nordmann@norge.no","name":"Ola","surname":"Nordmann"}' \ "https://idp.dds.boknett.no/register" HTTP/1.1 200 OK Content-Type: application/json;charset=UTF-8 {"id":"743a3b25-e71f-4544-82c7-b5e66358b08a","active":true} |
...