-
Notifications
You must be signed in to change notification settings - Fork 12
/
dev_phms_rest_api_insomnia_collection.json
1 lines (1 loc) · 13.8 KB
/
dev_phms_rest_api_insomnia_collection.json
1
{"_type":"export","__export_format":4,"__export_date":"2021-05-17T14:56:57.654Z","__export_source":"insomnia.desktop.app:v2021.3.0","resources":[{"_id":"req_df5b044f8a994b9eba5bed65191186e8","parentId":"fld_5337f1c0124e43ee8cb4d1bf2a74fa58","modified":1621261841149,"created":1616656923586,"url":"{{ _.host }}/phms/api/user/login","name":"LOGIN — SuperAdmin Murray","description":"","method":"POST","body":{"params":[],"mimeType":"multipart/form-data"},"parameters":[],"headers":[],"authentication":{"type":"basic","useISO88591":false,"disabled":false,"username":"{{ _.newUserEmail }}","password":"lksjgfkldfjgldf"},"metaSortKey":-1616656923586,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":false,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_5337f1c0124e43ee8cb4d1bf2a74fa58","parentId":"fld_e87a87cdd13b49c6a25fad6d643768f8","modified":1616656923587,"created":1616656923587,"name":"user","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1616656923587,"_type":"request_group"},{"_id":"fld_e87a87cdd13b49c6a25fad6d643768f8","parentId":"wrk_a48fc0815c5343ac94847f4101b92046","modified":1616656928117,"created":1616656928117,"name":"phms","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1616656928117,"_type":"request_group"},{"_id":"wrk_a48fc0815c5343ac94847f4101b92046","parentId":null,"modified":1616656955256,"created":1616656928106,"name":"pureharm-movie-server","description":"","scope":"collection","_type":"workspace"},{"_id":"req_73d8c7b1bd7d4ae18afa8f7d870349ab","parentId":"fld_5337f1c0124e43ee8cb4d1bf2a74fa58","modified":1618222623584,"created":1616656923585,"url":"{{ _.host }}/phms/api/user/{% response 'body', 'req_df5b044f8a994b9eba5bed65191186e8', 'b64::JC51c2VyLmlk::46b', 'never', 60 %}","name":"user — SuperAdmin","description":"","method":"GET","body":{},"parameters":[],"headers":[{"name":"X-AUTH-TOKEN","value":"{% response 'body', 'req_df5b044f8a994b9eba5bed65191186e8', 'b64::JC50b2tlbg==::46b', 'no-history', 60 %}","id":"pair_d796c20ee077485f9525bc4143fbb446","disabled":false}],"authentication":{"type":"bearer"},"metaSortKey":-1616656923585,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_e2245a22d5a94d659bfc3687df63a932","parentId":"fld_5337f1c0124e43ee8cb4d1bf2a74fa58","modified":1618222634107,"created":1616656923584,"url":"{{ _.host }}/phms/api/user_invitation","name":"INVITE STEP1 — user_invitation","description":"","method":"POST","body":{"mimeType":"","text":"{\n\t\"email\": \"{{ _.newUserEmail }}\",\n\t\"role\": \"Curator\"\n}"},"parameters":[],"headers":[{"name":"X-AUTH-TOKEN","value":"{% response 'body', 'req_df5b044f8a994b9eba5bed65191186e8', 'b64::JC50b2tlbg==::46b', 'no-history', 60 %}","id":"pair_e50bbe719eaf434f89aaa262d0ee595c"},{"name":"Content-Type","value":"application/json","id":"pair_5774dd9f4af948d998d91b3190942e73"}],"authentication":{},"metaSortKey":-1616656923584,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_bab6b493501d4965a2d95bc742d8cd9a","parentId":"fld_5337f1c0124e43ee8cb4d1bf2a74fa58","modified":1621260908664,"created":1616656923583,"url":"{{ _.host }}/phms/api/user_invitation/confirmation","name":"INVITE STEP2 — user_invitation/confirm","description":"You have to get token from your email.\n\nOr go hack the code and print it out to the console, lol. Don't leave it for \"production\" though :)","method":"PUT","body":{"mimeType":"","text":"{\n\t\"invitationToken\": \"DNCh5njE+Hc4xnpq/fkoA19doENFF/bWylmFD0iLKPe1ESIGZ1K7fJd3GPDUN86DUUD/99tv2ohfwqQZW4ercQ==\",\n\t\"plainTextPassword\": \"{{ _.newUserPassword }}\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_24870a2429864df59df8badc092b23d0"}],"authentication":{},"metaSortKey":-1616656923583,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_c89d63ad86b3446c9c5d75f56b2b2115","parentId":"fld_5337f1c0124e43ee8cb4d1bf2a74fa58","modified":1621263146511,"created":1616656923582,"url":"{{ _.host }}/phms/api/user/login","name":"INVITE STEP3 — login with new user","description":"This hardcodes the Authorization Basic header for\nusername: lorand.szakacs+pure-movie-server@busymachines.com\npassword: SomeNewPassword\n\nBasic bG9yYW5kLnN6YWthY3MrcHVyZS1tb3ZpZS1zZXJ2ZXItdGVzdEBidXN5bWFjaGluZXMuY29tOlNvbWVOZXdQYXNzd29yZA==","method":"POST","body":{"params":[],"mimeType":"multipart/form-data"},"parameters":[],"headers":[],"authentication":{"type":"basic","useISO88591":false,"disabled":false,"username":"{{ _.newUserEmail }}","password":"{{ _.newUserPassword }}"},"metaSortKey":-1616656923582,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_5631315fc862498ba45679e749921058","parentId":"fld_5337f1c0124e43ee8cb4d1bf2a74fa58","modified":1621263128783,"created":1621258660886,"url":"{{ _.host }}/phms/api/user/password_reset/request","name":"PW RESET STEP1 — new user","description":"","method":"POST","body":{"mimeType":"","text":"{\n\t\"email\": \"{{ _.newUserEmail }}\"\n}"},"parameters":[],"headers":[{"name":"X-AUTH-TOKEN","value":"{% response 'body', 'req_df5b044f8a994b9eba5bed65191186e8', 'b64::JC50b2tlbg==::46b', 'no-history', 60 %}","id":"pair_e50bbe719eaf434f89aaa262d0ee595c"},{"name":"Content-Type","value":"application/json","id":"pair_5774dd9f4af948d998d91b3190942e73"}],"authentication":{},"metaSortKey":-1616656923532,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_96563efe0aa34fcca329b2bb30469cbc","parentId":"fld_5337f1c0124e43ee8cb4d1bf2a74fa58","modified":1621263324347,"created":1621260994642,"url":"{{ _.host }}/phms/api/user/password_reset/completion","name":"PW RESET STEP2 — new user","description":"","method":"POST","body":{"mimeType":"","text":"{\n\t\"token\": \"GET FROM EMAIL\",\n\t\"newPws\": \"{{ _.passwordAfterReset }}\"\n\t\n}"},"parameters":[],"headers":[{"name":"X-AUTH-TOKEN","value":"{% response 'body', 'req_df5b044f8a994b9eba5bed65191186e8', 'b64::JC50b2tlbg==::46b', 'no-history', 60 %}","id":"pair_e50bbe719eaf434f89aaa262d0ee595c"},{"name":"Content-Type","value":"application/json","id":"pair_5774dd9f4af948d998d91b3190942e73"}],"authentication":{},"metaSortKey":-1616656923482,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_ef914b0088684f95b66d9bcd7cfee588","parentId":"fld_5337f1c0124e43ee8cb4d1bf2a74fa58","modified":1621263237437,"created":1621263223733,"url":"{{ _.host }}/phms/api/user/login","name":"PW RESET STEP3 — validation — login with new password","description":"This hardcodes the Authorization Basic header for\nusername: lorand.szakacs+pure-movie-server@busymachines.com\npassword: SomeNewPassword\n\nBasic bG9yYW5kLnN6YWthY3MrcHVyZS1tb3ZpZS1zZXJ2ZXItdGVzdEBidXN5bWFjaGluZXMuY29tOlNvbWVOZXdQYXNzd29yZA==","method":"POST","body":{"params":[],"mimeType":"multipart/form-data"},"parameters":[],"headers":[],"authentication":{"type":"basic","useISO88591":false,"disabled":false,"username":"{{ _.newUserEmail }}","password":"{{ _.passwordAfterReset }}"},"metaSortKey":-1616656923432,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_adf87fa5cf1d497bbc69f116e9271872","parentId":"fld_711e48222b1549cfa5a5b7deb0322fe4","modified":1618222657687,"created":1616656923580,"url":"{{ _.host }}/phms/api/movie_import/imdb?title=Libertarias","name":"movie_import/imdb","description":"","method":"PUT","body":{},"parameters":[],"headers":[{"name":"X-AUTH-TOKEN","value":"{% response 'body', 'req_df5b044f8a994b9eba5bed65191186e8', 'b64::JC50b2tlbg==::46b', 'no-history', 60 %}","id":"pair_31b390500ba44106b1d0be1acc485bfa"}],"authentication":{},"metaSortKey":-1616656923580,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_711e48222b1549cfa5a5b7deb0322fe4","parentId":"fld_e87a87cdd13b49c6a25fad6d643768f8","modified":1616656923581,"created":1616656923581,"name":"movie","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1616656923581,"_type":"request_group"},{"_id":"req_09f805642ba2441ea2194d7ee0372513","parentId":"fld_711e48222b1549cfa5a5b7deb0322fe4","modified":1618222674771,"created":1618222396414,"url":"{{ _.host }}/phms/api/movie/{% response 'body', 'req_adf87fa5cf1d497bbc69f116e9271872', 'b64::JC5pZA==::46b', 'no-history', 60 %}","name":"movie/ by ID - previously imported from imdb","description":"","method":"GET","body":{},"parameters":[],"headers":[{"name":"X-AUTH-TOKEN","value":"{% response 'body', 'req_df5b044f8a994b9eba5bed65191186e8', 'b64::JC50b2tlbg==::46b', 'no-history', 60 %}","id":"pair_bda68ab71e1c4d819e753178b10a465b"}],"authentication":{},"metaSortKey":-1616656923579.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_28f01a529e344f8f83af97a5cde8ab57","parentId":"fld_711e48222b1549cfa5a5b7deb0322fe4","modified":1618222684155,"created":1616656923579,"url":"{{ _.host }}/phms/api/movie","name":"create movie","description":"","method":"POST","body":{"mimeType":"","text":"{\n\t\"title\": \"Lord of The Rings: The Fellowship of the Ring\",\n\t\"date\": \"2002-02-01\"\n}"},"parameters":[],"headers":[{"name":"X-AUTH-TOKEN","value":"{% response 'body', 'req_df5b044f8a994b9eba5bed65191186e8', 'b64::JC50b2tlbg==::46b', 'no-history', 60 %}","id":"pair_c5dfea842ed5465e86f9db1e0f120d97"},{"name":"Content-Type","value":"application/json","id":"pair_31c23fcd40d14542a34e868f3e93e858"}],"authentication":{},"metaSortKey":-1616656923579,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_9a5c4a5eb5fd41c2b90addc78e97f916","parentId":"fld_711e48222b1549cfa5a5b7deb0322fe4","modified":1618222694315,"created":1616656923578,"url":"{{ _.host }}/phms/api/movie/{% response 'body', 'req_28f01a529e344f8f83af97a5cde8ab57', 'b64::JC5pZA==::46b', 'no-history', 60 %}","name":"movie/ by ID — previously created","description":"","method":"GET","body":{},"parameters":[],"headers":[{"name":"X-AUTH-TOKEN","value":"{% response 'body', 'req_df5b044f8a994b9eba5bed65191186e8', 'b64::JC50b2tlbg==::46b', 'no-history', 60 %}","id":"pair_bda68ab71e1c4d819e753178b10a465b"}],"authentication":{},"metaSortKey":-1616656923578,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_9edc3cacbaf04e93b566538a9291c002","parentId":"fld_711e48222b1549cfa5a5b7deb0322fe4","modified":1618222701387,"created":1616656923574,"url":"{{ _.host }}/phms/api/movie?start=1940-01-01&end=2025-01-02","name":"movie/ by date query","description":"","method":"GET","body":{},"parameters":[],"headers":[{"name":"X-AUTH-TOKEN","value":"{% response 'body', 'req_df5b044f8a994b9eba5bed65191186e8', 'b64::JC50b2tlbg==::46b', 'never', 60 %}","id":"pair_0d06ff59b3b14d2d9b5624fe09b7c20c"}],"authentication":{},"metaSortKey":-1616656923574,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_fbaee0f7eb59c45dc125cfffe975772464925539","parentId":"wrk_a48fc0815c5343ac94847f4101b92046","modified":1616657274102,"created":1616656946615,"name":"Base Environment","data":{},"dataPropertyOrder":{},"color":null,"isPrivate":false,"metaSortKey":1616656946615,"_type":"environment"},{"_id":"jar_fbaee0f7eb59c45dc125cfffe975772464925539","parentId":"wrk_a48fc0815c5343ac94847f4101b92046","modified":1616656946616,"created":1616656946616,"name":"Default Jar","cookies":[],"_type":"cookie_jar"},{"_id":"spc_10fdbdc51f8a4a12a4ae2acfd5078b02","parentId":"wrk_a48fc0815c5343ac94847f4101b92046","modified":1616656928106,"created":1616656928106,"fileName":"Imported Workspace","contents":"","contentType":"yaml","_type":"api_spec"},{"_id":"env_cebf7f4010324cc1951095ac249e2253","parentId":"env_fbaee0f7eb59c45dc125cfffe975772464925539","modified":1621263180788,"created":1616657242857,"name":"phms-local","data":{"host":"http://localhost:13120","superAdminUser":"murray.bookchin@social.ecology","superAdminPW":"OldManYellsAtAnarchism","newUserEmail":"lorand.szakacs+newuser@phsm.test","newUserPassword":"SomeNewPassword","passwordAfterReset":"PasswordAfterReset3"},"dataPropertyOrder":{"&":["host","superAdminUser","superAdminPW","newUserEmail","newUserPassword","passwordAfterReset"]},"color":null,"isPrivate":false,"metaSortKey":1616657242857,"_type":"environment"}]}