-
Notifications
You must be signed in to change notification settings - Fork 27
/
postman.json
1 lines (1 loc) · 8.99 KB
/
postman.json
1
{"collection":{"info":{"_postman_id":"40cf1cd5-3a8c-4b6c-9558-f683b76fff12","name":"Base Service","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json","updatedAt":"2023-10-14T08:51:11.000Z","uid":"16710906-40cf1cd5-3a8c-4b6c-9558-f683b76fff12"},"item":[{"name":"auth","item":[{"name":"signin","id":"fc064569-e780-4880-a65d-bcd3594df59c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n \"email\": \"[email protected]\",\n \"password\": \"admin123@\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8000/signin","protocol":"http","host":["localhost"],"port":"8000","path":["signin"]}},"response":[],"uid":"16710906-fc064569-e780-4880-a65d-bcd3594df59c"},{"name":"signup","id":"102c19c8-dba8-47bf-bdbf-41452a5c50e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n \"username\": \"admin\",\n \"password\": \"admin123@\",\n \"email\": \"[email protected]\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8000/signup","protocol":"http","host":["localhost"],"port":"8000","path":["signup"]}},"response":[],"uid":"16710906-102c19c8-dba8-47bf-bdbf-41452a5c50e2"},{"name":"change-password","id":"734a1f18-8814-45b4-aa44-0dce71d46674","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjoie1wiaWRcIjoxNyxcInVzZXJuYW1lXCI6XCJ0ZXN0MVwiLFwiZW1haWxcIjpcInRlc3QxQGV4YW1wbGUuY29tXCIsXCJwcm9maWxlUGljdHVyZVVSTFwiOm51bGwsXCJyb2xlXCI6XCJ1c2VyXCJ9IiwiZXhwIjoxNjk3MDk2MTA3fQ.C6GZgu-L9BkSF2_J8HjlJGjVvxMc1XmrG57YCpR1awTPyJ-bmCOmrV5nQZkBHsAxqlaxEd9PtI4z5QkqEDFnBc170KlDB4FmqktHfPgcw6hNQ-uQCwEQRpKPHKrFg---6o8WS0cgRCp2URGRssSYNNexnfMhtqSlRl8W0_R9p-U","type":"string"}]},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n \"password\": \"ooooooooooo1\",\n \"newPassword\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8000/change-password","protocol":"http","host":["localhost"],"port":"8000","path":["change-password"]}},"response":[],"uid":"16710906-734a1f18-8814-45b4-aa44-0dce71d46674"}],"id":"592c2c9d-cdb0-43b2-bf00-536f5320bd4c","uid":"16710906-592c2c9d-cdb0-43b2-bf00-536f5320bd4c"},{"name":"profile","item":[{"name":"show-current-profile","id":"335de952-db45-47cc-b9d0-247af1cde431","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjoie1wiaWRcIjoxLFwidXNlcm5hbWVcIjpcImFkbWluXCIsXCJlbWFpbFwiOlwiYWRtaW5AZXhhbXBsZS5jb21cIixcInByb2ZpbGVQaWN0dXJlVVJMXCI6XCJodHRwczovL3Jlcy5jbG91ZGluYXJ5LmNvbS9kdG1lYm85OWIvaW1hZ2UvdXBsb2FkL2Nfc2NhbGUsd18wLjQ1LGhfMC40NS9ubWRhbi5jb20vbWVkaWEvYmFubmVycy9iYXQuanBlZ1wiLFwicm9sZVwiOlwiYWRtaW5cIn0iLCJleHAiOjE2OTg1OTk0MDJ9.uraS3GZJHX-hmusvpfhLw7BpX9Btw88fX1mkY93R_ADP3w8riMcLEkfJt-uFKQqjIlJOJ2FV1_7txrQoEuOGree7SZPax8F8Y5E_J_DNGyW1nBmsXBB3xkFZeMi0ElVnk2pnlBLS3PcZ9o_1mWjbV9PfORvhlEkA049zXBe9MAU","type":"string"}]},"method":"GET","header":[],"url":{"raw":"http://localhost:8000/profile/current-profile","protocol":"http","host":["localhost"],"port":"8000","path":["profile","current-profile"]}},"response":[],"uid":"16710906-335de952-db45-47cc-b9d0-247af1cde431"},{"name":"update-current-profile","id":"226692b4-45f8-47cb-9e37-ddea0597a789","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjoie1wiaWRcIjo2LFwidXNlcm5hbWVcIjpcImFkbWluXCIsXCJlbWFpbFwiOlwiYWRtaW5AZXhhbXBsZS5jb21cIixcInByb2ZpbGVQaWN0dXJlVVJMXCI6bnVsbCxcInJvbGVcIjpcInVzZXJcIn0iLCJleHAiOjE2OTcxMDQ5OTl9.dk2AoYWVss93UK_Mxuzu6Uhu4vOmRVnkfXQBTLJ_il301yLnY2MknzdtX_EEOstSsyyH_aVdwFG_XahOpgeshk8B4Ow_yV7fn_ejdImbU91_4LF1RX0VfiD-6kXQdRMzP7aj0dN3cIjlY1j3EBNdU-rBqabH-GDvHVzbcQn62PY","type":"string"}]},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n \"username\": \"admin2\",\n \"profilePictureURL\": \"https://image3.example.com\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8000/profile/current-profile","protocol":"http","host":["localhost"],"port":"8000","path":["profile","current-profile"]}},"response":[],"uid":"16710906-226692b4-45f8-47cb-9e37-ddea0597a789"}],"id":"7d352315-6698-4905-a5b0-3c6bd8fa3f65","uid":"16710906-7d352315-6698-4905-a5b0-3c6bd8fa3f65"},{"name":"admin","item":[{"name":"get-all-users","id":"b6a87b82-00da-49a8-9f49-c313baaeadb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjoie1wiaWRcIjoxLFwidXNlcm5hbWVcIjpcImFkbWluXCIsXCJlbWFpbFwiOlwiYWRtaW5AZXhhbXBsZS5jb21cIixcInByb2ZpbGVQaWN0dXJlVVJMXCI6XCJodHRwczovL3Jlcy5jbG91ZGluYXJ5LmNvbS9kdG1lYm85OWIvaW1hZ2UvdXBsb2FkL2Nfc2NhbGUsd18wLjQ1LGhfMC40NS9ubWRhbi5jb20vbWVkaWEvYmFubmVycy9iYXQuanBlZ1wiLFwicm9sZVwiOlwiYWRtaW5cIn0iLCJleHAiOjE2OTg1OTk0MDJ9.uraS3GZJHX-hmusvpfhLw7BpX9Btw88fX1mkY93R_ADP3w8riMcLEkfJt-uFKQqjIlJOJ2FV1_7txrQoEuOGree7SZPax8F8Y5E_J_DNGyW1nBmsXBB3xkFZeMi0ElVnk2pnlBLS3PcZ9o_1mWjbV9PfORvhlEkA049zXBe9MAU","type":"string"}]},"method":"GET","header":[],"url":{"raw":"http://localhost:8000/users","protocol":"http","host":["localhost"],"port":"8000","path":["users"]}},"response":[],"uid":"16710906-b6a87b82-00da-49a8-9f49-c313baaeadb0"},{"name":"update-role-user","id":"8d4ba73d-231a-4d96-8def-27c7ca192385","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjoie1wiaWRcIjoxLFwidXNlcm5hbWVcIjpcImFkbWluXCIsXCJlbWFpbFwiOlwiYWRtaW5AZXhhbXBsZS5jb21cIixcInByb2ZpbGVQaWN0dXJlVVJMXCI6XCJodHRwczovL3Jlcy5jbG91ZGluYXJ5LmNvbS9kdG1lYm85OWIvaW1hZ2UvdXBsb2FkL2Nfc2NhbGUsd18wLjQ1LGhfMC40NS9ubWRhbi5jb20vbWVkaWEvYmFubmVycy9iYXQuanBlZ1wiLFwicm9sZVwiOlwiYWRtaW5cIn0iLCJleHAiOjE2OTg1OTk0MDJ9.uraS3GZJHX-hmusvpfhLw7BpX9Btw88fX1mkY93R_ADP3w8riMcLEkfJt-uFKQqjIlJOJ2FV1_7txrQoEuOGree7SZPax8F8Y5E_J_DNGyW1nBmsXBB3xkFZeMi0ElVnk2pnlBLS3PcZ9o_1mWjbV9PfORvhlEkA049zXBe9MAU","type":"string"}]},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n \"role\" : \"mod\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8000/users/update-role/2","protocol":"http","host":["localhost"],"port":"8000","path":["users","update-role","2"]}},"response":[],"uid":"16710906-8d4ba73d-231a-4d96-8def-27c7ca192385"},{"name":"block-ip","id":"8f91faed-5020-44b4-910e-2700ad301128","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjoie1wiaWRcIjoxLFwidXNlcm5hbWVcIjpcImFkbWluXCIsXCJlbWFpbFwiOlwiYWRtaW5AZXhhbXBsZS5jb21cIixcInByb2ZpbGVQaWN0dXJlVVJMXCI6XCJodHRwczovL3Jlcy5jbG91ZGluYXJ5LmNvbS9kdG1lYm85OWIvaW1hZ2UvdXBsb2FkL2Nfc2NhbGUsd18wLjQ1LGhfMC40NS9ubWRhbi5jb20vbWVkaWEvYmFubmVycy9iYXQuanBlZ1wiLFwicm9sZVwiOlwiYWRtaW5cIn0iLCJleHAiOjE2OTg1OTk0MDJ9.uraS3GZJHX-hmusvpfhLw7BpX9Btw88fX1mkY93R_ADP3w8riMcLEkfJt-uFKQqjIlJOJ2FV1_7txrQoEuOGree7SZPax8F8Y5E_J_DNGyW1nBmsXBB3xkFZeMi0ElVnk2pnlBLS3PcZ9o_1mWjbV9PfORvhlEkA049zXBe9MAU","type":"string"}]},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n \"ip\": \"123.12.43.99\",\n \"duration\": 24\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8000/block","protocol":"http","host":["localhost"],"port":"8000","path":["block"]}},"response":[],"uid":"16710906-8f91faed-5020-44b4-910e-2700ad301128"},{"name":"check-ip-blocked","id":"cc471599-1c3f-4b5f-b650-d95d1c4eea08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[]},"response":[],"uid":"16710906-cc471599-1c3f-4b5f-b650-d95d1c4eea08"}],"id":"4edc420e-0771-4953-9df3-35c8e6943236","uid":"16710906-4edc420e-0771-4953-9df3-35c8e6943236"},{"name":"messages","item":[{"name":"get-all-messages","id":"66ba3ed3-7010-4e64-9da0-a9ed563b8773","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[]},"response":[],"uid":"16710906-66ba3ed3-7010-4e64-9da0-a9ed563b8773"},{"name":"create-message","id":"b4e72a59-9924-48fa-8794-d8906a10cc8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[]},"response":[],"uid":"16710906-b4e72a59-9924-48fa-8794-d8906a10cc8b"}],"id":"d1bff3ca-baf8-4283-ad43-203496a4d752","uid":"16710906-d1bff3ca-baf8-4283-ad43-203496a4d752"},{"name":"search","item":[{"name":"search-by-keyword","id":"c7cfcd5e-e2b3-4f17-878f-c2b41ca11023","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[]},"response":[],"uid":"16710906-c7cfcd5e-e2b3-4f17-878f-c2b41ca11023"}],"id":"7a2cf35b-58b0-4f82-9feb-397e943093c3","uid":"16710906-7a2cf35b-58b0-4f82-9feb-397e943093c3"},{"name":"health","id":"e04c107f-794c-4ec8-8e77-293e253d6d06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[]},"response":[],"uid":"16710906-e04c107f-794c-4ec8-8e77-293e253d6d06"}]}}