Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 18.3 KB

testing-endpoints.md

File metadata and controls

50 lines (30 loc) · 18.3 KB

Examples

api/test/did-doc

Returns a did-doc for this server

curl -X GET http://localhost:8080/api/test/did-doc

api/test/did-debug

Returns all the details used for generating this did

curl -X GET http://localhost:8080/api/test/did-debug

api/test/encrypt-for-did

The body is a JSON object (note, this API requires a content-type header) with a did (to encrypt for) and a payload (content to encrypt)

If you supply an encryptForKeyId parameter like "encryptForKeyId": "#encryption-key-1", this encryption key will be used from the DID doc. Otherwise, the first encryption key discovered in the DID doc will be used.

curl -X POST http://localhost:8080/api/test/encrypt-for-did -H "Content-type: application/json" --data '{"did": "did:ion:EiBHpyJ-oYi0qzxFZ0XPicvtgw63pjiWJ6MPHU2IOGVq1Q?-ion-initial-state=eyJkZWx0YV9oYXNoIjoiRWlBb0VUUm1ueEFpMHRMT2pxSFFaU203RW5XTzVtWHdDWmwyWUp0YUJnMnFQZyIsInJlY292ZXJ5X2NvbW1pdG1lbnQiOiJFaURjRG1INWlRT1dlUFdQMmhQTlFzdXpualVXT1FNejFxQmZJa042UXdUUFFRIn0.eyJ1cGRhdGVfY29tbWl0bWVudCI6IkVpQzZYWS0wcXdXV1MzWTJ1SG16NnNEZ1BUNjlIY1VzcngzRzlrYk1GZjRHQVEiLCJwYXRjaGVzIjpbeyJhY3Rpb24iOiJhZGQtcHVibGljLWtleXMiLCJwdWJsaWNfa2V5cyI6W3siaWQiOiJzaWduaW5nLWtleS0xIiwicHVycG9zZSI6WyJnZW5lcmFsIiwiYXV0aCJdLCJ0eXBlIjoiRWNkc2FTZWNwMjU2azFWZXJpZmljYXRpb25LZXkyMDE5IiwiandrIjp7Imt0eSI6IkVDIiwiY3J2Ijoic2VjcDI1NmsxIiwieCI6InZrWWpPNjRVMXZTcHZhX3ZzZlE3RXpOOWh0cGZjUV9oaXdRX25FV2ZHOW8iLCJ5IjoiMVhHVVpvSnN2V08tM25KVE0yYktuSXE1ejZjYnExc18wbUd4azJKNXpLZyJ9fSx7ImlkIjoiZW5jcnlwdGlvbi1rZXktMSIsInB1cnBvc2UiOlsiZ2VuZXJhbCIsImF1dGgiXSwidHlwZSI6Ikp3c1ZlcmlmaWNhdGlvbktleTIwMjAiLCJqd2siOnsiYWxnIjoiUlNBLU9BRVAiLCJlIjoiQVFBQiIsImV4dCI6dHJ1ZSwia2V5X29wcyI6WyJlbmNyeXB0Iiwid3JhcEtleSJdLCJrdHkiOiJSU0EiLCJuIjoiMnRlSFNjWFBJT0FmQVEtZlRfdzJnZDVVUkltRzg1NFc3SXFaVlN3bktlT29DbDZnZEFFMU5GVlZuUlp0OVhvamZ0T0JYZWRiTVpUWnNoVXYtR2Z0T3YyWVh3QkVRbGlzQjQ5Z095RzFQRUNxVFRqUWcyS0RMLVAxdk9DeEhVR3cta1Rud25HdmdnQktaUU5Qd0g2MUlQQk15eWhVNHQzTmN3T29GRnFTU1FvOU11bGQ1ZGNwXy1uNzZmZ0pMd0dlTUx1WkhXZXFLazV0dXoyR0tfMVBfck82NF9wc0hacDJZMzdhTFd6UVRwa2puUGVPZkk3QW5JamZDZkRBeXZSMTRlZ2Vocy05SUszMzJSR1J2N1Zfd3B4Z3pYUFRVMUppd2tyWV9fa2Z3UUU1TlhURkhBcjliZndVOVdZVUVNTDVIM0t0WW51VFpKX3lqRUNqNHljc0t3In19XX1dfQ", "payload": "test"}'
curl -X POST http://localhost:8080/api/test/encrypt-for-did -H "Content-type: application/json" --data '{"did": "did:ion:EiBHpyJ-oYi0qzxFZ0XPicvtgw63pjiWJ6MPHU2IOGVq1Q?-ion-initial-state=eyJkZWx0YV9oYXNoIjoiRWlBb0VUUm1ueEFpMHRMT2pxSFFaU203RW5XTzVtWHdDWmwyWUp0YUJnMnFQZyIsInJlY292ZXJ5X2NvbW1pdG1lbnQiOiJFaURjRG1INWlRT1dlUFdQMmhQTlFzdXpualVXT1FNejFxQmZJa042UXdUUFFRIn0.eyJ1cGRhdGVfY29tbWl0bWVudCI6Ik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4Z3pYUFRVMUppd2tyWV9fa2Z3UUU1TlhURkhBcjliZndVOVdZVUVNTDVIM0t0WW51VFpKX3lqRUNqNHljc0t3In19XX1dfQ", "payload": "test", "encryptForKeyId": "#encryption-key-1"}'

api/test/validate-jws

The body is a JWS signed by the client

curl -X POST http://localhost:8080/api/test/validate-jws --data 'eyJraWQiOiJkaWQ6aW9uOkVpQWVzMFhRZlliaG9mTUFSQk80c1RjWjk0SWVNYTVCNFNCbFVrek9TMDRUNlE_LWlvbi1pbml0aWFsLXN0YXRlPWV5SmtaV3gwWVY5b1lYTm9Jam9pUldsQ1FUaENiV1V5TjJremIxYzFWbEJYVlhaYVlUSnpUSE40ZWpSUGNVVm9XRVpIZURReFoyOUNjV1F4UVNJc0luSmxZMjkyWlhKNVgyTnZiVzFwZEcxbGJuUWlPaUpGYVVGNGNsOXVSbVJoTlRKTFRIUlRRVzFtUkZKT2NVNWxkVlphTUdoRFpEWktZVGN0U0VscVZHTkJXSFpuSW4wLmV5SjFjR1JoZEdWZlkyOXRiV2wwYldWdWRDSTZJa1ZwUVhGSE5GZDJRbk5wWjFoWVZVbENZVmd0VDNSVWJteG5TREEyTmsxb1NWTkpWM0pKYmxCdmJIUXlNbEVpTENKd1lYUmphR1Z6SWpwYmV5SmhZM1JwYjI0aU9pSmhaR1F0Y0hWaWJHbGpMV3RsZVhNaUxDSndkV0pzYVdOZmEyVjVjeUk2VzNzaWFXUWlPaUp6YVdkdWFXNW5MV3RsZVMweElpd2ljSFZ5Y0c5elpTSTZXeUpuWlc1bGNtRnNJaXdpWVhWMGFDSmRMQ0owZVhCbElqb2lSV05rYzJGVFpXTndNalUyYXpGV1pYSnBabWxqWVhScGIyNUxaWGt5TURFNUlpd2lhbmRySWpwN0ltdDBlU0k2SWtWRElpd2lZM0oySWpvaWMyVmpjREkxTm1zeElpd2llQ0k2SW1neGNWQnlWRVpoUVZKbVR6QkZRa1pEZWtORE16aHFYek5aTW1kUVl5MW5PRE5SZWtKSFdXWXhNbX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c3RlbSI6Imh0dHA6Ly9sb2luYy5vcmciLCJjb2RlIjoiTEE2NTc2LTgiLCJkaXNwbGF5IjoiUG9zaXRpdmUifV19fX1dfX19.TuXSyx7jw1WIGIhhNPTU4aqfjW6UwgC3tArX-Y5hZI0Fe6U9dY-39iKSgzqWkgYPkRtDj9ubOO5WfbwuYs24Sw'

api/test/validate-jwe

The body is a JWE encrypted to the server's encryption key

curl -X POST http://localhost:8080/api/test/validate-jwe --data 'eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhDQkMtSFMyNTYifQ.6KiP6Fbhv7yOjP5-iV2JGltl3HJc1U1i4LU_kdHZzBrpw2LsSyyuhuSR8ZU0ZiD03p8bqBBYn2B4yTxsWBY7cwAfeUiX9XdvUYSImF26UxJMUX-Zvpx-H6_wD7gVlUbkoXCTUAyqtEe2Avv4_nJPygusEPvzRnNxoMlEXdVwwtnD-Hx40VvTJx3UMDJV-oiespcXRc38BUOo3vRgS5wnx8-uGKdZK-GlUV6T4PF3f7EDnVukVLjX1dCnAq2OLzEP4lfpfxGoPaEOUWpCxVIMULTWB_g7pNT0LxxqDVb5FM46_CWGGEhzkrU5s7INWGb-mD-jU6ze3FqaXmkDdXMS1g.C2E9yj8Rk31F-Owy6sZnuA.R7veJSc7oCLYnqf63eWJ_eYIAKaDRAnyQPEkHGhiUfgoM4QzAddicQm1Ru9FBovsmNEqRQb6mPYSKMayr3jWwfhNdQeVj_04YgnCFi83T0Ba5z5bXJ0LLh8btKGE14T07wJN6-yGE21nLaZnwXwfkotUZOeAVMGs4aEfbYC81jLgGtjYgqH8vNn7nLOtbCF2G2G8rmJx-j6zWln_rgHPm1beD4JTpEH7xEuliMWijOUkv-aI5PMb8vuGZnqWN3r1Un1zLIiufDC-6Aix2FL6ypBuRRfRMjtLd8rUexNxU0v0eFLkzYuCVnBE_Dh3_aW0c-nTGyP-osKGjdQ5seZc9ffwCGmXk3XSkcp9AErOAUvGNf9V4WrwmWQR0w3NKW1QO9Zo0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