{"info":{"_postman_id":"082cefb7-326a-427e-bc87-5ce3ff0095bd","name":"MUSAP","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"18024908","collectionId":"082cefb7-326a-427e-bc87-5ce3ff0095bd","publishedId":"2s9YkgDk24","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-12-08T13:30:24.000Z"},"item":[{"name":"link","event":[{"listen":"test","script":{"id":"479e20f7-9ab1-4ab9-937c-b5f9bbfeca59","exec":["var jsonData = JSON.parse(responseBody);\r","postman.setEnvironmentVariable(\"linkid\", jsonData.linkid);"],"type":"text/javascript"}}],"id":"6756c1b1-8124-4d4b-8e52-75bc5944084d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://demo.methics.fi/musaplink/link","description":"<p>Start linking MUSAP to your service.<br />The linkid should be stored by the service for future calls.</p>\n<p>The coupling code should be shown to the user. The user needs to enter it in their app to complete the linking.</p>\n","urlObject":{"protocol":"https","path":["musaplink","link"],"host":["demo","methics","fi"],"query":[],"variable":[]}},"response":[{"id":"439e334f-a6d4-49a0-84d0-1d6edc25cd5a","name":"link response","originalRequest":{"method":"POST","header":[],"url":"https://demo.methics.fi/musaplink/link"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 08 Dec 2023 13:21:50 GMT"},{"key":"Server","value":""},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"73"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"linkid\": \"fc0c22b4-fdfb-4f12-8701-fbb10eb8d2ea\",\n    \"couplingcode\": \"X89B29\"\n}"}],"_postman_id":"6756c1b1-8124-4d4b-8e52-75bc5944084d"},{"name":"sign","id":"6dce4b0e-091c-454c-96d4-941123eb89f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"linkid\": \"{{linkid}}\",\r\n    \"data\": \"YXNk\",\r\n    \"display\": \"Please sign this\",\r\n    \"key\": {\r\n        \"keyid\": \"{{keyid}}\",\r\n        \"keyname\": \"{{keyname}}\r\n    }\r\n}"},"url":"https://demo.methics.fi/musaplink/sign","description":"<p>Request a signature from a MUSAP app that has been linked with the service.</p>\n","urlObject":{"protocol":"https","path":["musaplink","sign"],"host":["demo","methics","fi"],"query":[],"variable":[]}},"response":[{"id":"c94ef08b-858f-49f4-a9fe-34f5b9502f54","name":"sign","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"linkid\": \"{{linkid}}\",\r\n    \"data\": \"YXNk\"\r\n}"},"url":"https://demo.methics.fi/musaplink/sign"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 08 Dec 2023 13:37:36 GMT"},{"key":"Server","value":""},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"251"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"publickey\": {\n        \"pem\": \"-----BEGIN PUBLIC KEY-----\\nMCowBQYDK2VwAyEAdzXpIj1AUNBeiGFaaAaRJrbjoACAi/0Bye2xKW278QY=\\n\\n-----END PUBLIC KEY-----\\n\"\n    },\n    \"signature\": {\n        \"raw\": \"3H3CWhWx7QARIu1Ym1PQKmkmpuTKiaDlzVvPIDO48kblE-YnqmV1EpEvcXvgyR3OMaAKvHdLuabJuQHmltKqBQ\"\n    }\n}"}],"_postman_id":"6dce4b0e-091c-454c-96d4-941123eb89f3"},{"name":"generatekey","id":"37498d50-2028-4e5e-8c19-449b65f65ac5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"linkid\": \"{{linkid}}\",\r\n    \"display\": \"Please generate a new key\",\r\n    \"key\": {\r\n        \"algorithm\": \"RSA2K\",\r\n        \"keyname\": \"test key\",\r\n        \"keyusage\": \"testing\"\r\n    }\r\n    \r\n}"},"url":"https://demo.methics.fi/musaplink/generatekey","description":"<p>Request a signature from a MUSAP app that has been linked with the service.</p>\n","urlObject":{"protocol":"https","path":["musaplink","generatekey"],"host":["demo","methics","fi"],"query":[],"variable":[]}},"response":[{"id":"136e35b8-b6b2-4b64-87aa-e185a5a72577","name":"sign","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"linkid\": \"{{linkid}}\",\r\n    \"data\": \"YXNk\"\r\n}"},"url":"https://demo.methics.fi/musaplink/sign"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 08 Dec 2023 13:37:36 GMT"},{"key":"Server","value":""},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"251"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"publickey\": {\n        \"pem\": \"-----BEGIN PUBLIC KEY-----\\nMCowBQYDK2VwAyEAdzXpIj1AUNBeiGFaaAaRJrbjoACAi/0Bye2xKW278QY=\\n\\n-----END PUBLIC KEY-----\\n\"\n    },\n    \"signature\": {\n        \"raw\": \"3H3CWhWx7QARIu1Ym1PQKmkmpuTKiaDlzVvPIDO48kblE-YnqmV1EpEvcXvgyR3OMaAKvHdLuabJuQHmltKqBQ\"\n    }\n}"}],"_postman_id":"37498d50-2028-4e5e-8c19-449b65f65ac5"},{"name":"updatekey","id":"8762143f-6872-4610-ba97-7093de13189a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"linkid\": \"{{linkid}}\",\r\n    \"keyid\": \"{{keyid}}\",\r\n    \"oldkeyname\": \"{{keyname}}\r\n    \"newkeyname\": \"new key name\"\r\n}"},"url":"https://demo.methics.fi/musaplink/updatekey","description":"<p>Request a signature from a MUSAP app that has been linked with the service.</p>\n","urlObject":{"protocol":"https","path":["musaplink","updatekey"],"host":["demo","methics","fi"],"query":[],"variable":[]}},"response":[{"id":"48b7c705-3cd7-4193-b495-e30b7294cd91","name":"sign","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"linkid\": \"{{linkid}}\",\r\n    \"data\": \"YXNk\"\r\n}"},"url":"https://demo.methics.fi/musaplink/sign"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 08 Dec 2023 13:37:36 GMT"},{"key":"Server","value":""},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"251"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"publickey\": {\n        \"pem\": \"-----BEGIN PUBLIC KEY-----\\nMCowBQYDK2VwAyEAdzXpIj1AUNBeiGFaaAaRJrbjoACAi/0Bye2xKW278QY=\\n\\n-----END PUBLIC KEY-----\\n\"\n    },\n    \"signature\": {\n        \"raw\": \"3H3CWhWx7QARIu1Ym1PQKmkmpuTKiaDlzVvPIDO48kblE-YnqmV1EpEvcXvgyR3OMaAKvHdLuabJuQHmltKqBQ\"\n    }\n}"}],"_postman_id":"8762143f-6872-4610-ba97-7093de13189a"},{"name":"/","id":"7ece971b-89a6-4723-b582-a446629bb2ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{base_url}}","urlObject":{"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7ece971b-89a6-4723-b582-a446629bb2ae"}]}