-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKeepSecrets_Insomnia.json
More file actions
1 lines (1 loc) · 6.22 KB
/
KeepSecrets_Insomnia.json
File metadata and controls
1 lines (1 loc) · 6.22 KB
1
{"_type":"export","__export_format":4,"__export_date":"2022-07-11T20:39:18.880Z","__export_source":"insomnia.desktop.app:v2022.4.2","resources":[{"_id":"req_e53454a8a652488c88e4bae1f5409241","parentId":"fld_ac83bd091e2e4b418325f735610be126","modified":1657571928865,"created":1656612381592,"url":"{{base_path}}/secret ","name":"Create Secret","description":"Creating a secret is the main endpoint for encrypting a payload.\n\n## API Request\nThe JSON payload to be sent needs the following properties\n| Property|Type|Required|Description|\n|---|:---:|:---:|---|\n|**payload**|String|yes|The plaintext we are going to encrypt.|\n|**expireAt**|Number|yes|The number of minutes that will pass until the secret self-destructs.|\n\n## API Response\nAnd the answers should come with 3 fields, the same ones we need to consult the secret in a later call.\n| Property|Type|Description|\n|---|:---:|---|\n|**id**|String|Id of the secret stored in the database|\n|**secretKey**|String|The cryptographic key to decipher the secret.|\n\n```response:200\n{\n\t\"id\": \"7d347839-b51f-430e-9593-900e0d46ddac\",\n\t\"secretKey\": \"552fed5ce6eb20ad8754a2878b126dbcd04daddc02131cd271e2bfc26fb97a5e\",\n\t\"token\": \"bb1de0fa3c1bc93c317a6ca7cb35760a7efadae01c07cd52e81b9a42e9977542\"\n}\n```\n\n```response:409\n{\n\t\"message\": \"Secret id already exists\"\n}\n```","method":"POST","body":{"mimeType":"application/json","text":"\t{\n\t\t\"payload\": \"En mi casa no se paga\",\n\t\t\"expireAt\": 15\n\t}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_c793a5137bc14c418063ce71843ea34f"}],"authentication":{"type":"bearer","prefix":"Bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJvcmdhbmlzYXRpb24iOiIqIiwiaWF0IjoxNjU3NDA0NTE2fQ.ejlKw7KygADJsGH-yXuGX8IMcOZRIfVV7maEPuYjRPo"},"metaSortKey":-1656612381692,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":true,"settingEncodeUrl":false,"settingRebuildPath":true,"settingFollowRedirects":"on","_type":"request"},{"_id":"fld_ac83bd091e2e4b418325f735610be126","parentId":"wrk_5c3800b31ab840848b94cd4d2f02e6cc","modified":1657223327822,"created":1657223327822,"name":"Secrets","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1657223327822,"_type":"request_group"},{"_id":"wrk_5c3800b31ab840848b94cd4d2f02e6cc","parentId":null,"modified":1657223225747,"created":1624463316417,"name":"KeepSecrets","description":"","scope":"collection","_type":"workspace"},{"_id":"req_f8c2a307a50145b1a4fff90b2c16cb02","parentId":"fld_ac83bd091e2e4b418325f735610be126","modified":1657413723942,"created":1657044525583,"url":"{{base_path}}/secret/{% response 'body', 'req_e53454a8a652488c88e4bae1f5409241', 'b64::JC5pZA==::46b', 'never', 60 %}/{% response 'body', 'req_e53454a8a652488c88e4bae1f5409241', 'b64::JC5zZWNyZXRLZXk=::46b', 'never', 60 %}","name":"Get Secret","description":"","method":"GET","body":{},"parameters":[],"headers":[{"id":"pair_21bbe3f4169f4a57a0db9b46362fea66","name":"Content-Type","value":"application/json","description":""}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJvcmdhbmlzYXRpb24iOiIqIiwiaWF0IjoxNjU3NDA0NTE2fQ.ejlKw7KygADJsGH-yXuGX8IMcOZRIfVV7maEPuYjRPo","prefix":"Bearer","disabled":false},"metaSortKey":-1656612381642,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_ce39995074c5421f9155cc3669fa71a6","parentId":"fld_ac83bd091e2e4b418325f735610be126","modified":1657414852559,"created":1657298814855,"url":"{{base_path}}/secret/{% response 'body', 'req_e53454a8a652488c88e4bae1f5409241', 'b64::JC5pZA==::46b', 'never', 60 %}","name":"Delete Secret","description":"","method":"DELETE","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","prefix":"Bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJvcmdhbmlzYXRpb24iOiIqIiwiaWF0IjoxNjU3NDA0NTE2fQ.ejlKw7KygADJsGH-yXuGX8IMcOZRIfVV7maEPuYjRPo"},"metaSortKey":-1656612381592,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_00359caa404d3b72faa7e110f73db3bd8cae9450","parentId":"wrk_5c3800b31ab840848b94cd4d2f02e6cc","modified":1657235770760,"created":1624463316454,"name":"Base Environment","data":{},"dataPropertyOrder":{},"color":null,"isPrivate":false,"metaSortKey":1624463316454,"_type":"environment"},{"_id":"jar_00359caa404d3b72faa7e110f73db3bd8cae9450","parentId":"wrk_5c3800b31ab840848b94cd4d2f02e6cc","modified":1657318396719,"created":1624463316456,"name":"Default Jar","cookies":[{"key":"_gh_sess","value":"uke3akq0SKmqU5ZgeygqAbmidC1%2BKIck%2B%2FXRQoEN3mA5fzaYsfKhDSnp2Vy501fZSXrJ2ufzxBeBC6zZe%2FUsPizUJgFdbtvJS21phKoPq0b9PyVcfjFaxAGeLSrKAKSRbM2PS8AqK102PBVOQCa55eue16Pd%2FxdQsZjGWS0bqG2%2FOMT2iQ1WwJdG%2FQoH1%2Bj1AapfQJywJjfb%2BhJQzroX0d3Msc5PWrRIRLs%2BzqgaR0n64OhNIE9OUac%2F8MrKev1fV228Oz9Z73ibPNnipQk7ug%3D%3D--bIpc%2BZzWBtl64JuT--foPtT2qF1mzjumMYzxyWdQ%3D%3D","domain":"localhost","path":"/","secure":true,"httpOnly":true,"extensions":["SameSite=Lax"],"hostOnly":true,"creation":"2022-07-08T22:13:16.708Z","lastAccessed":"2022-07-08T22:13:16.708Z","id":"5000525523391606"}],"_type":"cookie_jar"},{"_id":"spc_3abbfc0aac4f46bf943649a9dce16281","parentId":"wrk_5c3800b31ab840848b94cd4d2f02e6cc","modified":1624463316418,"created":1624463316418,"fileName":"Insomnia","contents":"","contentType":"yaml","_type":"api_spec"},{"_id":"env_8256c229b48c4108946287007df98b97","parentId":"env_00359caa404d3b72faa7e110f73db3bd8cae9450","modified":1657330326923,"created":1657222674328,"name":"Local","data":{"base_path":" http://localhost:3000/api/v1"},"dataPropertyOrder":{"&":["base_path"]},"color":null,"isPrivate":false,"metaSortKey":1657222674328,"_type":"environment"},{"_id":"env_7e40209d3ae54940b76fcd834bb503d2","parentId":"env_00359caa404d3b72faa7e110f73db3bd8cae9450","modified":1657330323510,"created":1657222812659,"name":"Prod","data":{"base_path":" http://134.209.134.154"},"dataPropertyOrder":{"&":["base_path"]},"color":null,"isPrivate":false,"metaSortKey":1657222812659,"_type":"environment"}]}