Skip to content

Instantly share code, notes, and snippets.

@vprasanth
Last active July 23, 2021 21:28
Show Gist options
  • Save vprasanth/8145fdde7be288ed94f543814ff58470 to your computer and use it in GitHub Desktop.
Save vprasanth/8145fdde7be288ed94f543814ff58470 to your computer and use it in GitHub Desktop.
Platform V2 Insomnia collection
{"_type":"export","__export_format":4,"__export_date":"2021-07-23T21:27:15.001Z","__export_source":"insomnia.desktop.app:v2021.4.1","resources":[{"_id":"req_08deb1dba8b64159afbb28a856fcdf58","parentId":"fld_6dfab177c1ec436cb52ec756c12233f7","modified":1626054833254,"created":1625821981253,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/context/public/{{ _.A_DEMO_NAME }}","name":"Get public creds","description":"","method":"GET","body":{},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":""},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Accept","value":"application/json","description":""}],"authentication":{},"metaSortKey":-1625812288445.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_6dfab177c1ec436cb52ec756c12233f7","parentId":"wrk_c45e1aac41c943c396572dfb2be69b67","modified":1626110984943,"created":1626054826641,"name":"Credentials (context)","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1626110922522,"_type":"request_group"},{"_id":"wrk_c45e1aac41c943c396572dfb2be69b67","parentId":null,"modified":1626198481992,"created":1625812254334,"name":"Platform V2 API","description":"Interact with Platform API server.","scope":"collection","_type":"workspace"},{"_id":"req_9301e331802c4bff9bc517561e585bbd","parentId":"fld_6dfab177c1ec436cb52ec756c12233f7","modified":1626054831867,"created":1625822500614,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/context/private/{{ _.A_DEMO_NAME }}","name":"Get private creds","description":"","method":"GET","body":{},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":""},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Accept","value":"application/json","description":""}],"authentication":{},"metaSortKey":-1625812288395.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_c8e70b383b03480385f35c62f900447c","parentId":"fld_6dfab177c1ec436cb52ec756c12233f7","modified":1627007692114,"created":1627007616085,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/deployments/{{ _.A_DEMO_NAME }}/resources","name":"Get all apps","description":"","method":"GET","body":{},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":""},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Accept","value":"application/json","description":""}],"authentication":{},"metaSortKey":-1625812288352.1406,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_ecaa2bfbe59e4085923473cf71c702fe","parentId":"fld_4662b4ef591f44838288bef2366d86a4","modified":1626984292515,"created":1625812288433,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/tenants","name":"Get tenants","description":"","method":"GET","body":{},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":""},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Accept","value":"application/json","description":""},{"id":"pair_0a8a2c5516d34fe69ae765b3b7786f8a","name":"X-PLATFORM-USER-ID","value":"{{ _.USER_ID }}","description":"","disabled":false}],"authentication":{},"metaSortKey":-1625812288539.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_4662b4ef591f44838288bef2366d86a4","parentId":"wrk_c45e1aac41c943c396572dfb2be69b67","modified":1626110999918,"created":1626110922472,"name":"Tenant Mgmt","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1626110922509.5,"_type":"request_group"},{"_id":"req_5d6713f996a94694a801135ce9c0a84e","parentId":"fld_4662b4ef591f44838288bef2366d86a4","modified":1626983838086,"created":1625812842349,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/tenants","name":"Create tenant","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"name\": \"pv-labs\",\n\t\"region\": \"us\",\n\t\"type\": \"AUTH0\",\n\t\"ownerInfo\": {\n\t\t\"userId\": \"{{ _.USER_ID }}\",\n\t\t\"userEmail\": \"{{ _.USER_EMAIL }}\"\n\t},\n\t\"clientId\": \"e4Kf6b0W6rbsdyfQapXaTlqak4tWbWOr\",\n\t\"clientSecret\": \"UCxq_tIDT4EEuydO3tHMGPf_IPCOnf71wgCcp39toQXqq2gvFTvd0HtwR27TgVEC\"\n}"},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":""},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Content-Type","value":"application/json","description":""}],"authentication":{},"metaSortKey":-1625812288489.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_dddbd8ccb96a4ee19022ffd18426da76","parentId":"fld_71a6f4ae8ce84fd49f41915c7f4ada91","modified":1626461875755,"created":1625843356598,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/deployments","name":"Get deployments (only dev)","description":"","method":"GET","body":{},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":"","disabled":false},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Accept","value":"application/json","description":""}],"authentication":{},"metaSortKey":-1625812288458.7812,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_71a6f4ae8ce84fd49f41915c7f4ada91","parentId":"wrk_c45e1aac41c943c396572dfb2be69b67","modified":1626110990181,"created":1626110821533,"name":"Deployments","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1626110922497,"_type":"request_group"},{"_id":"req_115eca2202fb461985e44854cf8954c5","parentId":"fld_71a6f4ae8ce84fd49f41915c7f4ada91","modified":1626461877948,"created":1625822548244,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/deployments/{{ _.A_DEPLOYMENT }}/status","name":"Get deployment status","description":"","method":"GET","body":{},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":""},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Accept","value":"application/json","description":""}],"authentication":{},"metaSortKey":-1625812288433.7812,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_44f1d66192114eeea332ff5c82fd2959","parentId":"fld_71a6f4ae8ce84fd49f41915c7f4ada91","modified":1627053334864,"created":1627053324255,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/deployments/{{ _.A_DEMO_NAME }}","name":"Get deployment by name","description":"","method":"GET","body":{},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":""},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Accept","value":"application/json","description":""}],"authentication":{},"metaSortKey":-1625812288421.2812,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_b7598fc4e54545579a591c8857447179","parentId":"fld_71a6f4ae8ce84fd49f41915c7f4ada91","modified":1626984964330,"created":1625823939846,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/deployments","name":"Create deployment","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"name\": \"{{ _.A_DEMO_NAME }}\",\n\t\"demoId\": \"jiodijoadwaijowdaijo\",\n\t\"ownerInfo\": {\n\t\t\"userId\": \"{{ _.USER_ID }}\",\n\t\t\"userEmail\": \"{{ _.USER_EMAIL }}\"\n\t},\n\t\"tenantId\": \"{{ _.A_TENANT }}\",\n\t\"demoTemplate\": {\n\t\t\"title\": \"{{ _.TEMPLATE_TITLE }}\",\n\t\t\"type\": \"{{ _.TEMPLATE_TYPE }}\"\n\t}\n}"},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":""},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Content-Type","value":"application/json","description":""}],"authentication":{},"metaSortKey":-1625812288408.7812,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_e162bf8e71be44a09643093365f3b862","parentId":"fld_71a6f4ae8ce84fd49f41915c7f4ada91","modified":1626461152795,"created":1626111059622,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/deployments","name":"Create deployment (Error)","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"name\": \"reset\",\n\t\"demoId\": \"1234566789\",\n\t\"ownyer\": \"prasanth@auth0.com\",\n\t\"tenantId\": \"\",\n\t\"demoTemplate\": {\n\t\t\"title\": \"reset\"\n\t}\n}"},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":""},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Content-Type","value":"application/json","description":""}],"authentication":{},"metaSortKey":-1625812288402.1406,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_8a796715ed4e439fb3a675d591ebec9a","parentId":"fld_71a6f4ae8ce84fd49f41915c7f4ada91","modified":1627007574264,"created":1626054551073,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/deployments/{{ _.A_DEPLOYMENT }}","name":"Add SPA client to deployment","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"applications\": [\n\t\t{\n\t\t\t\"name\": \"Genericpp\",\n\t\t\t\"type\": \"Native\",\n\t\t\t\"clientId\": \"dawpdjw\",\n\t\t\t\"clientSecret\": \"djoaiwdoiawjdoawjd\",\n\t\t\t\"domain\": \"djawjdoc.com\"\n\t\t}\n\t]\n}"},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":""},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Content-Type","value":"application/json","description":""}],"authentication":{},"metaSortKey":-1625812288308.7812,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_4ee7e2b4659f4d9abbe6c9ca7bf111cf","parentId":"fld_70751b87528e4341a53cad2d3450f9df","modified":1626054768722,"created":1626054725923,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/deployments/{{ _.A_DEPLOYMENT }}","name":"UP","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"healthCheck\": \"UP\"\n}"},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":""},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Content-Type","value":"application/json","description":""}],"authentication":{},"metaSortKey":-1625812288307.2188,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_70751b87528e4341a53cad2d3450f9df","parentId":"wrk_c45e1aac41c943c396572dfb2be69b67","modified":1626054712071,"created":1626054708111,"name":"Update deployment health status","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1625812288326.75,"_type":"request_group"},{"_id":"req_3dd1aef6d16e46d492da2666befe552d","parentId":"fld_70751b87528e4341a53cad2d3450f9df","modified":1626055140772,"created":1626054792551,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/deployments/{{ _.A_DEPLOYMENT }}","name":"NA","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"healthCheck\": \"NA\"\n}"},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":""},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Content-Type","value":"application/json","description":""}],"authentication":{},"metaSortKey":-1625812288307.0234,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_41a71f0d81b64e9888510292efeb382d","parentId":"fld_70751b87528e4341a53cad2d3450f9df","modified":1626054784287,"created":1626054773759,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/deployments/{{ _.A_DEPLOYMENT }}","name":"DOWN","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"healthCheck\": \"DOWN\"\n}"},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":""},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Content-Type","value":"application/json","description":""}],"authentication":{},"metaSortKey":-1625812288306.8281,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_a8e09509ffc54b0387d7ed61f88295ab","parentId":"fld_2c99cf4dc40342bf86984e567ec83289","modified":1626054630698,"created":1625855600153,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/deployments/{{ _.A_DEPLOYMENT }}","name":"IN_PROGRESS","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"status\": \"IN_PROGRESS\"\n}"},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":""},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Content-Type","value":"application/json","description":""}],"authentication":{},"metaSortKey":-1625812288308,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_2c99cf4dc40342bf86984e567ec83289","parentId":"wrk_c45e1aac41c943c396572dfb2be69b67","modified":1626054618696,"created":1626054615445,"name":"Update deployment status","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1625812288320.5,"_type":"request_group"},{"_id":"req_bd2f474d45a94a4c8a7291fdc0365ad3","parentId":"fld_2c99cf4dc40342bf86984e567ec83289","modified":1626054681207,"created":1626054668182,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/deployments/{{ _.A_DEPLOYMENT }}","name":"FAILED","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"status\": \"FAILED\"\n}"},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":""},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Content-Type","value":"application/json","description":""}],"authentication":{},"metaSortKey":-1625812288306.4375,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_d35886e1b5324e16b12103a25867d365","parentId":"fld_2c99cf4dc40342bf86984e567ec83289","modified":1626054690829,"created":1626054685571,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/deployments/{{ _.A_DEPLOYMENT }}","name":"DEPLOYED","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"status\": \"DEPLOYED\"\n}"},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":""},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Content-Type","value":"application/json","description":""}],"authentication":{},"metaSortKey":-1625812288305.6562,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_cb47b49d0c2f46818baf978d63bdec64","parentId":"fld_2c99cf4dc40342bf86984e567ec83289","modified":1626054658406,"created":1626054636390,"url":"{{ _.BASE_PATH }}:{{ _.PORT }}/api/v1/deployments/{{ _.A_DEPLOYMENT }}","name":"QUEUED","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"status\": \"QUEUED\"\n}"},"parameters":[],"headers":[{"id":"pair_4b5df0057ec2487a8d2f91b7ac450432","name":"Authorization","value":"Bearer {{ _.TOKEN }}","description":""},{"id":"pair_61cb2a33056343a9ad4af403fefe8027","name":"Content-Type","value":"application/json","description":""}],"authentication":{},"metaSortKey":-1625812288304.875,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_ecfccceff54886d4005912f9eb6332199518a12b","parentId":"wrk_c45e1aac41c943c396572dfb2be69b67","modified":1627075593211,"created":1625812254426,"name":"Base Environment","data":{"TOKEN":"","BASE_PATH":"http://localhost","PORT":12000,"A_DEPLOYMENT":"","A_DEMO_NAME":"morbo","A_TENANT":"60f9ce41097976465bc82d97","TEMPLATE_TYPE":"generic0","TEMPLATE_TITLE":"Generic 0","USER_ID":"auth0|60f88ef08e31d50069f49d21","USER_EMAIL":"prasanth@auth0.com"},"dataPropertyOrder":{"&":["TOKEN","BASE_PATH","PORT","A_DEPLOYMENT","A_DEMO_NAME","A_TENANT","TEMPLATE_TYPE","TEMPLATE_TITLE","USER_ID","USER_EMAIL"]},"color":null,"isPrivate":false,"metaSortKey":1625812254426,"_type":"environment"},{"_id":"jar_ecfccceff54886d4005912f9eb6332199518a12b","parentId":"wrk_c45e1aac41c943c396572dfb2be69b67","modified":1625812254434,"created":1625812254434,"name":"Default Jar","cookies":[],"_type":"cookie_jar"},{"_id":"spc_6e980eeb598643b5888d2f54d3357ea4","parentId":"wrk_c45e1aac41c943c396572dfb2be69b67","modified":1625812254339,"created":1625812254339,"fileName":"Platform API","contents":"","contentType":"yaml","_type":"api_spec"}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment