{"info":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","description":"<html><head></head><body><p>API Documentation for Tennis Slide</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11204995","collectionId":"dff4c114-007e-4c2f-996c-dc6e417c4efb","publishedId":"2sA3rxqDJV","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-06-01T10:09:25.000Z"},"item":[{"name":"Admin","item":[{"name":"Authentication","item":[{"name":"Login","id":"4d9260db-32b2-4e7c-92b2-ca6cf69cb4b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/login","description":"<p>On login, an OTP is sent to the user. That's the otp to be used in verify OTP</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","login"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"e7948438-88a6-4acf-b119-b1ab9e7e5a17","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"303"},{"key":"ETag","value":"W/\"12f-YElLhvgLRgH1sQvT9CNjuvIrSNI\""},{"key":"Date","value":"Thu, 01 Aug 2024 12:02:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User Verified. Verify OTP\",\n    \"user\": {\n        \"_id\": \"66aa527afbf9b75a648af3ea\",\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"ogbekagolden@gmail.com\",\n        \"phoneNumber\": \"08169200454\",\n        \"active\": true,\n        \"role\": \"superAdmin\",\n        \"createdAt\": \"2024-07-31T15:04:26.288Z\",\n        \"updatedAt\": \"2024-08-01T12:02:19.514Z\",\n        \"__v\": 0\n    }\n}"},{"id":"efcd01bd-b0b4-4d20-814e-b27bea54a476","name":"Wrong Password or Email","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"password\": \"12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"39"},{"key":"ETag","value":"W/\"27-Mm37A2ls1bgL0/D8e3MSpDLbow8\""},{"key":"Date","value":"Wed, 31 Jul 2024 15:24:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid email or password\"\n}"},{"id":"933d1d00-d752-463d-a477-130266030eed","name":"Input Failure","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-Y5TAqROqjsvPbDYsCc/9QEESk7g\""},{"key":"Date","value":"Sat, 03 Aug 2024 10:53:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Email is required\"\n}"}],"_postman_id":"4d9260db-32b2-4e7c-92b2-ca6cf69cb4b7"},{"name":"Verify OTP","id":"8100e50c-1dee-41d2-96e2-10bd0d72691b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"otp\": \"501900\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/verify-otp","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","verify-otp"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"1a1fc511-1d45-4b2e-addf-3ee4feabb778","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"otp\": \"6c5d28\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/verify-otp"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"773"},{"key":"ETag","value":"W/\"305-zcU6SjvdvR9mt36fzDi/RzY+cV8\""},{"key":"Date","value":"Thu, 01 Aug 2024 12:34:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login Successful\",\n    \"user\": {\n        \"_id\": \"66aa527afbf9b75a648af3ea\",\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"ogbekagolden@gmail.com\",\n        \"phoneNumber\": \"08169200454\",\n        \"active\": true,\n        \"role\": \"superAdmin\",\n        \"createdAt\": \"2024-07-31T15:04:26.288Z\",\n        \"updatedAt\": \"2024-08-01T12:32:24.600Z\",\n        \"__v\": 0\n    },\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NmFhNTI3YWZiZjliNzVhNjQ4YWYzZWEiLCJmaXJzdE5hbWUiOiJHb2xkZW4iLCJsYXN0TmFtZSI6Ik9nYmVrYSIsImVtYWlsIjoib2diZWthZ29sZGVuQGdtYWlsLmNvbSIsInBob25lTnVtYmVyIjoiMDgxNjkyMDA0NTQiLCJhY3RpdmUiOnRydWUsInJvbGUiOiJzdXBlckFkbWluIiwiY3JlYXRlZEF0IjoiMjAyNC0wNy0zMVQxNTowNDoyNi4yODhaIiwidXBkYXRlZEF0IjoiMjAyNC0wOC0wMVQxMjozMjoyNC42MDBaIiwiX192IjowLCJpYXQiOjE3MjI1MTU2NDksImV4cCI6MTcyMzM3OTY0OX0.5lHbfuUTx81bbPuj31fAGvFdlTY-icBUndk3J2DbjKc\"\n}"},{"id":"b2a836e2-e389-44c3-84ed-fda6e2ef3417","name":"Invalid OTP","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"otp\": \"2022\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/verify-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"36"},{"key":"ETag","value":"W/\"24-7ImyVMQpKxZnysGEZ8gv0nBKnO8\""},{"key":"Date","value":"Thu, 01 Aug 2024 12:09:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid or expired OTP\"\n}"},{"id":"e496572b-0788-4b5b-955d-f3d9abf5aba5","name":"Invalid Input","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/verify-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"29"},{"key":"ETag","value":"W/\"1d-FCj1uBBJsXhKSKeu7SdmzGpoDRQ\""},{"key":"Date","value":"Sat, 03 Aug 2024 10:54:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"OTP is required\"\n}"}],"_postman_id":"8100e50c-1dee-41d2-96e2-10bd0d72691b"},{"name":"Resend OTP","id":"3c1be0ca-85d5-47df-8713-3c8b60f3abc3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/resend-otp","description":"<p>Can be used both for login and reset password</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","resend-otp"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"a1e3158f-f27d-4a49-82e0-251e0f089eb3","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/resend-otp"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"35"},{"key":"ETag","value":"W/\"23-3bzyxkbWNow4CJ4h61FE45r/N/s\""},{"key":"Date","value":"Thu, 01 Aug 2024 12:44:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"OTP Sent Successfully\"\n}"}],"_postman_id":"3c1be0ca-85d5-47df-8713-3c8b60f3abc3"},{"name":"Reset Password","id":"70f6d810-6d97-434c-a5c5-ec15ef18559a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/reset-password","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","reset-password"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"24c51905-baf0-4106-af87-610327b04ae6","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/reset-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-zQTA3AvLxuoLCyfKu+9u/gIpTYw\""},{"key":"Date","value":"Thu, 01 Aug 2024 12:52:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Reset password request successful\"\n}"}],"_postman_id":"70f6d810-6d97-434c-a5c5-ec15ef18559a"},{"name":"Reset Passsword Update","id":"f7a7df13-68a7-4618-8f14-bdb4b02d49b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"newPassword\": \"123456\",\r\n    \"otp\": \"362547\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/reset-password/update","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","reset-password","update"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"628d7114-d7db-4e27-aae4-8b9d8cb50b13","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"newPassword\": \"12345\",\r\n    \"otp\": \"c18ffc\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/reset-password/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-1leFLxO9pvRJ4B0CZIygDRcnOKs\""},{"key":"Date","value":"Thu, 01 Aug 2024 13:10:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Password updated successfully\"\n}"},{"id":"d1213fea-ba41-4539-8642-a41ef1dc3b44","name":"Invalid OTP","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"newPassword\": \"12345\",\r\n    \"otp\": \"c04252\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/reset-password/update"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"34"},{"key":"ETag","value":"W/\"22-Xz4hrueBLs6CkmZTltGK8R1IP7M\""},{"key":"Date","value":"Thu, 01 Aug 2024 13:05:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid email or OTP\"\n}"}],"_postman_id":"f7a7df13-68a7-4618-8f14-bdb4b02d49b3"}],"id":"7e2c36e7-1e6b-43e7-a9c2-16440ebada1c","description":"<p>On login, an OTP is sent to the user. That's the otp to be used in verify OTP</p>\n","_postman_id":"7e2c36e7-1e6b-43e7-a9c2-16440ebada1c","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}},{"name":"Profile","item":[{"name":"View Profile","id":"abe0c975-4523-4c9e-812d-238704736cd3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/admin/profile","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","profile"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"241522f0-9629-4fd4-b416-eff86fd5acea","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/admin/profile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"296"},{"key":"ETag","value":"W/\"128-goW4UJKTkEXeMMW/swt6SlFGIWk\""},{"key":"Date","value":"Sat, 03 Aug 2024 10:55:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Profile retrieved\",\n    \"admin\": {\n        \"_id\": \"66aa527afbf9b75a648af3ea\",\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"ogbekagolden@gmail.com\",\n        \"phoneNumber\": \"08169200454\",\n        \"active\": true,\n        \"role\": \"superAdmin\",\n        \"createdAt\": \"2024-07-31T15:04:26.288Z\",\n        \"updatedAt\": \"2024-08-03T10:49:34.883Z\",\n        \"__v\": 0\n    }\n}"},{"id":"b16d4898-eae5-41da-b138-46dbd57e187d","name":"No Auth Token","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text","disabled":true}],"url":"{{API_URL}}/admin/profile"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-+CHRU97c7KhvZikQIAC3p2XXw84\""},{"key":"Date","value":"Sat, 03 Aug 2024 10:55:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized. Login to continue\"\n}"}],"_postman_id":"abe0c975-4523-4c9e-812d-238704736cd3"},{"name":"Update Profile","id":"30feff9a-a378-410f-b45c-c7d0c1f51357","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"phoneNumber\": \"08104637415\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/profile/update","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","profile","update"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"d4dc3a7b-7fb0-4edd-a367-f4b599e01861","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"phoneNumber\": \"08104637415\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/profile/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"335"},{"key":"ETag","value":"W/\"14f-HWUgdwhan8JbpQv/eX4If3r3WIk\""},{"key":"Date","value":"Sat, 03 Aug 2024 11:04:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Profile updated successfully\",\n    \"admin\": {\n        \"_id\": \"66aa527afbf9b75a648af3ea\",\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"ogbekagolden@gmail.com\",\n        \"phoneNumber\": \"08104637415\",\n        \"active\": true,\n        \"role\": \"superAdmin\",\n        \"createdAt\": \"2024-07-31T15:04:26.288Z\",\n        \"updatedAt\": \"2024-08-03T11:04:07.470Z\",\n        \"__v\": 0,\n        \"updatedBy\": \"Golden Ogbeka\"\n    }\n}"},{"id":"4e0730c2-a5a6-4a9d-8905-6c83dc2e35f8","name":"No Auth Token","originalRequest":{"method":"PATCH","header":[],"url":"{{API_URL}}/admin/profile/update"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-+CHRU97c7KhvZikQIAC3p2XXw84\""},{"key":"Date","value":"Sat, 03 Aug 2024 10:58:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized. Login to continue\"\n}"},{"id":"a50cf08b-52a5-4ab2-a4d5-1cb4f0f928fa","name":"Invalid Input","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/admin/profile/update"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"44"},{"key":"ETag","value":"W/\"2c-umNl4LpHi6lS6ll15oIAcP6ip9Q\""},{"key":"Date","value":"Sat, 03 Aug 2024 11:02:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Please enter a value to update\"\n}"}],"_postman_id":"30feff9a-a378-410f-b45c-c7d0c1f51357"}],"id":"951785f3-7d93-43e0-a905-e81cda7068ac","_postman_id":"951785f3-7d93-43e0-a905-e81cda7068ac","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}},{"name":"Admin Operations","item":[{"name":"Add Admin","id":"8066775c-1b2b-4f37-870c-e108aaa52841","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"password\": \"123456\",\r\n    \"firstName\": \"Golden\",\r\n    \"lastName\": \"Ogbeka\",\r\n    \"phoneNumber\": \"08169200454\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/create","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","create"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"310a0215-d7bb-43d6-b5be-df03417f6e66","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"password\": \"123456\",\r\n    \"firstName\": \"Golden\",\r\n    \"lastName\": \"Ogbeka\",\r\n    \"phoneNumber\": \"08169200454\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"300"},{"key":"ETag","value":"W/\"12c-eJFpT43tZIDAUFW3OQu5447M0X0\""},{"key":"Date","value":"Wed, 31 Jul 2024 15:04:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Admin created successfully\",\n    \"admin\": {\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"ogbekagolden@gmail.com\",\n        \"phoneNumber\": \"08169200454\",\n        \"active\": true,\n        \"role\": \"admin\",\n        \"_id\": \"66aa527afbf9b75a648af3ea\",\n        \"createdAt\": \"2024-07-31T15:04:26.288Z\",\n        \"updatedAt\": \"2024-07-31T15:04:26.288Z\",\n        \"__v\": 0\n    }\n}"},{"id":"56d2648f-df62-46dc-951f-5fb332d533ec","name":"Input Failure","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"password\": \"123456\",\r\n    \"firstName\": \"Golden\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/admin/create","host":["{{API_URL}}"],"path":["admin","create"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"231"},{"key":"ETag","value":"W/\"e7-bi95kXnkp0HZLWi8KNE+PXN8wHc\""},{"key":"Date","value":"Wed, 31 Jul 2024 15:06:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": [\n        {\n            \"type\": \"field\",\n            \"value\": \"\",\n            \"msg\": \"Last name is required\",\n            \"path\": \"lastName\",\n            \"location\": \"body\"\n        },\n        {\n            \"type\": \"field\",\n            \"value\": \"\",\n            \"msg\": \"Phone number is required\",\n            \"path\": \"phoneNumber\",\n            \"location\": \"body\"\n        }\n    ],\n    \"message\": \"Invalid Input\"\n}"},{"id":"04cade7c-1f21-45b7-8c69-7912e932733a","name":"Email Failure","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"password\": \"123456\",\r\n    \"firstName\": \"Golden\",\r\n    \"lastName\": \"Ogbeka\",\r\n    \"phoneNumber\": \"08169200454\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/admin/create","host":["{{API_URL}}"],"path":["admin","create"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"34"},{"key":"ETag","value":"W/\"22-ioB/NQUGICKsS3Wt1BJEMwe7Lng\""},{"key":"Date","value":"Wed, 31 Jul 2024 15:08:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Admin already exists\"\n}"}],"_postman_id":"8066775c-1b2b-4f37-870c-e108aaa52841"},{"name":"View All Admins","id":"e0120e89-5bd9-4a47-b273-4b8de164d82b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/all?page=1&limit=10","description":"<p>Both admins and SuperAdmins can use this API. However the results are different. Super admins can view all the admins and super admins while admins can only see fellow admins.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","all"],"host":["{{API_URL}}"],"query":[{"description":{"content":"<p>Pagination details are also contained in the return object (Page is required)</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Default is 20</p>\n","type":"text/plain"},"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"68dc1b70-e240-4c6c-9df2-36417faba868","name":"Success with Page Filters","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/all?page=1&limit=10","host":["{{API_URL}}"],"path":["admin","all"],"query":[{"key":"page","value":"1","description":"Pagination details are also contained in the return object (Page is required)"},{"key":"limit","value":"10","description":"Default is 20"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"515"},{"key":"ETag","value":"W/\"203-5SZ75mb31MXDgDMHagVE7ToFmOg\""},{"key":"Date","value":"Tue, 06 Aug 2024 16:10:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"All Admins Retrieved\",\n    \"admins\": {\n        \"results\": [\n            {\n                \"_id\": \"66aa527afbf9b75a648af3ea\",\n                \"firstName\": \"Golden\",\n                \"lastName\": \"Ogbeka\",\n                \"email\": \"ogbekagolden@gmail.com\",\n                \"phoneNumber\": \"08104637415\",\n                \"active\": true,\n                \"role\": \"superAdmin\",\n                \"createdAt\": \"2024-07-31T15:04:26.288Z\",\n                \"updatedAt\": \"2024-08-03T11:04:07.470Z\",\n                \"__v\": 0,\n                \"updatedBy\": \"Golden Ogbeka\"\n            }\n        ],\n        \"pagination\": {\n            \"totalResults\": 1,\n            \"resultsPerPage\": 10,\n            \"totalPages\": 1,\n            \"currentPage\": 1,\n            \"pagingCounter\": 1,\n            \"hasPrevPage\": false,\n            \"hasNextPage\": false,\n            \"prevPage\": null,\n            \"nextPage\": null\n        }\n    }\n}"},{"id":"00dd3912-38c0-4a0d-a526-36c9c8e1369a","name":"Failure when page is not specified","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/all?limit=10","host":["{{API_URL}}"],"path":["admin","all"],"query":[{"key":"page","value":"1","description":"Pagination details are also contained in the return object (Page is required)","disabled":true},{"key":"limit","value":"10","description":"Default is 20"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"35"},{"key":"ETag","value":"W/\"23-pbe3P3WGXP3P1zL7/R2Irf4r/48\""},{"key":"Date","value":"Tue, 06 Aug 2024 16:13:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Please specify a page\"\n}"}],"_postman_id":"e0120e89-5bd9-4a47-b273-4b8de164d82b"},{"name":"View All Admins by Status","id":"ab488131-dd20-4d49-ae67-21447d3f8d48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/all?page=1&limit=10","description":"<p>active is a boolean. Either true or false</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","all"],"host":["{{API_URL}}"],"query":[{"description":{"content":"<p>Pagination details are also contained in the return object (Page is required)</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Default is 20</p>\n","type":"text/plain"},"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"5f67d6a7-ca12-4fa2-a6dc-b81a149cabc8","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/admin/all?page=1&limit=10","host":["{{API_URL}}"],"path":["admin","all"],"query":[{"key":"page","value":"1","description":"Pagination details are also contained in the return object (Page is required)"},{"key":"limit","value":"10","description":"Default is 20"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"515"},{"key":"ETag","value":"W/\"203-5SZ75mb31MXDgDMHagVE7ToFmOg\""},{"key":"Date","value":"Tue, 06 Aug 2024 16:41:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"All Admins Retrieved\",\n    \"admins\": {\n        \"results\": [\n            {\n                \"_id\": \"66aa527afbf9b75a648af3ea\",\n                \"firstName\": \"Golden\",\n                \"lastName\": \"Ogbeka\",\n                \"email\": \"ogbekagolden@gmail.com\",\n                \"phoneNumber\": \"08104637415\",\n                \"active\": true,\n                \"role\": \"superAdmin\",\n                \"createdAt\": \"2024-07-31T15:04:26.288Z\",\n                \"updatedAt\": \"2024-08-03T11:04:07.470Z\",\n                \"__v\": 0,\n                \"updatedBy\": \"Golden Ogbeka\"\n            }\n        ],\n        \"pagination\": {\n            \"totalResults\": 1,\n            \"resultsPerPage\": 10,\n            \"totalPages\": 1,\n            \"currentPage\": 1,\n            \"pagingCounter\": 1,\n            \"hasPrevPage\": false,\n            \"hasNextPage\": false,\n            \"prevPage\": null,\n            \"nextPage\": null\n        }\n    }\n}"},{"id":"bbb7c8a3-0263-4a0c-9c64-7cc3246cea94","name":"Failure with invalid active field","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"active\": \"2\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/admin/all?page=1&limit=10","host":["{{API_URL}}"],"path":["admin","all"],"query":[{"key":"page","value":"1","description":"Pagination details are also contained in the return object (Page is required)"},{"key":"limit","value":"10","description":"Default is 20"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"55"},{"key":"ETag","value":"W/\"37-pV0NkDY0LnRviMWsgahqotN054Q\""},{"key":"Date","value":"Tue, 06 Aug 2024 16:39:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Active status can either be true or false\"\n}"}],"_postman_id":"ab488131-dd20-4d49-ae67-21447d3f8d48"},{"name":"View Single Admin","id":"41822cdb-3c72-4f7b-a217-d4ee82762809","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/admin/view/:id","description":"<p>Only a super admin can view another super admin with this api.</p>\n<p>Admins can only view fellow admins</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","view",":id"],"host":["{{API_URL}}"],"query":[],"variable":[{"id":"c983d082-7ba1-4ada-bb5f-89bb9dcefbd5","type":"any","value":"66aa527afbf9b75a648af3ea","key":"id"}]}},"response":[{"id":"2338556d-c724-43b1-9354-b35d9abdf736","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/view/:id","host":["{{API_URL}}"],"path":["admin","view",":id"],"variable":[{"key":"id","value":"66aa527afbf9b75a648af3ea"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"322"},{"key":"ETag","value":"W/\"142-4FRc1WoqqDZ7DCYt92h8q4PZit4\""},{"key":"Date","value":"Tue, 06 Aug 2024 16:46:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Admin retrieved\",\n    \"admin\": {\n        \"_id\": \"66aa527afbf9b75a648af3ea\",\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"ogbekagolden@gmail.com\",\n        \"phoneNumber\": \"08104637415\",\n        \"active\": true,\n        \"role\": \"superAdmin\",\n        \"createdAt\": \"2024-07-31T15:04:26.288Z\",\n        \"updatedAt\": \"2024-08-03T11:04:07.470Z\",\n        \"__v\": 0,\n        \"updatedBy\": \"Golden Ogbeka\"\n    }\n}"},{"id":"72162462-ef71-4876-8a48-7a12ed93482f","name":"Failure with Invalid ID","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/view/:id","host":["{{API_URL}}"],"path":["admin","view",":id"],"variable":[{"key":"id","value":"66aa527afbf9b75a648af3e"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"24"},{"key":"ETag","value":"W/\"18-j2Fde3ODa6w48Y2Ql6YgCprDEx8\""},{"key":"Date","value":"Tue, 06 Aug 2024 16:45:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid ID\"\n}"},{"id":"705a027c-394f-4340-a110-cae2a6ecebcf","name":"Failure with an ID that doesnt exist","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/view/:id","host":["{{API_URL}}"],"path":["admin","view",":id"],"variable":[{"key":"id","value":"66aa527afbf9b75a648af3eb"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"27"},{"key":"ETag","value":"W/\"1b-iXbo4hyuYET/lDeYSfP7OCCSolU\""},{"key":"Date","value":"Tue, 06 Aug 2024 16:46:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid Admin\"\n}"}],"_postman_id":"41822cdb-3c72-4f7b-a217-d4ee82762809"},{"name":"Update Admin","id":"fa42506d-392c-492a-a52d-72b67ace780c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"phoneNumber\": \"08104637445\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/update/:id","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","update",":id"],"host":["{{API_URL}}"],"query":[],"variable":[{"id":"bf0f3be9-f4de-464d-898b-8e8f3a54089d","type":"any","value":"66b2550d36fa680d4a68b61e","key":"id"}]}},"response":[{"id":"b9654400-8979-44bb-a5c5-679260b67fac","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"phoneNumber\": \"08104637445\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/admin/update/:id","host":["{{API_URL}}"],"path":["admin","update",":id"],"variable":[{"key":"id","value":"66b2550d36fa680d4a68b61e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"356"},{"key":"ETag","value":"W/\"164-R+e5CCd29lCWT30fuf94TOLt31U\""},{"key":"Date","value":"Tue, 06 Aug 2024 17:05:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Admin updated successfully\",\n    \"admin\": {\n        \"_id\": \"66b2550d36fa680d4a68b61e\",\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"goldenogbeka@gmail.com\",\n        \"phoneNumber\": \"08104637445\",\n        \"active\": true,\n        \"role\": \"admin\",\n        \"createdBy\": \"Golden Ogbeka\",\n        \"createdAt\": \"2024-08-06T16:53:33.747Z\",\n        \"updatedAt\": \"2024-08-06T17:03:57.405Z\",\n        \"__v\": 0,\n        \"updatedBy\": \"Golden Ogbeka\"\n    }\n}"}],"_postman_id":"fa42506d-392c-492a-a52d-72b67ace780c"},{"name":"Change Admin Role","id":"71101072-baf3-4b88-86c9-12d22e52afe9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"role\": \"superAdmin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/role/:id","description":"<p>Only Super Admins can change other people's roles.<br />Role can either be admin or superAdmin</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","role",":id"],"host":["{{API_URL}}"],"query":[],"variable":[{"id":"b54e998c-cab3-4648-bf65-70a18ee18e65","type":"any","value":"66b2550d36fa680d4a68b61e","key":"id"}]}},"response":[{"id":"601d842f-0a9a-4f1d-865d-381c00cecf9e","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"role\": \"superAdmin\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/admin/role/:id","host":["{{API_URL}}"],"path":["admin","role",":id"],"variable":[{"key":"id","value":"66b2550d36fa680d4a68b61e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"361"},{"key":"ETag","value":"W/\"169-vrpajhLjIjBAqq32T+Fp7/7+xeg\""},{"key":"Date","value":"Tue, 06 Aug 2024 17:29:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Admin updated successfully\",\n    \"admin\": {\n        \"_id\": \"66b2550d36fa680d4a68b61e\",\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"goldenogbeka@gmail.com\",\n        \"phoneNumber\": \"08104637445\",\n        \"active\": true,\n        \"role\": \"superAdmin\",\n        \"createdBy\": \"Golden Ogbeka\",\n        \"createdAt\": \"2024-08-06T16:53:33.747Z\",\n        \"updatedAt\": \"2024-08-06T17:29:20.259Z\",\n        \"__v\": 0,\n        \"updatedBy\": \"Golden Ogbeka\"\n    }\n}"},{"id":"58d981ea-93f1-4963-a921-7da93a358f33","name":"Failed with invalid role","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"role\": \"08104637415\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/admin/role/:id","host":["{{API_URL}}"],"path":["admin","role",":id"],"variable":[{"key":"id","value":"66b2550d36fa680d4a68b61e"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"52"},{"key":"ETag","value":"W/\"34-mUR9B6gEEfEWqFVryr0VitRCAmQ\""},{"key":"Date","value":"Tue, 06 Aug 2024 17:27:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Role can either be admin or superAdmin\"\n}"}],"_postman_id":"71101072-baf3-4b88-86c9-12d22e52afe9"},{"name":"Change Admin Status","id":"bbd02f77-2727-4190-90e9-1fffd66f0c96","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/status/:id","description":"<p>Only Super Admins can change other people's roles.<br />Role can either be admin or superAdmin</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","status",":id"],"host":["{{API_URL}}"],"query":[],"variable":[{"id":"c75e3e16-f9b8-4832-8159-43e51fcc898c","type":"any","value":"66b2550d36fa680d4a68b61e","key":"id"}]}},"response":[{"id":"d9189787-9486-44a0-81f5-9b5eef1ba848","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/admin/status/:id","host":["{{API_URL}}"],"path":["admin","status",":id"],"variable":[{"key":"id","value":"66b2550d36fa680d4a68b61e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"361"},{"key":"ETag","value":"W/\"169-vrpajhLjIjBAqq32T+Fp7/7+xeg\""},{"key":"Date","value":"Tue, 06 Aug 2024 17:34:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Admin updated successfully\",\n    \"admin\": {\n        \"_id\": \"66b2550d36fa680d4a68b61e\",\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"goldenogbeka@gmail.com\",\n        \"phoneNumber\": \"08104637445\",\n        \"active\": true,\n        \"role\": \"superAdmin\",\n        \"createdBy\": \"Golden Ogbeka\",\n        \"createdAt\": \"2024-08-06T16:53:33.747Z\",\n        \"updatedAt\": \"2024-08-06T17:29:20.259Z\",\n        \"__v\": 0,\n        \"updatedBy\": \"Golden Ogbeka\"\n    }\n}"}],"_postman_id":"bbd02f77-2727-4190-90e9-1fffd66f0c96"}],"id":"a6bffb53-6708-47e5-9185-80b1c80c1095","event":[{"listen":"prerequest","script":{"id":"beb6e9cd-609a-46b9-b2e0-9ba911a0d726","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"42c13bb9-4b44-44fa-b615-8c555155c2da","type":"text/javascript","packages":{},"exec":[""]}}],"_postman_id":"a6bffb53-6708-47e5-9185-80b1c80c1095","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}},{"name":"User Operations","item":[{"name":"Get All Users","id":"f11c7d72-41b4-4f96-af47-fe811d404cf1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/user/all?page=1","description":"<p>Limited to only super admins</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","user","all"],"host":["{{API_URL}}"],"query":[{"key":"page","value":"1"},{"disabled":true,"key":"from","value":"2024-08-07"},{"disabled":true,"description":{"content":"<p>The end date should be one day after the day you want to see the results</p>\n","type":"text/plain"},"key":"to","value":"2024-08-09"}],"variable":[]}},"response":[{"id":"42805f05-eca7-4212-93b6-e5063c9adce3","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/user/all?page=1","host":["{{API_URL}}"],"path":["admin","user","all"],"query":[{"key":"page","value":"1"},{"key":"from","value":"2024-08-07","type":"text","disabled":true},{"key":"to","value":"2024-08-09","description":"The end date should be one day after the day you want to see the results","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3434"},{"key":"ETag","value":"W/\"d6a-gpBUDpO23z9Yd03kvfEXwbORBf0\""},{"key":"Date","value":"Fri, 18 Oct 2024 19:56:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"All Users Retrieved\",\n    \"users\": {\n        \"results\": [\n            {\n                \"_id\": \"671257e3973fcd7192f5e67c\",\n                \"firstName\": \"Golden\",\n                \"lastName\": \"Ogbeka\",\n                \"email\": \"ogbekagolden5@gmail.com\",\n                \"phoneNumber\": \"+2348169200134\",\n                \"ntfToken\": \"\",\n                \"active\": true,\n                \"isVerified\": false,\n                \"skillLevel\": \"1\",\n                \"skillLevelSet\": false,\n                \"allowedDistance\": 20,\n                \"preferredPlayType\": \"singles\",\n                \"address\": \"\",\n                \"signupType\": \"normal\",\n                \"createdAt\": \"2024-10-18T12:43:15.966Z\",\n                \"updatedAt\": \"2024-10-18T12:53:16.486Z\",\n                \"__v\": 1,\n                \"id\": \"671257e3973fcd7192f5e67c\"\n            },\n            {\n                \"_id\": \"67124e0d31775b5034769179\",\n                \"firstName\": \"Golden\",\n                \"lastName\": \"Ogbeka\",\n                \"email\": \"ogbekagolden4@gmail.com\",\n                \"phoneNumber\": \"+2348169200434\",\n                \"ntfToken\": \"\",\n                \"active\": true,\n                \"isVerified\": false,\n                \"skillLevel\": \"1\",\n                \"skillLevelSet\": false,\n                \"allowedDistance\": 20,\n                \"preferredPlayType\": \"singles\",\n                \"address\": \"\",\n                \"signupType\": \"normal\",\n                \"createdAt\": \"2024-10-18T12:01:17.338Z\",\n                \"updatedAt\": \"2024-10-18T12:11:18.174Z\",\n                \"__v\": 0,\n                \"id\": \"67124e0d31775b5034769179\"\n            },\n            {\n                \"_id\": \"671241465471cfb0e605bec8\",\n                \"firstName\": \"Golden\",\n                \"lastName\": \"Ogbeka\",\n                \"email\": \"ogbekagolden3@gmail.com\",\n                \"phoneNumber\": \"+2348169200414\",\n                \"ntfToken\": \"\",\n                \"active\": true,\n                \"isVerified\": true,\n                \"skillLevel\": \"2.5\",\n                \"skillLevelSet\": true,\n                \"allowedDistance\": 10,\n                \"preferredPlayType\": \"singles\",\n                \"address\": \"Alagbole Market, Alagbole - Akute Road, Lagos, Nigeria\",\n                \"signupType\": \"normal\",\n                \"createdAt\": \"2024-10-18T11:06:46.432Z\",\n                \"updatedAt\": \"2024-10-18T13:25:21.576Z\",\n                \"__v\": 3,\n                \"dateOfBirth\": \"2001-08-07T00:00:00.000Z\",\n                \"gender\": \"Male\",\n                \"geographicLocation\": [\n                    6.6646692,\n                    3.3527495\n                ],\n                \"id\": \"671241465471cfb0e605bec8\"\n            },\n            {\n                \"_id\": \"67123bac00af27a00903622a\",\n                \"firstName\": \"Golden\",\n                \"lastName\": \"Ogbeka\",\n                \"email\": \"ogbekagolden2@gmail.com\",\n                \"phoneNumber\": \"+2348169200451\",\n                \"ntfToken\": \"\",\n                \"active\": true,\n                \"isVerified\": true,\n                \"skillLevel\": \"1\",\n                \"skillLevelSet\": false,\n                \"allowedDistance\": 10,\n                \"preferredPlayType\": \"singles\",\n                \"address\": \"Alagbole bridge, Alagbole - Akute Road, Lagos, Nigeria\",\n                \"signupType\": \"normal\",\n                \"createdAt\": \"2024-10-18T10:42:52.120Z\",\n                \"updatedAt\": \"2024-10-18T11:03:05.449Z\",\n                \"__v\": 2,\n                \"geographicLocation\": [\n                    6.6572404,\n                    3.3542805\n                ],\n                \"dateOfBirth\": \"2001-08-07T00:00:00.000Z\",\n                \"gender\": \"Male\",\n                \"id\": \"67123bac00af27a00903622a\"\n            },\n            {\n                \"_id\": \"66fe4dc0d88da79221ad9dab\",\n                \"firstName\": \"Golden\",\n                \"lastName\": \"Ogbeka\",\n                \"email\": \"goldenogbeka@gmail.com\",\n                \"phoneNumber\": \"\",\n                \"ntfToken\": \"\",\n                \"active\": true,\n                \"isVerified\": true,\n                \"skillLevel\": \"1\",\n                \"skillLevelSet\": false,\n                \"allowedDistance\": 10,\n                \"preferredPlayType\": \"singles\",\n                \"address\": \"\",\n                \"profileImage\": \"https://lh3.googleusercontent.com/a/ACg8ocIeNacbP1lm6cstcURZ44cJoJnYeic-FM3ScP54YV3cva8lzQ=s100\",\n                \"createdAt\": \"2024-10-03T07:54:41.009Z\",\n                \"updatedAt\": \"2024-10-03T08:19:02.351Z\",\n                \"__v\": 0,\n                \"signupType\": \"google\",\n                \"id\": \"66fe4dc0d88da79221ad9dab\"\n            },\n            {\n                \"signupType\": \"normal\",\n                \"_id\": \"66bf47b339f14426b71a3819\",\n                \"firstName\": \"Golden\",\n                \"lastName\": \"Ogbeka\",\n                \"email\": \"ogbekagolden@gmail.com\",\n                \"phoneNumber\": \"+2348169200454\",\n                \"ntfToken\": \"\",\n                \"active\": true,\n                \"isVerified\": true,\n                \"createdAt\": \"2024-08-16T12:36:03.462Z\",\n                \"updatedAt\": \"2024-09-04T18:25:16.687Z\",\n                \"__v\": 2,\n                \"address\": \"Alagbole bridge, Alagbole - Akute Road, Lagos, Nigeria\",\n                \"allowedDistance\": 10,\n                \"geographicLocation\": [\n                    6.6572404,\n                    3.3542805\n                ],\n                \"preferredPlayType\": \"singles\",\n                \"skillLevel\": \"4\",\n                \"skillLevelSet\": true,\n                \"profileImage\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1724104352/Tennis%20Slide/xeqtcjd6aea8r0bdodi4.jpg\",\n                \"id\": \"66bf47b339f14426b71a3819\"\n            }\n        ],\n        \"pagination\": {\n            \"totalResults\": 6,\n            \"resultsPerPage\": 20,\n            \"totalPages\": 1,\n            \"currentPage\": 1,\n            \"pagingCounter\": 1,\n            \"hasPrevPage\": false,\n            \"hasNextPage\": false,\n            \"prevPage\": null,\n            \"nextPage\": null\n        }\n    }\n}"}],"_postman_id":"f11c7d72-41b4-4f96-af47-fe811d404cf1"},{"name":"View User","id":"94f3110f-5fba-453f-949b-684ecf64a8ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/admin/user/view/:id","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","user","view",":id"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"671257e3973fcd7192f5e67c","key":"id"}]}},"response":[{"id":"c51e8215-e4a1-4fc2-9068-4b1dd705328a","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/user/view/:id","host":["{{API_URL}}"],"path":["admin","user","view",":id"],"variable":[{"key":"id","value":"671257e3973fcd7192f5e67c"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"466"},{"key":"ETag","value":"W/\"1d2-uT4QFWPv2VkaLnphUkefxMvoGMk\""},{"key":"Date","value":"Fri, 18 Oct 2024 19:56:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User retrieved\",\n    \"user\": {\n        \"_id\": \"671257e3973fcd7192f5e67c\",\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"ogbekagolden5@gmail.com\",\n        \"phoneNumber\": \"+2348169200134\",\n        \"ntfToken\": \"\",\n        \"active\": true,\n        \"isVerified\": false,\n        \"skillLevel\": \"1\",\n        \"skillLevelSet\": false,\n        \"allowedDistance\": 20,\n        \"preferredPlayType\": \"singles\",\n        \"address\": \"\",\n        \"signupType\": \"normal\",\n        \"createdAt\": \"2024-10-18T12:43:15.966Z\",\n        \"updatedAt\": \"2024-10-18T12:53:16.486Z\",\n        \"__v\": 1,\n        \"id\": \"671257e3973fcd7192f5e67c\"\n    }\n}"}],"_postman_id":"94f3110f-5fba-453f-949b-684ecf64a8ab"}],"id":"acbcf85e-1ed4-4bff-a3f3-2c885ae1ca5d","_postman_id":"acbcf85e-1ed4-4bff-a3f3-2c885ae1ca5d","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}},{"name":"Feedback","item":[{"name":"Get All Feedback","id":"3bb4b63d-c61a-4fa5-b503-d82d1c53b0ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/admin/feedback/all?page=1","description":"<p>Date Filters are enabled and are optional.<br />Fields are:</p>\n<ul>\n<li><p>From (Start Date)</p>\n</li>\n<li><p>To (End Date)</p>\n</li>\n</ul>\n<p>Date format expected is: YYYY-MM-DD.<br />Example:2024-08-07</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","feedback","all"],"host":["{{API_URL}}"],"query":[{"key":"page","value":"1"},{"disabled":true,"key":"from","value":"2024-08-07"},{"disabled":true,"description":{"content":"<p>The end date should be one day after the day you want to see the results</p>\n","type":"text/plain"},"key":"to","value":"2024-08-09"}],"variable":[]}},"response":[{"id":"4c0e8196-e228-4a1d-a903-004f65523479","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/feedback/all?page=1","host":["{{API_URL}}"],"path":["admin","feedback","all"],"query":[{"key":"page","value":"1"},{"key":"from","value":"2024-08-07","disabled":true},{"key":"to","value":"2024-08-09","description":"The end date should be one day after the day you want to see the results","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"482"},{"key":"ETag","value":"W/\"1e2-oNmxTKqgyRY/0FB7cgVzoTmd62c\""},{"key":"Date","value":"Tue, 03 Sep 2024 16:08:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Feedback Retrieved\",\n    \"feedback\": {\n        \"results\": [\n            {\n                \"_id\": \"66d734700ecec26484c31cff\",\n                \"fullName\": \"Golden Ogbeka\",\n                \"email\": \"ogbekagolden@gmail.com\",\n                \"phoneNumber\": \"+2348169200454\",\n                \"subject\": \"Test\",\n                \"message\": \"Test Again\",\n                \"createdAt\": \"2024-09-03T16:08:16.915Z\",\n                \"updatedAt\": \"2024-09-03T16:08:16.915Z\",\n                \"__v\": 0\n            }\n        ],\n        \"pagination\": {\n            \"totalResults\": 1,\n            \"resultsPerPage\": 20,\n            \"totalPages\": 1,\n            \"currentPage\": 1,\n            \"pagingCounter\": 1,\n            \"hasPrevPage\": false,\n            \"hasNextPage\": false,\n            \"prevPage\": null,\n            \"nextPage\": null\n        }\n    }\n}"},{"id":"92fc34d9-6240-4c85-960e-91e7a3c3e255","name":"Success with date filter","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/feedback/all?page=1&from=2024-08-07","host":["{{API_URL}}"],"path":["admin","feedback","all"],"query":[{"key":"page","value":"1"},{"key":"from","value":"2024-08-07"},{"key":"to","value":"2024-08-09","description":"The end date should be one day after the day you want to see the results","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"482"},{"key":"ETag","value":"W/\"1e2-oNmxTKqgyRY/0FB7cgVzoTmd62c\""},{"key":"Date","value":"Tue, 03 Sep 2024 16:09:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Feedback Retrieved\",\n    \"feedback\": {\n        \"results\": [\n            {\n                \"_id\": \"66d734700ecec26484c31cff\",\n                \"fullName\": \"Golden Ogbeka\",\n                \"email\": \"ogbekagolden@gmail.com\",\n                \"phoneNumber\": \"+2348169200454\",\n                \"subject\": \"Test\",\n                \"message\": \"Test Again\",\n                \"createdAt\": \"2024-09-03T16:08:16.915Z\",\n                \"updatedAt\": \"2024-09-03T16:08:16.915Z\",\n                \"__v\": 0\n            }\n        ],\n        \"pagination\": {\n            \"totalResults\": 1,\n            \"resultsPerPage\": 20,\n            \"totalPages\": 1,\n            \"currentPage\": 1,\n            \"pagingCounter\": 1,\n            \"hasPrevPage\": false,\n            \"hasNextPage\": false,\n            \"prevPage\": null,\n            \"nextPage\": null\n        }\n    }\n}"}],"_postman_id":"3bb4b63d-c61a-4fa5-b503-d82d1c53b0ae"},{"name":"View Single Feedback","id":"a5107c1d-d280-4cf4-9da3-1befa6eced44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/admin/feedback/view/:id","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","feedback","view",":id"],"host":["{{API_URL}}"],"query":[],"variable":[{"id":"2bfffde0-f818-4958-80c9-03f0f33f79b7","type":"any","value":"66b4c6ab4765f3121a2b939f","key":"id"}]}},"response":[{"id":"88e2f2a8-9245-4a13-91c2-ceed532232b0","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/feedback/view/:id","host":["{{API_URL}}"],"path":["admin","feedback","view",":id"],"variable":[{"key":"id","value":"66b4c6ab4765f3121a2b939f"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"278"},{"key":"ETag","value":"W/\"116-FuV4tTYcoIbIoG/uJaDFyDTYJj4\""},{"key":"Date","value":"Thu, 08 Aug 2024 15:06:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Feedback retrieved\",\n    \"feedback\": {\n        \"_id\": \"66b4c6ab4765f3121a2b939f\",\n        \"fullName\": \"Golden Ogbeka\",\n        \"email\": \"ogbekagolden@gmail.com\",\n        \"phoneNumber\": \"+2348169200454\",\n        \"message\": \"Test Again\",\n        \"createdAt\": \"2024-08-08T13:22:51.162Z\",\n        \"updatedAt\": \"2024-08-08T13:22:51.162Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"a5107c1d-d280-4cf4-9da3-1befa6eced44"},{"name":"Delete Feedback","id":"fa6b417d-68e9-404d-bfe1-93805307e018","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/admin/feedback/remove/:id","description":"<p>For Super Admins only</p>\n<p>Response is an empty body with status 204</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","feedback","remove",":id"],"host":["{{API_URL}}"],"query":[],"variable":[{"id":"c52b85c9-1bd1-44a9-91eb-e6ecf0904482","type":"any","value":"66b4de9d3d98ce3ad03809dd","key":"id"}]}},"response":[{"id":"ff24f961-bda1-43ed-b450-f0353b6dcd2c","name":"Delete Feedback","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/feedback/remove/:id","host":["{{API_URL}}"],"path":["admin","feedback","remove",":id"],"variable":[{"key":"id","value":"66b4de9d3d98ce3ad03809dd"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"ETag","value":"W/\"1e-7+MonM7tt1fms4tsvf7HOlGG4CI\""},{"key":"Date","value":"Thu, 08 Aug 2024 15:08:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"fa6b417d-68e9-404d-bfe1-93805307e018"}],"id":"bda76ea6-4d0d-4935-aa4b-47fd7927e0a0","description":"<p>Data received from contact us page</p>\n","_postman_id":"bda76ea6-4d0d-4935-aa4b-47fd7927e0a0","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}},{"name":"Addresses","item":[{"name":"Get Addresses","id":"7bb535b7-bdc6-4817-b0c5-920159ab42a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{API_URL}}/address?address=Alternative Route, Off, Lekki, Chevron Dr, Aja, Lagos","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["address"],"host":["{{API_URL}}"],"query":[{"key":"address","value":"Alternative Route, Off, Lekki, Chevron Dr, Aja, Lagos"}],"variable":[]}},"response":[{"id":"9f714092-9c62-4272-b3b5-163ef3f1d450","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{API_URL}}/address?address=Alternative Route, Off, Lekki, Chevron Dr, Aja, Lagos","host":["{{API_URL}}"],"path":["address"],"query":[{"key":"address","value":"Alternative Route, Off, Lekki, Chevron Dr, Aja, Lagos"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"493"},{"key":"ETag","value":"W/\"1ed-6IQXBUsGBJ61tHEHgyhJMFforE0\""},{"key":"Date","value":"Mon, 19 Aug 2024 18:38:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Addresses retrieved\",\n    \"addresses\": [\n        {\n            \"address\": \"Chevron Drive, Lagos, Nigeria\",\n            \"id\": \"Eh1DaGV2cm9uIERyaXZlLCBMYWdvcywgTmlnZXJpYSIuKiwKFAoSCT_uHJDv9jsQEQAzIYrd_dR5EhQKEgnBgILmKos7EBHL2cNno4ee3A\"\n        },\n        {\n            \"address\": \"Alternative Route & Chevron Dr, Lekki, Lagos, Nigeria\",\n            \"id\": \"EjVBbHRlcm5hdGl2ZSBSb3V0ZSAmIENoZXZyb24gRHIsIExla2tpLCBMYWdvcywgTmlnZXJpYSJmImQKFAoSCSEVoKD69jsQEbfTSdMhU8FHEhQKEgkhFaCg-vY7EBG300nTIVPBRxoUChIJAfWfoPr2OxAR2WzROyvYICYaFAoSCT_uHJDv9jsQEQAzIYrd_dR5IgoNltnXAxU4vRoC\"\n        }\n    ]\n}"}],"_postman_id":"7bb535b7-bdc6-4817-b0c5-920159ab42a3"}],"id":"0bf8537b-7829-4107-9c99-9e137062b4ca","description":"<p>This uses the google autocomplete API to retrieve similar addresses so the frontend can get the user's address and specific geolocation details</p>\n","_postman_id":"0bf8537b-7829-4107-9c99-9e137062b4ca","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}},{"name":"Season Game","item":[{"name":"Create Season Game","id":"704d4bb8-fd11-4817-8910-7c3ce3b79641","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"gameImage","type":"file","src":"postman-cloud:///1ef5ef56-7507-47e0-9e3e-c7d6648817cc"},{"key":"title","value":"2024 Adult summer Doubles","type":"text"},{"key":"description","value":"Play this Summer with fellow passionate tennis enthusiasts","type":"text"},{"key":"playType","value":"doubles","type":"text"},{"key":"numberOfGames","value":"5","type":"text"},{"key":"registrationCost","value":"50","type":"text"},{"key":"startDate","value":"2024-09-21","type":"text"},{"key":"endDate","value":"2025-03-21","type":"text"},{"key":"time","value":"5pm","type":"text"},{"key":"venue","value":"Chevron Drive, Lagos, Nigeria","type":"text"}]},"url":"{{API_URL}}/admin/season-game/new","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","season-game","new"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"8576d0a0-9de7-4e6d-90cc-076d3dbfd384","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"gameImage","type":"file","src":"postman-cloud:///1ef5ef56-7507-47e0-9e3e-c7d6648817cc"},{"key":"title","value":"2024 Adult summer singles","type":"text"},{"key":"description","value":"Play this Summer with fellow passionate tennis enthusiasts","type":"text"},{"key":"playType","value":"singles","type":"text"},{"key":"numberOfGames","value":"5","type":"text"},{"key":"registrationCost","value":"50","type":"text"},{"key":"startDate","value":"2024-09-21","type":"text"},{"key":"endDate","value":"2025-09-21","type":"text"},{"key":"time","value":"5pm","type":"text"},{"key":"venue","value":"Chevron Drive, Lagos, Nigeria","type":"text"}]},"url":"{{API_URL}}/admin/season-game/new"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"725"},{"key":"ETag","value":"W/\"2d5-iCSbVvQDmjN4DRJkf/ekK4zYE4A\""},{"key":"Date","value":"Tue, 10 Sep 2024 15:09:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Season game created successfully\",\n    \"seasonGame\": {\n        \"title\": \"2024 Adult summer singles\",\n        \"description\": \"Play this Summer with fellow passionate tennis enthusiasts\",\n        \"playType\": \"singles\",\n        \"numberOfGames\": 5,\n        \"poster\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1725980994/Tennis%20Slide/zbqausz5zmo0gojq4nid.jpg\",\n        \"registrationCost\": 50,\n        \"startDate\": \"2024-09-21T00:00:00.000Z\",\n        \"endDate\": \"2025-09-21T00:00:00.000Z\",\n        \"time\": \"5pm\",\n        \"venue\": \"Chevron Drive, Lagos, Nigeria\",\n        \"geographicLocation\": [\n            6.4498157,\n            3.5306693\n        ],\n        \"active\": true,\n        \"createdBy\": \"66b2667624010cf2ede80777\",\n        \"_id\": \"66e0614274ec456938143cab\",\n        \"createdAt\": \"2024-09-10T15:09:54.586Z\",\n        \"updatedAt\": \"2024-09-10T15:09:54.586Z\",\n        \"__v\": 0,\n        \"id\": \"66e0614274ec456938143cab\"\n    }\n}"}],"_postman_id":"704d4bb8-fd11-4817-8910-7c3ce3b79641"},{"name":"Get all Season games","id":"88423fa5-3bb0-4999-bfa4-a2a3e44d8a59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"active\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/season-game/all?page=1","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","season-game","all"],"host":["{{API_URL}}"],"query":[{"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"296027e5-28d3-4e07-b610-6cffcbf3f41c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/season-game/all?page=1","host":["{{API_URL}}"],"path":["admin","season-game","all"],"query":[{"key":"page","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1566"},{"key":"ETag","value":"W/\"61e-YJj67dsnqCE6DoZPr7QgQeywTH4\""},{"key":"Date","value":"Tue, 10 Sep 2024 16:44:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"All Games Retrieved\",\n    \"seasonGames\": {\n        \"results\": [\n            {\n                \"_id\": \"66e0631495f4cd68a0ba66b2\",\n                \"title\": \"2024 Adult summer Doubles\",\n                \"description\": \"Play this Summer with fellow passionate tennis enthusiasts\",\n                \"playType\": \"doubles\",\n                \"numberOfGames\": 5,\n                \"poster\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1725981460/Tennis%20Slide/scpfyfr3hbi4cbaxtsky.jpg\",\n                \"registrationCost\": 50,\n                \"startDate\": \"2024-09-21T00:00:00.000Z\",\n                \"endDate\": \"2025-03-21T00:00:00.000Z\",\n                \"time\": \"5pm\",\n                \"venue\": \"Chevron Drive, Lagos, Nigeria\",\n                \"geographicLocation\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"active\": true,\n                \"createdBy\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2024-09-10T15:17:40.520Z\",\n                \"updatedAt\": \"2024-09-10T15:17:40.520Z\",\n                \"__v\": 0,\n                \"id\": \"66e0631495f4cd68a0ba66b2\"\n            },\n            {\n                \"_id\": \"66e0614274ec456938143cab\",\n                \"title\": \"2024 Adult summer singles\",\n                \"description\": \"Play this Summer with fellow passionate tennis enthusiasts\",\n                \"playType\": \"singles\",\n                \"numberOfGames\": 5,\n                \"poster\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1725980994/Tennis%20Slide/zbqausz5zmo0gojq4nid.jpg\",\n                \"registrationCost\": 50,\n                \"startDate\": \"2024-09-21T00:00:00.000Z\",\n                \"endDate\": \"2025-09-21T00:00:00.000Z\",\n                \"time\": \"5pm\",\n                \"venue\": \"Chevron Drive, Lagos, Nigeria\",\n                \"geographicLocation\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"active\": true,\n                \"createdBy\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2024-09-10T15:09:54.586Z\",\n                \"updatedAt\": \"2024-09-10T15:09:54.586Z\",\n                \"__v\": 0,\n                \"id\": \"66e0614274ec456938143cab\"\n            }\n        ],\n        \"pagination\": {\n            \"totalResults\": 2,\n            \"resultsPerPage\": 20,\n            \"totalPages\": 1,\n            \"currentPage\": 1,\n            \"pagingCounter\": 1,\n            \"hasPrevPage\": false,\n            \"hasNextPage\": false,\n            \"prevPage\": null,\n            \"nextPage\": null\n        }\n    }\n}"},{"id":"df04ec8e-5c2c-452c-8c25-b7166f8ae91e","name":"Inactive Season Games","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"active\": false\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/admin/season-game/all?page=1","host":["{{API_URL}}"],"path":["admin","season-game","all"],"query":[{"key":"page","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"940"},{"key":"ETag","value":"W/\"3ac-m89CyG/2RwXvYO5mnEbcrdxmQCQ\""},{"key":"Date","value":"Tue, 10 Sep 2024 16:49:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"All Games Retrieved\",\n    \"seasonGames\": {\n        \"results\": [\n            {\n                \"_id\": \"66e0631495f4cd68a0ba66b2\",\n                \"title\": \"2024 Adult summer doubles\",\n                \"description\": \"Play this Summer with fellow passionate tennis enthusiasts\",\n                \"playType\": \"doubles\",\n                \"numberOfGames\": 5,\n                \"poster\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1725986825/Tennis%20Slide/jffdxitrcdq8neusywau.jpg\",\n                \"registrationCost\": 50,\n                \"startDate\": \"2024-09-21T00:00:00.000Z\",\n                \"endDate\": \"2025-03-21T00:00:00.000Z\",\n                \"time\": \"5pm\",\n                \"venue\": \"Chevron Drive, Lagos, Nigeria\",\n                \"geographicLocation\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"active\": false,\n                \"createdBy\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2024-09-10T15:17:40.520Z\",\n                \"updatedAt\": \"2024-09-10T16:49:13.101Z\",\n                \"__v\": 0,\n                \"updatedBy\": \"66b2667624010cf2ede80777\",\n                \"id\": \"66e0631495f4cd68a0ba66b2\"\n            }\n        ],\n        \"pagination\": {\n            \"totalResults\": 1,\n            \"resultsPerPage\": 20,\n            \"totalPages\": 1,\n            \"currentPage\": 1,\n            \"pagingCounter\": 1,\n            \"hasPrevPage\": false,\n            \"hasNextPage\": false,\n            \"prevPage\": null,\n            \"nextPage\": null\n        }\n    }\n}"}],"_postman_id":"88423fa5-3bb0-4999-bfa4-a2a3e44d8a59"},{"name":"View Single Season Game","id":"03c1001e-d166-468d-ad41-1c1865ff8942","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/admin/season-game/view/:id","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","season-game","view",":id"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"66e0631495f4cd68a0ba66b2","key":"id"}]}},"response":[{"id":"8be1f10e-3f55-427e-ba5f-9c0b76b2bb73","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/season-game/view/:id","host":["{{API_URL}}"],"path":["admin","season-game","view",":id"],"variable":[{"key":"id","value":"66e0631495f4cd68a0ba66b2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"714"},{"key":"ETag","value":"W/\"2ca-iefpHWlG21bgjqouRn0Hm75scIU\""},{"key":"Date","value":"Tue, 10 Sep 2024 16:45:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Season game retrieved\",\n    \"seasonGame\": {\n        \"_id\": \"66e0631495f4cd68a0ba66b2\",\n        \"title\": \"2024 Adult summer Doubles\",\n        \"description\": \"Play this Summer with fellow passionate tennis enthusiasts\",\n        \"playType\": \"doubles\",\n        \"numberOfGames\": 5,\n        \"poster\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1725981460/Tennis%20Slide/scpfyfr3hbi4cbaxtsky.jpg\",\n        \"registrationCost\": 50,\n        \"startDate\": \"2024-09-21T00:00:00.000Z\",\n        \"endDate\": \"2025-03-21T00:00:00.000Z\",\n        \"time\": \"5pm\",\n        \"venue\": \"Chevron Drive, Lagos, Nigeria\",\n        \"geographicLocation\": [\n            6.4498157,\n            3.5306693\n        ],\n        \"active\": true,\n        \"createdBy\": \"66b2667624010cf2ede80777\",\n        \"createdAt\": \"2024-09-10T15:17:40.520Z\",\n        \"updatedAt\": \"2024-09-10T15:17:40.520Z\",\n        \"__v\": 0,\n        \"id\": \"66e0631495f4cd68a0ba66b2\"\n    }\n}"}],"_postman_id":"03c1001e-d166-468d-ad41-1c1865ff8942"},{"name":"Update Season Game","id":"973ffa0f-6657-43da-8307-083e568c20dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"gameImage","type":"file","description":"<p>Optional - Only attach a file when the want to update the image as well</p>\n","src":"postman-cloud:///1ef5ef56-7507-47e0-9e3e-c7d6648817cc","disabled":true},{"key":"title","value":"2024 Adult summer doubles","type":"text"},{"key":"description","value":"Play this Summer with fellow passionate tennis enthusiasts","type":"text"},{"key":"playType","value":"doubles","type":"text"},{"key":"numberOfGames","value":"5","type":"text"},{"key":"registrationCost","value":"50","type":"text"},{"key":"startDate","value":"2024-09-21","type":"text"},{"key":"endDate","value":"2025-03-21","type":"text"},{"key":"time","value":"5pm","type":"text"},{"key":"venue","value":"Chevron Drive, Lagos, Nigeria","type":"text"}]},"url":"{{API_URL}}/admin/season-game/update/:id","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","season-game","update",":id"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"66e0631495f4cd68a0ba66b2","key":"id"}]}},"response":[{"id":"aa38674c-9e62-474e-b5de-ace355115ec5","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"gameImage","type":"file","description":"Optional - Only attach a file when the want to update the image as well","src":"postman-cloud:///1ef5ef56-7507-47e0-9e3e-c7d6648817cc","disabled":true},{"key":"title","value":"2024 Adult summer doubles","type":"text"},{"key":"description","value":"Play this Summer with fellow passionate tennis enthusiasts","type":"text"},{"key":"playType","value":"doubles","type":"text"},{"key":"numberOfGames","value":"5","type":"text"},{"key":"registrationCost","value":"50","type":"text"},{"key":"startDate","value":"2024-09-21","type":"text"},{"key":"endDate","value":"2025-03-21","type":"text"},{"key":"time","value":"5pm","type":"text"},{"key":"venue","value":"Chevron Drive, Lagos, Nigeria","type":"text"}]},"url":{"raw":"{{API_URL}}/admin/season-game/update/:id","host":["{{API_URL}}"],"path":["admin","season-game","update",":id"],"variable":[{"key":"id","value":"66e0631495f4cd68a0ba66b2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"764"},{"key":"ETag","value":"W/\"2fc-NUBpK9AVkSeg4GkmaW7HH/Hosis\""},{"key":"Date","value":"Tue, 10 Sep 2024 16:47:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Season game updated successfully\",\n    \"seasonGame\": {\n        \"_id\": \"66e0631495f4cd68a0ba66b2\",\n        \"title\": \"2024 Adult summer doubles\",\n        \"description\": \"Play this Summer with fellow passionate tennis enthusiasts\",\n        \"playType\": \"doubles\",\n        \"numberOfGames\": 5,\n        \"poster\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1725986825/Tennis%20Slide/jffdxitrcdq8neusywau.jpg\",\n        \"registrationCost\": 50,\n        \"startDate\": \"2024-09-21T00:00:00.000Z\",\n        \"endDate\": \"2025-03-21T00:00:00.000Z\",\n        \"time\": \"5pm\",\n        \"venue\": \"Chevron Drive, Lagos, Nigeria\",\n        \"geographicLocation\": [\n            6.4498157,\n            3.5306693\n        ],\n        \"active\": true,\n        \"createdBy\": \"66b2667624010cf2ede80777\",\n        \"createdAt\": \"2024-09-10T15:17:40.520Z\",\n        \"updatedAt\": \"2024-09-10T16:47:05.708Z\",\n        \"__v\": 0,\n        \"updatedBy\": \"66b2667624010cf2ede80777\",\n        \"id\": \"66e0631495f4cd68a0ba66b2\"\n    }\n}"}],"_postman_id":"973ffa0f-6657-43da-8307-083e568c20dc"},{"name":"Change Season Game State","id":"f690661f-2e6e-49de-878a-db99a1618d3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"active\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/season-game/status/:id","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","season-game","status",":id"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"66e0631495f4cd68a0ba66b2","key":"id"}]}},"response":[{"id":"ef32baa6-04a4-41e9-a7d7-339f015ba408","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"active\": false\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/admin/season-game/status/:id","host":["{{API_URL}}"],"path":["admin","season-game","status",":id"],"variable":[{"key":"id","value":"66e0631495f4cd68a0ba66b2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"765"},{"key":"ETag","value":"W/\"2fd-Bdi49CNtEKFsjT/a51eyr/hywJE\""},{"key":"Date","value":"Tue, 10 Sep 2024 16:49:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Season game updated successfully\",\n    \"seasonGame\": {\n        \"_id\": \"66e0631495f4cd68a0ba66b2\",\n        \"title\": \"2024 Adult summer doubles\",\n        \"description\": \"Play this Summer with fellow passionate tennis enthusiasts\",\n        \"playType\": \"doubles\",\n        \"numberOfGames\": 5,\n        \"poster\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1725986825/Tennis%20Slide/jffdxitrcdq8neusywau.jpg\",\n        \"registrationCost\": 50,\n        \"startDate\": \"2024-09-21T00:00:00.000Z\",\n        \"endDate\": \"2025-03-21T00:00:00.000Z\",\n        \"time\": \"5pm\",\n        \"venue\": \"Chevron Drive, Lagos, Nigeria\",\n        \"geographicLocation\": [\n            6.4498157,\n            3.5306693\n        ],\n        \"active\": false,\n        \"createdBy\": \"66b2667624010cf2ede80777\",\n        \"createdAt\": \"2024-09-10T15:17:40.520Z\",\n        \"updatedAt\": \"2024-09-10T16:49:13.101Z\",\n        \"__v\": 0,\n        \"updatedBy\": \"66b2667624010cf2ede80777\",\n        \"id\": \"66e0631495f4cd68a0ba66b2\"\n    }\n}"}],"_postman_id":"f690661f-2e6e-49de-878a-db99a1618d3e"},{"name":"View Season Game registrations","id":"937b635e-fe8b-4732-b63f-cc03309091ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/admin/season-game/registrations?page=1","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","season-game","registrations"],"host":["{{API_URL}}"],"query":[{"key":"page","value":"1"},{"disabled":true,"key":"limit","value":"2"},{"disabled":true,"key":"from","value":"2024-10-18"},{"disabled":true,"key":"to","value":"2024-10-19"},{"disabled":true,"description":{"content":"<p>completed or pending</p>\n","type":"text/plain"},"key":"status","value":"pending"}],"variable":[]}},"response":[{"id":"f22313cb-f383-47ab-a674-c6242ad69eb4","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/season-game/registrations?page=1","host":["{{API_URL}}"],"path":["admin","season-game","registrations"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"2","type":"text","disabled":true},{"key":"from","value":"2024-10-18","type":"text","disabled":true},{"key":"to","value":"2024-10-19","type":"text","disabled":true},{"key":"status","value":"pending","description":"completed or pending","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1404"},{"key":"ETag","value":"W/\"57c-hvvH455OknQvw3Qb/4Qa1upyhOo\""},{"key":"Date","value":"Fri, 18 Oct 2024 18:16:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registrations Retrieved\",\n    \"registrations\": {\n        \"results\": [\n            {\n                \"_id\": \"6712653fbdb8e78e34a17637\",\n                \"userId\": \"671241465471cfb0e605bec8\",\n                \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n                \"paymentId\": \"6712653fbdb8e78e34a17635\",\n                \"status\": \"completed\",\n                \"createdAt\": \"2024-10-18T13:40:15.956Z\",\n                \"updatedAt\": \"2024-10-18T13:40:27.499Z\",\n                \"__v\": 0,\n                \"id\": \"6712653fbdb8e78e34a17637\"\n            },\n            {\n                \"_id\": \"671243a455241cceee9ba49a\",\n                \"userId\": \"66bf47b339f14426b71a3819\",\n                \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n                \"paymentId\": \"671243a455241cceee9ba498\",\n                \"status\": \"completed\",\n                \"createdAt\": \"2024-10-18T11:16:52.484Z\",\n                \"updatedAt\": \"2024-10-18T11:17:10.035Z\",\n                \"__v\": 0,\n                \"id\": \"671243a455241cceee9ba49a\"\n            },\n            {\n                \"_id\": \"67123c0300af27a009036233\",\n                \"userId\": \"67123bac00af27a00903622a\",\n                \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n                \"paymentId\": \"67123c0300af27a009036231\",\n                \"status\": \"completed\",\n                \"createdAt\": \"2024-10-18T10:44:20.000Z\",\n                \"updatedAt\": \"2024-10-18T11:03:25.682Z\",\n                \"__v\": 0,\n                \"id\": \"67123c0300af27a009036233\"\n            },\n            {\n                \"_id\": \"66fe53d81c7a86b0f0f658b2\",\n                \"userId\": \"66fe4dc0d88da79221ad9dab\",\n                \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n                \"paymentId\": \"66fe53d81c7a86b0f0f658b0\",\n                \"status\": \"completed\",\n                \"createdAt\": \"2024-10-03T08:20:40.523Z\",\n                \"updatedAt\": \"2024-10-03T08:59:40.895Z\",\n                \"__v\": 0,\n                \"id\": \"66fe53d81c7a86b0f0f658b2\"\n            }\n        ],\n        \"pagination\": {\n            \"totalResults\": 4,\n            \"resultsPerPage\": 20,\n            \"totalPages\": 1,\n            \"currentPage\": 1,\n            \"pagingCounter\": 1,\n            \"hasPrevPage\": false,\n            \"hasNextPage\": false,\n            \"prevPage\": null,\n            \"nextPage\": null\n        }\n    }\n}"}],"_postman_id":"937b635e-fe8b-4732-b63f-cc03309091ce"},{"name":"View Registration Details","id":"b5b1fbd9-9939-40b9-892b-33be14c8a11e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/admin/season-game/registration/:registrationId","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","season-game","registration",":registrationId"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"6712653fbdb8e78e34a17637","key":"registrationId"}]}},"response":[{"id":"300744b8-d760-44f3-b7c4-2da54622dca3","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/season-game/registration/:registrationId","host":["{{API_URL}}"],"path":["admin","season-game","registration",":registrationId"],"variable":[{"key":"registrationId","value":"6712653fbdb8e78e34a17637"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2007"},{"key":"ETag","value":"W/\"7d7-Sq42aDUxShr+YIhlf5ouCJAsbDk\""},{"key":"Date","value":"Fri, 18 Oct 2024 18:27:40 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registration info retrieved\",\n    \"registration\": {\n        \"_id\": \"6712653fbdb8e78e34a17637\",\n        \"userId\": \"671241465471cfb0e605bec8\",\n        \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n        \"paymentId\": \"6712653fbdb8e78e34a17635\",\n        \"status\": \"completed\",\n        \"createdAt\": \"2024-10-18T13:40:15.956Z\",\n        \"updatedAt\": \"2024-10-18T13:40:27.499Z\",\n        \"__v\": 0,\n        \"userDetails\": {\n            \"_id\": \"671241465471cfb0e605bec8\",\n            \"firstName\": \"Golden\",\n            \"lastName\": \"Ogbeka\",\n            \"email\": \"ogbekagolden3@gmail.com\",\n            \"phoneNumber\": \"+2348169200414\",\n            \"ntfToken\": \"\",\n            \"active\": true,\n            \"isVerified\": true,\n            \"skillLevel\": \"2.5\",\n            \"skillLevelSet\": true,\n            \"allowedDistance\": 10,\n            \"preferredPlayType\": \"singles\",\n            \"address\": \"Alagbole Market, Alagbole - Akute Road, Lagos, Nigeria\",\n            \"signupType\": \"normal\",\n            \"createdAt\": \"2024-10-18T11:06:46.432Z\",\n            \"updatedAt\": \"2024-10-18T13:25:21.576Z\",\n            \"__v\": 3,\n            \"dateOfBirth\": \"2001-08-07T00:00:00.000Z\",\n            \"gender\": \"Male\",\n            \"geographicLocation\": [\n                6.6646692,\n                3.3527495\n            ],\n            \"id\": \"671241465471cfb0e605bec8\"\n        },\n        \"seasonGameDetails\": {\n            \"_id\": \"66e0631495f4cd68a0ba66b2\",\n            \"title\": \"2024 Adult summer doubles\",\n            \"description\": \"Play this Summer with fellow passionate tennis enthusiasts\",\n            \"playType\": \"doubles\",\n            \"numberOfGames\": 5,\n            \"poster\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1725986825/Tennis%20Slide/jffdxitrcdq8neusywau.jpg\",\n            \"registrationCost\": 50,\n            \"startDate\": \"2024-09-21T00:00:00.000Z\",\n            \"endDate\": \"2025-03-21T00:00:00.000Z\",\n            \"time\": \"5pm\",\n            \"venue\": \"Chevron Drive, Lagos, Nigeria\",\n            \"geographicLocation\": [\n                6.4498157,\n                3.5306693\n            ],\n            \"active\": true,\n            \"createdBy\": \"66b2667624010cf2ede80777\",\n            \"createdAt\": \"2024-09-10T15:17:40.520Z\",\n            \"updatedAt\": \"2024-09-10T16:49:13.101Z\",\n            \"__v\": 0,\n            \"updatedBy\": \"66b2667624010cf2ede80777\",\n            \"id\": \"66e0631495f4cd68a0ba66b2\"\n        },\n        \"paymentDetails\": {\n            \"_id\": \"6712653fbdb8e78e34a17635\",\n            \"userId\": \"671241465471cfb0e605bec8\",\n            \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n            \"status\": \"completed\",\n            \"paymentMethod\": \"\",\n            \"createdAt\": \"2024-10-18T13:40:15.693Z\",\n            \"updatedAt\": \"2024-10-18T13:40:27.221Z\",\n            \"__v\": 0,\n            \"paymentChannel\": \"\",\n            \"paymentReference\": \"#fffd1\",\n            \"id\": \"6712653fbdb8e78e34a17635\"\n        },\n        \"id\": \"6712653fbdb8e78e34a17637\"\n    }\n}"}],"_postman_id":"b5b1fbd9-9939-40b9-892b-33be14c8a11e"},{"name":"View Season Game payments","id":"65ca470d-5d9d-4144-a3f0-a3b55b143bb2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/admin/season-game/payments?page=1","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","season-game","payments"],"host":["{{API_URL}}"],"query":[{"key":"page","value":"1"},{"disabled":true,"key":"limit","value":"2"},{"disabled":true,"key":"from","value":"2024-10-18"},{"disabled":true,"key":"to","value":"2024-10-19"},{"disabled":true,"description":{"content":"<p>completed, failed or pending</p>\n","type":"text/plain"},"key":"status","value":"pending"}],"variable":[]}},"response":[{"id":"45c85fa1-a6fd-48b8-98ab-1abfe07d182e","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/season-game/payments?page=1","host":["{{API_URL}}"],"path":["admin","season-game","payments"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"2","type":"text","disabled":true},{"key":"from","value":"2024-10-18","type":"text","disabled":true},{"key":"to","value":"2024-10-19","type":"text","disabled":true},{"key":"status","value":"pending","description":"completed, failed or pending","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1506"},{"key":"ETag","value":"W/\"5e2-V/7sPdUDMOROV4nC/34O7lyI3LU\""},{"key":"Date","value":"Fri, 18 Oct 2024 18:18:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Payments Retrieved\",\n    \"payments\": {\n        \"results\": [\n            {\n                \"_id\": \"6712653fbdb8e78e34a17635\",\n                \"userId\": \"671241465471cfb0e605bec8\",\n                \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n                \"status\": \"completed\",\n                \"paymentMethod\": \"\",\n                \"createdAt\": \"2024-10-18T13:40:15.693Z\",\n                \"updatedAt\": \"2024-10-18T13:40:27.221Z\",\n                \"__v\": 0,\n                \"paymentChannel\": \"\",\n                \"paymentReference\": \"#fffd1\",\n                \"id\": \"6712653fbdb8e78e34a17635\"\n            },\n            {\n                \"_id\": \"671243a455241cceee9ba498\",\n                \"userId\": \"66bf47b339f14426b71a3819\",\n                \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n                \"status\": \"completed\",\n                \"paymentMethod\": \"\",\n                \"createdAt\": \"2024-10-18T11:16:52.239Z\",\n                \"updatedAt\": \"2024-10-18T11:17:09.788Z\",\n                \"__v\": 0,\n                \"paymentChannel\": \"\",\n                \"paymentReference\": \"#fffd1\",\n                \"id\": \"671243a455241cceee9ba498\"\n            },\n            {\n                \"_id\": \"67123c0300af27a009036231\",\n                \"__v\": 0,\n                \"createdAt\": \"2024-10-18T11:03:25.429Z\",\n                \"paymentChannel\": \"\",\n                \"paymentMethod\": \"\",\n                \"paymentReference\": \"#fffd1\",\n                \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n                \"status\": \"completed\",\n                \"updatedAt\": \"2024-10-18T11:03:25.429Z\",\n                \"userId\": \"67123bac00af27a00903622a\",\n                \"id\": \"67123c0300af27a009036231\"\n            },\n            {\n                \"_id\": \"66fe53d81c7a86b0f0f658b0\",\n                \"userId\": \"66fe4dc0d88da79221ad9dab\",\n                \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n                \"status\": \"completed\",\n                \"paymentMethod\": \"\",\n                \"createdAt\": \"2024-10-03T08:20:40.300Z\",\n                \"updatedAt\": \"2024-10-03T08:59:40.649Z\",\n                \"__v\": 0,\n                \"paymentChannel\": \"\",\n                \"paymentReference\": \"#fffd1\",\n                \"id\": \"66fe53d81c7a86b0f0f658b0\"\n            }\n        ],\n        \"pagination\": {\n            \"totalResults\": 4,\n            \"resultsPerPage\": 20,\n            \"totalPages\": 1,\n            \"currentPage\": 1,\n            \"pagingCounter\": 1,\n            \"hasPrevPage\": false,\n            \"hasNextPage\": false,\n            \"prevPage\": null,\n            \"nextPage\": null\n        }\n    }\n}"}],"_postman_id":"65ca470d-5d9d-4144-a3f0-a3b55b143bb2"},{"name":"View payment details","id":"d2cabfd0-ef56-4a2b-8462-bdff3f4e6a1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/admin/season-game/payment/:paymentId","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","season-game","payment",":paymentId"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"6712653fbdb8e78e34a17635","key":"paymentId"}]}},"response":[{"id":"beaab6b6-c97c-494b-a373-b7562fa1e02f","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/season-game/payment/:paymentId","host":["{{API_URL}}"],"path":["admin","season-game","payment",":paymentId"],"variable":[{"key":"paymentId","value":"6712653fbdb8e78e34a17635"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1693"},{"key":"ETag","value":"W/\"69d-a7VjIjmPXhsp8A57s7K6+++7m3k\""},{"key":"Date","value":"Fri, 18 Oct 2024 18:41:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Payment details retrieved\",\n    \"schedule\": {\n        \"_id\": \"6712653fbdb8e78e34a17635\",\n        \"userId\": \"671241465471cfb0e605bec8\",\n        \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n        \"status\": \"completed\",\n        \"paymentMethod\": \"\",\n        \"createdAt\": \"2024-10-18T13:40:15.693Z\",\n        \"updatedAt\": \"2024-10-18T13:40:27.221Z\",\n        \"__v\": 0,\n        \"paymentChannel\": \"\",\n        \"paymentReference\": \"#fffd1\",\n        \"seasonGameDetails\": {\n            \"_id\": \"66e0631495f4cd68a0ba66b2\",\n            \"title\": \"2024 Adult summer doubles\",\n            \"description\": \"Play this Summer with fellow passionate tennis enthusiasts\",\n            \"playType\": \"doubles\",\n            \"numberOfGames\": 5,\n            \"poster\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1725986825/Tennis%20Slide/jffdxitrcdq8neusywau.jpg\",\n            \"registrationCost\": 50,\n            \"startDate\": \"2024-09-21T00:00:00.000Z\",\n            \"endDate\": \"2025-03-21T00:00:00.000Z\",\n            \"time\": \"5pm\",\n            \"venue\": \"Chevron Drive, Lagos, Nigeria\",\n            \"geographicLocation\": [\n                6.4498157,\n                3.5306693\n            ],\n            \"active\": true,\n            \"createdBy\": \"66b2667624010cf2ede80777\",\n            \"createdAt\": \"2024-09-10T15:17:40.520Z\",\n            \"updatedAt\": \"2024-09-10T16:49:13.101Z\",\n            \"__v\": 0,\n            \"updatedBy\": \"66b2667624010cf2ede80777\",\n            \"id\": \"66e0631495f4cd68a0ba66b2\"\n        },\n        \"userDetails\": {\n            \"_id\": \"671241465471cfb0e605bec8\",\n            \"firstName\": \"Golden\",\n            \"lastName\": \"Ogbeka\",\n            \"email\": \"ogbekagolden3@gmail.com\",\n            \"phoneNumber\": \"+2348169200414\",\n            \"ntfToken\": \"\",\n            \"active\": true,\n            \"isVerified\": true,\n            \"skillLevel\": \"2.5\",\n            \"skillLevelSet\": true,\n            \"allowedDistance\": 10,\n            \"preferredPlayType\": \"singles\",\n            \"address\": \"Alagbole Market, Alagbole - Akute Road, Lagos, Nigeria\",\n            \"signupType\": \"normal\",\n            \"createdAt\": \"2024-10-18T11:06:46.432Z\",\n            \"updatedAt\": \"2024-10-18T13:25:21.576Z\",\n            \"__v\": 3,\n            \"dateOfBirth\": \"2001-08-07T00:00:00.000Z\",\n            \"gender\": \"Male\",\n            \"geographicLocation\": [\n                6.6646692,\n                3.3527495\n            ],\n            \"id\": \"671241465471cfb0e605bec8\"\n        },\n        \"id\": \"6712653fbdb8e78e34a17635\"\n    }\n}"}],"_postman_id":"d2cabfd0-ef56-4a2b-8462-bdff3f4e6a1f"},{"name":"View Season Game schedules","id":"8a037dc7-7514-4e56-9e80-6bdd73475ec9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/admin/season-game/schedules?page=1","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","season-game","schedules"],"host":["{{API_URL}}"],"query":[{"key":"page","value":"1"},{"disabled":true,"key":"limit","value":"2"},{"disabled":true,"key":"from","value":"2024-10-18"},{"disabled":true,"key":"to","value":"2024-10-19"}],"variable":[]}},"response":[{"id":"6842cdd9-357e-4b3e-893a-11f0dde7b79a","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/season-game/schedules?page=1","host":["{{API_URL}}"],"path":["admin","season-game","schedules"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"2","type":"text","disabled":true},{"key":"from","value":"2024-10-18","type":"text","disabled":true},{"key":"to","value":"2024-10-19","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3145"},{"key":"ETag","value":"W/\"c49-DS3l73fu6MjEzDfPuhXSMQ3eWEE\""},{"key":"Date","value":"Fri, 18 Oct 2024 18:20:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Schedules Retrieved\",\n    \"schedules\": {\n        \"results\": [\n            {\n                \"_id\": \"6712654cbdb8e78e34a17644\",\n                \"userId\": \"671241465471cfb0e605bec8\",\n                \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n                \"geographicLocation\": [\n                    6.6646692,\n                    3.3527495\n                ],\n                \"skillLevel\": \"2.5\",\n                \"registrationId\": \"6712653fbdb8e78e34a17637\",\n                \"schedule\": [\n                    {\n                        \"date\": \"2024-10-05T00:00:00.000Z\",\n                        \"opponentId\": \"67123bac00af27a00903622a\",\n                        \"opponentName\": \"Golden Ogbeka\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": []\n                    },\n                    {\n                        \"opponentId\": \"*\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": []\n                    },\n                    {\n                        \"opponentId\": \"*\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": []\n                    },\n                    {\n                        \"opponentId\": \"*\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": []\n                    },\n                    {\n                        \"opponentId\": \"*\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": []\n                    }\n                ],\n                \"createdAt\": \"2024-10-18T13:40:28.474Z\",\n                \"updatedAt\": \"2024-10-18T13:40:28.474Z\",\n                \"__v\": 0,\n                \"id\": \"6712654cbdb8e78e34a17644\"\n            },\n            {\n                \"_id\": \"671243b655241cceee9ba4a9\",\n                \"userId\": \"66bf47b339f14426b71a3819\",\n                \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n                \"geographicLocation\": [\n                    6.6572404,\n                    3.3542805\n                ],\n                \"registrationId\": \"671243a455241cceee9ba49a\",\n                \"schedule\": [\n                    {\n                        \"opponentId\": \"*\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": []\n                    },\n                    {\n                        \"opponentId\": \"*\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": []\n                    },\n                    {\n                        \"opponentId\": \"*\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": []\n                    },\n                    {\n                        \"opponentId\": \"*\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": []\n                    },\n                    {\n                        \"opponentId\": \"*\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": []\n                    }\n                ],\n                \"createdAt\": \"2024-10-18T11:17:10.507Z\",\n                \"updatedAt\": \"2024-10-18T11:17:10.507Z\",\n                \"__v\": 0,\n                \"skillLevel\": \"5\",\n                \"id\": \"671243b655241cceee9ba4a9\"\n            },\n            {\n                \"_id\": \"6712407e5471cfb0e605bec0\",\n                \"userId\": \"67123bac00af27a00903622a\",\n                \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n                \"geographicLocation\": [\n                    6.6572404,\n                    3.3542805\n                ],\n                \"registrationId\": \"67123c0300af27a009036233\",\n                \"schedule\": [\n                    {\n                        \"opponentId\": \"671241465471cfb0e605bec8\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": [],\n                        \"date\": \"2024-09-28T00:00:00.000Z\",\n                        \"opponentName\": \"Golden Ogbeka\"\n                    },\n                    {\n                        \"opponentId\": \"671241465471cfb0e605bec8\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": [],\n                        \"date\": \"2024-09-28T00:00:00.000Z\",\n                        \"opponentName\": \"Golden Ogbeka\"\n                    },\n                    {\n                        \"opponentId\": \"671241465471cfb0e605bec8\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": [],\n                        \"date\": \"2024-10-05T00:00:00.000Z\",\n                        \"opponentName\": \"Golden Ogbeka\"\n                    },\n                    {\n                        \"opponentId\": \"*\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": []\n                    },\n                    {\n                        \"opponentId\": \"*\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": []\n                    }\n                ],\n                \"createdAt\": \"2024-10-18T11:03:26.194Z\",\n                \"updatedAt\": \"2024-10-18T13:40:28.227Z\",\n                \"__v\": 0,\n                \"skillLevel\": \"1\",\n                \"id\": \"6712407e5471cfb0e605bec0\"\n            }\n        ],\n        \"pagination\": {\n            \"totalResults\": 3,\n            \"resultsPerPage\": 20,\n            \"totalPages\": 1,\n            \"currentPage\": 1,\n            \"pagingCounter\": 1,\n            \"hasPrevPage\": false,\n            \"hasNextPage\": false,\n            \"prevPage\": null,\n            \"nextPage\": null\n        }\n    }\n}"}],"_postman_id":"8a037dc7-7514-4e56-9e80-6bdd73475ec9"},{"name":"View Schedule Details","id":"2fc338c7-3e3e-48c1-942f-e4e99b1afbac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/admin/season-game/schedule/:scheduleId","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","season-game","schedule",":scheduleId"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"6712654cbdb8e78e34a17644","key":"scheduleId"}]}},"response":[{"id":"49dbe5f9-0041-45bf-b298-878da808b1cf","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/season-game/schedule/:scheduleId","host":["{{API_URL}}"],"path":["admin","season-game","schedule",":scheduleId"],"variable":[{"key":"scheduleId","value":"6712654cbdb8e78e34a17644"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2743"},{"key":"ETag","value":"W/\"ab7-FO58yLuOKCzFYZhxQ+2Dh9A+gRY\""},{"key":"Date","value":"Fri, 18 Oct 2024 18:42:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Schedule retrieved\",\n    \"schedule\": {\n        \"_id\": \"6712654cbdb8e78e34a17644\",\n        \"userId\": \"671241465471cfb0e605bec8\",\n        \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n        \"geographicLocation\": [\n            6.6646692,\n            3.3527495\n        ],\n        \"skillLevel\": \"2.5\",\n        \"registrationId\": \"6712653fbdb8e78e34a17637\",\n        \"schedule\": [\n            {\n                \"date\": \"2024-10-05T00:00:00.000Z\",\n                \"opponentId\": \"67123bac00af27a00903622a\",\n                \"opponentName\": \"Golden Ogbeka\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": []\n            },\n            {\n                \"opponentId\": \"*\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": []\n            },\n            {\n                \"opponentId\": \"*\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": []\n            },\n            {\n                \"opponentId\": \"*\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": []\n            },\n            {\n                \"opponentId\": \"*\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": []\n            }\n        ],\n        \"createdAt\": \"2024-10-18T13:40:28.474Z\",\n        \"updatedAt\": \"2024-10-18T13:40:28.474Z\",\n        \"__v\": 0,\n        \"userDetails\": {\n            \"_id\": \"671241465471cfb0e605bec8\",\n            \"firstName\": \"Golden\",\n            \"lastName\": \"Ogbeka\",\n            \"email\": \"ogbekagolden3@gmail.com\",\n            \"phoneNumber\": \"+2348169200414\",\n            \"password\": \"$2a$08$mZFCTMgLJf.RAE1D6pDM/OgBNy1agFa/fzSXwwbDU8/LixKH76IIS\",\n            \"verificationCode\": \"3bbb1\",\n            \"ntfToken\": \"\",\n            \"active\": true,\n            \"isVerified\": true,\n            \"skillLevel\": {\n                \"$numberDecimal\": \"2.5\"\n            },\n            \"skillLevelSet\": true,\n            \"allowedDistance\": 10,\n            \"preferredPlayType\": \"singles\",\n            \"address\": \"Alagbole Market, Alagbole - Akute Road, Lagos, Nigeria\",\n            \"signupType\": \"normal\",\n            \"createdAt\": \"2024-10-18T11:06:46.432Z\",\n            \"updatedAt\": \"2024-10-18T13:25:21.576Z\",\n            \"__v\": 3,\n            \"dateOfBirth\": \"2001-08-07T00:00:00.000Z\",\n            \"gender\": \"Male\",\n            \"geographicLocation\": [\n                6.6646692,\n                3.3527495\n            ],\n            \"id\": \"671241465471cfb0e605bec8\"\n        },\n        \"seasonGameDetails\": {\n            \"_id\": \"66e0631495f4cd68a0ba66b2\",\n            \"title\": \"2024 Adult summer doubles\",\n            \"description\": \"Play this Summer with fellow passionate tennis enthusiasts\",\n            \"playType\": \"doubles\",\n            \"numberOfGames\": 5,\n            \"poster\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1725986825/Tennis%20Slide/jffdxitrcdq8neusywau.jpg\",\n            \"registrationCost\": 50,\n            \"startDate\": \"2024-09-21T00:00:00.000Z\",\n            \"endDate\": \"2025-03-21T00:00:00.000Z\",\n            \"time\": \"5pm\",\n            \"venue\": \"Chevron Drive, Lagos, Nigeria\",\n            \"geographicLocation\": [\n                6.4498157,\n                3.5306693\n            ],\n            \"active\": true,\n            \"createdBy\": \"66b2667624010cf2ede80777\",\n            \"createdAt\": \"2024-09-10T15:17:40.520Z\",\n            \"updatedAt\": \"2024-09-10T16:49:13.101Z\",\n            \"__v\": 0,\n            \"updatedBy\": \"66b2667624010cf2ede80777\",\n            \"id\": \"66e0631495f4cd68a0ba66b2\"\n        },\n        \"registrationDetails\": {\n            \"_id\": \"6712653fbdb8e78e34a17637\",\n            \"userId\": \"671241465471cfb0e605bec8\",\n            \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n            \"paymentId\": \"6712653fbdb8e78e34a17635\",\n            \"status\": \"completed\",\n            \"createdAt\": \"2024-10-18T13:40:15.956Z\",\n            \"updatedAt\": \"2024-10-18T13:40:27.499Z\",\n            \"__v\": 0,\n            \"id\": \"6712653fbdb8e78e34a17637\"\n        },\n        \"id\": \"6712654cbdb8e78e34a17644\"\n    }\n}"}],"_postman_id":"2fc338c7-3e3e-48c1-942f-e4e99b1afbac"},{"name":"View Season Game schedules for a user","id":"98b8af69-8ff2-401a-a9a9-3ae8f148a6a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userId\": \"66bf47b339f14426b71a3819\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/season-game/schedules/user?page=1","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","season-game","schedules","user"],"host":["{{API_URL}}"],"query":[{"key":"page","value":"1"},{"disabled":true,"key":"limit","value":"2"},{"disabled":true,"key":"from","value":"2024-10-18"},{"disabled":true,"key":"to","value":"2024-10-19"},{"disabled":true,"description":{"content":"<p>completed, failed or pending</p>\n","type":"text/plain"},"key":"status","value":"pending"}],"variable":[]}},"response":[{"id":"a3c217b9-ac6b-4fb9-bf2b-4602616630d2","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userId\": \"66bf47b339f14426b71a3819\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/admin/season-game/schedules/user?page=1","host":["{{API_URL}}"],"path":["admin","season-game","schedules","user"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"2","type":"text","disabled":true},{"key":"from","value":"2024-10-18","type":"text","disabled":true},{"key":"to","value":"2024-10-19","type":"text","disabled":true},{"key":"status","value":"pending","description":"completed, failed or pending","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1085"},{"key":"ETag","value":"W/\"43d-UqUe5GWl56F9/fu/Bas1lRP1drk\""},{"key":"Date","value":"Fri, 18 Oct 2024 18:22:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Schedules Retrieved\",\n    \"schedules\": {\n        \"results\": [\n            {\n                \"_id\": \"671243b655241cceee9ba4a9\",\n                \"userId\": \"66bf47b339f14426b71a3819\",\n                \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n                \"geographicLocation\": [\n                    6.6572404,\n                    3.3542805\n                ],\n                \"registrationId\": \"671243a455241cceee9ba49a\",\n                \"schedule\": [\n                    {\n                        \"opponentId\": \"*\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": []\n                    },\n                    {\n                        \"opponentId\": \"*\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": []\n                    },\n                    {\n                        \"opponentId\": \"*\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": []\n                    },\n                    {\n                        \"opponentId\": \"*\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": []\n                    },\n                    {\n                        \"opponentId\": \"*\",\n                        \"location\": [\n                            6.4498157,\n                            3.5306693\n                        ],\n                        \"time\": \"5pm\",\n                        \"scoreStatus\": \"pending\",\n                        \"scores\": []\n                    }\n                ],\n                \"createdAt\": \"2024-10-18T11:17:10.507Z\",\n                \"updatedAt\": \"2024-10-18T11:17:10.507Z\",\n                \"__v\": 0,\n                \"skillLevel\": \"5\",\n                \"id\": \"671243b655241cceee9ba4a9\"\n            }\n        ],\n        \"pagination\": {\n            \"totalResults\": 1,\n            \"resultsPerPage\": 20,\n            \"totalPages\": 1,\n            \"currentPage\": 1,\n            \"pagingCounter\": 1,\n            \"hasPrevPage\": false,\n            \"hasNextPage\": false,\n            \"prevPage\": null,\n            \"nextPage\": null\n        }\n    }\n}"}],"_postman_id":"98b8af69-8ff2-401a-a9a9-3ae8f148a6a6"},{"name":"Assign opponent to user's schedule","id":"d28e6cf8-f0dd-4343-920e-60b1bdf3c2bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"scheduleId\": \"6712654cbdb8e78e34a17644\",\r\n    \"opponentId\": \"67123bac00af27a00903622a\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/season-game/assign-opponent","description":"<h2 id=\"access-level-super-admin\">ACCESS LEVEL: SUPER ADMIN</h2>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","season-game","assign-opponent"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"b00310fb-2b65-4c45-a69a-687dd44d6f4c","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"scheduleId\": \"6712654cbdb8e78e34a17644\",\r\n    \"opponentId\": \"67123bac00af27a00903622a\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/season-game/assign-opponent"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2315"},{"key":"ETag","value":"W/\"90b-gieEewqN9wYGeYpSU8hy/E1pUK4\""},{"key":"Date","value":"Fri, 18 Oct 2024 19:22:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Opponent assigned to user\",\n    \"newUserSchedule\": {\n        \"_id\": \"6712654cbdb8e78e34a17644\",\n        \"userId\": \"671241465471cfb0e605bec8\",\n        \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n        \"geographicLocation\": [\n            6.6646692,\n            3.3527495\n        ],\n        \"skillLevel\": \"2.5\",\n        \"registrationId\": \"6712653fbdb8e78e34a17637\",\n        \"schedule\": [\n            {\n                \"date\": \"2024-10-05T00:00:00.000Z\",\n                \"opponentId\": \"67123bac00af27a00903622a\",\n                \"opponentName\": \"Golden Ogbeka\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": []\n            },\n            {\n                \"opponentId\": \"67123bac00af27a00903622a\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": [],\n                \"date\": \"2024-10-05T00:00:00.000Z\",\n                \"opponentName\": \"Golden Ogbeka\"\n            },\n            {\n                \"opponentId\": \"*\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": []\n            },\n            {\n                \"opponentId\": \"*\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": []\n            },\n            {\n                \"opponentId\": \"*\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": []\n            }\n        ],\n        \"createdAt\": \"2024-10-18T13:40:28.474Z\",\n        \"updatedAt\": \"2024-10-18T19:22:51.874Z\",\n        \"__v\": 0,\n        \"id\": \"6712654cbdb8e78e34a17644\"\n    },\n    \"newOpponentSchedule\": {\n        \"_id\": \"6712407e5471cfb0e605bec0\",\n        \"userId\": \"67123bac00af27a00903622a\",\n        \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n        \"geographicLocation\": [\n            6.6572404,\n            3.3542805\n        ],\n        \"registrationId\": \"67123c0300af27a009036233\",\n        \"schedule\": [\n            {\n                \"opponentId\": \"671241465471cfb0e605bec8\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": [],\n                \"date\": \"2024-09-28T00:00:00.000Z\",\n                \"opponentName\": \"Golden Ogbeka\"\n            },\n            {\n                \"opponentId\": \"671241465471cfb0e605bec8\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": [],\n                \"date\": \"2024-09-28T00:00:00.000Z\",\n                \"opponentName\": \"Golden Ogbeka\"\n            },\n            {\n                \"opponentId\": \"671241465471cfb0e605bec8\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": [],\n                \"date\": \"2024-10-05T00:00:00.000Z\",\n                \"opponentName\": \"Golden Ogbeka\"\n            },\n            {\n                \"opponentId\": \"671241465471cfb0e605bec8\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": [],\n                \"date\": \"2024-10-05T00:00:00.000Z\",\n                \"opponentName\": \"Golden Ogbeka\"\n            },\n            {\n                \"opponentId\": \"*\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": []\n            }\n        ],\n        \"createdAt\": \"2024-10-18T11:03:26.194Z\",\n        \"updatedAt\": \"2024-10-18T19:22:52.187Z\",\n        \"__v\": 0,\n        \"skillLevel\": \"1\",\n        \"id\": \"6712407e5471cfb0e605bec0\"\n    }\n}"}],"_postman_id":"d28e6cf8-f0dd-4343-920e-60b1bdf3c2bf"}],"id":"928059e3-faec-40a3-ae07-a937b151e4e4","_postman_id":"928059e3-faec-40a3-ae07-a937b151e4e4","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}},{"name":"Notification","item":[{"name":"Get all notifications sent by admins","id":"44fb7f50-28c7-49c1-a5d9-01ee558a92db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/admin/notification/sent?page=1","description":"<h3 id=\"access-level-admin\">Access Level: Admin</h3>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","notification","sent"],"host":["{{API_URL}}"],"query":[{"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"c157dcdf-9840-4716-a0e9-69cc02aeda0d","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/notification/sent?page=1","host":["{{API_URL}}"],"path":["admin","notification","sent"],"query":[{"key":"page","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"492"},{"key":"RateLimit-Reset","value":"754"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"362a-9Zm2nwwug24JZTKO1ezPA2kTmTU\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Date","value":"Fri, 09 May 2025 04:42:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Notifications retrieved\",\n    \"allNotifications\": {\n        \"results\": [\n            {\n                \"_id\": \"681c80432f6358527dbcc3c1\",\n                \"userId\": \"67fe01901ac7144916d81ced\",\n                \"title\": \"Test Notification\",\n                \"message\": \"This confirms your FCM token works!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:58:27.153Z\",\n                \"updatedAt\": \"2025-05-08T09:58:27.153Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"67fe01901ac7144916d81ced\",\n                    \"firstName\": \"Solomon\",\n                    \"lastName\": \"Akinsulire\",\n                    \"email\": \"solomonakinsulire@gmail.com\",\n                    \"id\": \"67fe01901ac7144916d81ced\"\n                },\n                \"id\": \"681c80432f6358527dbcc3c1\"\n            },\n            {\n                \"_id\": \"681c7fb62f6358527dbcc3ba\",\n                \"userId\": \"67ffc9f6a1923e9d1a430422\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:56:06.216Z\",\n                \"updatedAt\": \"2025-05-08T09:56:06.216Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"67ffc9f6a1923e9d1a430422\",\n                    \"firstName\": \"Ezra\",\n                    \"lastName\": \"Akinsulire\",\n                    \"email\": \"omotolaniezraa@gmail.com\",\n                    \"id\": \"67ffc9f6a1923e9d1a430422\"\n                },\n                \"id\": \"681c7fb62f6358527dbcc3ba\"\n            },\n            {\n                \"_id\": \"681c7fb62f6358527dbcc3b8\",\n                \"userId\": \"6800ee941c46767998c94bc3\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:56:06.191Z\",\n                \"updatedAt\": \"2025-05-08T09:56:06.191Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"6800ee941c46767998c94bc3\",\n                    \"firstName\": \"Sam\",\n                    \"lastName\": \"Jon\",\n                    \"email\": \"solomonplay37@gmail.com\",\n                    \"id\": \"6800ee941c46767998c94bc3\"\n                },\n                \"id\": \"681c7fb62f6358527dbcc3b8\"\n            },\n            {\n                \"_id\": \"681c7fb52f6358527dbcc3b6\",\n                \"userId\": \"68021938eab653d658b7d0ac\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:56:05.135Z\",\n                \"updatedAt\": \"2025-05-08T09:56:05.135Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"68021938eab653d658b7d0ac\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"mazinoishioma@gmail.com\",\n                    \"id\": \"68021938eab653d658b7d0ac\"\n                },\n                \"id\": \"681c7fb52f6358527dbcc3b6\"\n            },\n            {\n                \"_id\": \"681c7fb52f6358527dbcc3b4\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:56:05.131Z\",\n                \"updatedAt\": \"2025-05-08T09:56:05.131Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"680218a9eab653d658b7d09e\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"680218a9eab653d658b7d09e\"\n                },\n                \"id\": \"681c7fb52f6358527dbcc3b4\"\n            },\n            {\n                \"_id\": \"681c7fb52f6358527dbcc3b2\",\n                \"userId\": \"68020a43283d68d0baef6011\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:56:05.117Z\",\n                \"updatedAt\": \"2025-05-08T09:56:05.117Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"68020a43283d68d0baef6011\",\n                    \"firstName\": \"Arya\",\n                    \"lastName\": \"Stark\",\n                    \"email\": \"solomonakinsulire35@gmail.com\",\n                    \"id\": \"68020a43283d68d0baef6011\"\n                },\n                \"id\": \"681c7fb52f6358527dbcc3b2\"\n            },\n            {\n                \"_id\": \"681c7fb42f6358527dbcc3b0\",\n                \"userId\": \"67fe01901ac7144916d81ced\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:56:04.943Z\",\n                \"updatedAt\": \"2025-05-08T09:56:04.943Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"67fe01901ac7144916d81ced\",\n                    \"firstName\": \"Solomon\",\n                    \"lastName\": \"Akinsulire\",\n                    \"email\": \"solomonakinsulire@gmail.com\",\n                    \"id\": \"67fe01901ac7144916d81ced\"\n                },\n                \"id\": \"681c7fb42f6358527dbcc3b0\"\n            },\n            {\n                \"_id\": \"681c7fb42f6358527dbcc3ae\",\n                \"userId\": \"671241465471cfb0e605bec8\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:56:04.939Z\",\n                \"updatedAt\": \"2025-05-08T09:56:04.939Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"671241465471cfb0e605bec8\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden3@gmail.com\",\n                    \"id\": \"671241465471cfb0e605bec8\"\n                },\n                \"id\": \"681c7fb42f6358527dbcc3ae\"\n            },\n            {\n                \"_id\": \"681c7fb42f6358527dbcc3ac\",\n                \"userId\": \"67124e0d31775b5034769179\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:56:04.936Z\",\n                \"updatedAt\": \"2025-05-08T09:56:04.936Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"67124e0d31775b5034769179\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden4@gmail.com\",\n                    \"id\": \"67124e0d31775b5034769179\"\n                },\n                \"id\": \"681c7fb42f6358527dbcc3ac\"\n            },\n            {\n                \"_id\": \"681c7fb42f6358527dbcc3aa\",\n                \"userId\": \"66fe4dc0d88da79221ad9dab\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:56:04.931Z\",\n                \"updatedAt\": \"2025-05-08T09:56:04.931Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"66fe4dc0d88da79221ad9dab\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"goldenogbeka@gmail.com\",\n                    \"id\": \"66fe4dc0d88da79221ad9dab\"\n                },\n                \"id\": \"681c7fb42f6358527dbcc3aa\"\n            },\n            {\n                \"_id\": \"681c7fb42f6358527dbcc3a8\",\n                \"userId\": \"67123bac00af27a00903622a\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:56:04.925Z\",\n                \"updatedAt\": \"2025-05-08T09:56:04.925Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"67123bac00af27a00903622a\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden2@gmail.com\",\n                    \"id\": \"67123bac00af27a00903622a\"\n                },\n                \"id\": \"681c7fb42f6358527dbcc3a8\"\n            },\n            {\n                \"_id\": \"681c7fb42f6358527dbcc3a6\",\n                \"userId\": \"67ffa79076fa7ee84d7e5b3c\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:56:04.922Z\",\n                \"updatedAt\": \"2025-05-08T09:56:04.922Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"67ffa79076fa7ee84d7e5b3c\",\n                    \"firstName\": \"Trinity\",\n                    \"lastName\": \"Ogwezi\",\n                    \"email\": \"mathenacoder06@gmail.com\",\n                    \"id\": \"67ffa79076fa7ee84d7e5b3c\"\n                },\n                \"id\": \"681c7fb42f6358527dbcc3a6\"\n            },\n            {\n                \"_id\": \"681c7fb42f6358527dbcc3a4\",\n                \"userId\": \"671257e3973fcd7192f5e67c\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:56:04.918Z\",\n                \"updatedAt\": \"2025-05-08T09:56:04.918Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"671257e3973fcd7192f5e67c\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden5@gmail.com\",\n                    \"id\": \"671257e3973fcd7192f5e67c\"\n                },\n                \"id\": \"681c7fb42f6358527dbcc3a4\"\n            },\n            {\n                \"_id\": \"681c7e272f6358527dbcc392\",\n                \"userId\": \"67ffa79076fa7ee84d7e5b3c\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:49:27.010Z\",\n                \"updatedAt\": \"2025-05-08T09:49:27.010Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"67ffa79076fa7ee84d7e5b3c\",\n                    \"firstName\": \"Trinity\",\n                    \"lastName\": \"Ogwezi\",\n                    \"email\": \"mathenacoder06@gmail.com\",\n                    \"id\": \"67ffa79076fa7ee84d7e5b3c\"\n                },\n                \"id\": \"681c7e272f6358527dbcc392\"\n            },\n            {\n                \"_id\": \"681c7e262f6358527dbcc390\",\n                \"userId\": \"67fe01901ac7144916d81ced\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:49:26.977Z\",\n                \"updatedAt\": \"2025-05-08T09:49:26.977Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"67fe01901ac7144916d81ced\",\n                    \"firstName\": \"Solomon\",\n                    \"lastName\": \"Akinsulire\",\n                    \"email\": \"solomonakinsulire@gmail.com\",\n                    \"id\": \"67fe01901ac7144916d81ced\"\n                },\n                \"id\": \"681c7e262f6358527dbcc390\"\n            },\n            {\n                \"_id\": \"681c7e252f6358527dbcc38e\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:49:25.985Z\",\n                \"updatedAt\": \"2025-05-08T09:49:25.985Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"680218a9eab653d658b7d09e\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"680218a9eab653d658b7d09e\"\n                },\n                \"id\": \"681c7e252f6358527dbcc38e\"\n            },\n            {\n                \"_id\": \"681c7e252f6358527dbcc38c\",\n                \"userId\": \"68021938eab653d658b7d0ac\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:49:25.981Z\",\n                \"updatedAt\": \"2025-05-08T09:49:25.981Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"68021938eab653d658b7d0ac\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"mazinoishioma@gmail.com\",\n                    \"id\": \"68021938eab653d658b7d0ac\"\n                },\n                \"id\": \"681c7e252f6358527dbcc38c\"\n            },\n            {\n                \"_id\": \"681c7e252f6358527dbcc38a\",\n                \"userId\": \"68020a43283d68d0baef6011\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:49:25.974Z\",\n                \"updatedAt\": \"2025-05-08T09:49:25.974Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"68020a43283d68d0baef6011\",\n                    \"firstName\": \"Arya\",\n                    \"lastName\": \"Stark\",\n                    \"email\": \"solomonakinsulire35@gmail.com\",\n                    \"id\": \"68020a43283d68d0baef6011\"\n                },\n                \"id\": \"681c7e252f6358527dbcc38a\"\n            },\n            {\n                \"_id\": \"681c7e252f6358527dbcc388\",\n                \"userId\": \"67ffc9f6a1923e9d1a430422\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:49:25.968Z\",\n                \"updatedAt\": \"2025-05-08T09:49:25.968Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"67ffc9f6a1923e9d1a430422\",\n                    \"firstName\": \"Ezra\",\n                    \"lastName\": \"Akinsulire\",\n                    \"email\": \"omotolaniezraa@gmail.com\",\n                    \"id\": \"67ffc9f6a1923e9d1a430422\"\n                },\n                \"id\": \"681c7e252f6358527dbcc388\"\n            },\n            {\n                \"_id\": \"681c7e252f6358527dbcc386\",\n                \"userId\": \"6800ee941c46767998c94bc3\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"adminId\": \"66b2667624010cf2ede80777\",\n                \"createdAt\": \"2025-05-08T09:49:25.963Z\",\n                \"updatedAt\": \"2025-05-08T09:49:25.963Z\",\n                \"__v\": 0,\n                \"paymentDetails\": null,\n                \"adminDetails\": {\n                    \"_id\": \"66b2667624010cf2ede80777\",\n                    \"firstName\": \"Golden\",\n                    \"lastName\": \"Ogbeka\",\n                    \"email\": \"ogbekagolden@gmail.com\",\n                    \"id\": \"66b2667624010cf2ede80777\"\n                },\n                \"userDetails\": {\n                    \"_id\": \"6800ee941c46767998c94bc3\",\n                    \"firstName\": \"Sam\",\n                    \"lastName\": \"Jon\",\n                    \"email\": \"solomonplay37@gmail.com\",\n                    \"id\": \"6800ee941c46767998c94bc3\"\n                },\n                \"id\": \"681c7e252f6358527dbcc386\"\n            }\n        ],\n        \"pagination\": {\n            \"totalResults\": 125,\n            \"resultsPerPage\": 20,\n            \"totalPages\": 7,\n            \"currentPage\": 1,\n            \"pagingCounter\": 1,\n            \"hasPrevPage\": false,\n            \"hasNextPage\": true,\n            \"prevPage\": null,\n            \"nextPage\": 2\n        }\n    }\n}"}],"_postman_id":"44fb7f50-28c7-49c1-a5d9-01ee558a92db"},{"name":"Get single notification details","id":"3b5a33fc-b2cd-4b2b-b7bf-b0091933b4a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/admin/notification/sent/details/:notificationId","description":"<h3 id=\"access-level-admin\">Access Level: Admin</h3>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","notification","sent","details",":notificationId"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"681c80432f6358527dbcc3c1","key":"notificationId"}]}},"response":[{"id":"824b7abc-ff1d-4015-bd42-83f11c3879e6","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/notification/sent/details/:notificationId","host":["{{API_URL}}"],"path":["admin","notification","sent","details",":notificationId"],"variable":[{"key":"notificationId","value":"67a83702fc83a11e73f70353"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"499"},{"key":"RateLimit-Reset","value":"900"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"741"},{"key":"ETag","value":"W/\"2e5-8+eempXzXvkASigjDXkBeDQ3tXo\""},{"key":"Date","value":"Sun, 09 Feb 2025 04:53:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Notification retrieved\",\n    \"notificationDetails\": {\n        \"_id\": \"681c80432f6358527dbcc3c1\",\n        \"userId\": \"67fe01901ac7144916d81ced\",\n        \"title\": \"Test Notification\",\n        \"message\": \"This confirms your FCM token works!\",\n        \"type\": \"general-notification\",\n        \"read\": false,\n        \"sentBy\": \"admin\",\n        \"adminId\": \"66b2667624010cf2ede80777\",\n        \"createdAt\": \"2025-05-08T09:58:27.153Z\",\n        \"updatedAt\": \"2025-05-08T09:58:27.153Z\",\n        \"__v\": 0,\n        \"paymentDetails\": null,\n        \"adminDetails\": {\n            \"_id\": \"66b2667624010cf2ede80777\",\n            \"firstName\": \"Golden\",\n            \"lastName\": \"Ogbeka\",\n            \"email\": \"ogbekagolden@gmail.com\",\n            \"id\": \"66b2667624010cf2ede80777\"\n        },\n        \"userDetails\": {\n            \"_id\": \"67fe01901ac7144916d81ced\",\n            \"firstName\": \"Solomon\",\n            \"lastName\": \"Akinsulire\",\n            \"email\": \"solomonakinsulire@gmail.com\",\n            \"id\": \"67fe01901ac7144916d81ced\"\n        },\n        \"id\": \"681c80432f6358527dbcc3c1\"\n    }\n}"}],"_postman_id":"3b5a33fc-b2cd-4b2b-b7bf-b0091933b4a8"},{"name":"Send Notification to all users","id":"4089aadd-1b14-4f54-acbf-b0b8bdbf807e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Notification from Admin\",\r\n    \"message\": \"Thank you Everyone for choosing Tennislides as your go to platform!!\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/notification/send/all-users","description":"<p>The <code>POST</code> request sends a notification to all users via the endpoint <code>{{API_URL}}/admin/notification/send/all-users</code>. The request body is in raw format and includes the <code>title</code> and <code>message</code> parameters.</p>\n<ul>\n<li><p><code>title</code>: Represents the title of the notification.</p>\n</li>\n<li><p><code>message</code>: Contains the content of the notification.</p>\n</li>\n</ul>\n<h3 id=\"access-level-super-admin\">Access Level: Super Admin</h3>\n<p>This request elicits an empty <code>message</code> in the response.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","notification","send","all-users"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"63f7333f-a4b4-4494-a952-deeb537a46c0","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Notification from Admin\",\r\n    \"message\": \"Thank you for using Clicn N Schedule\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/notification/send/all-users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"495"},{"key":"RateLimit-Reset","value":"712"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"44"},{"key":"ETag","value":"W/\"2c-o0zAmtkDRjwXlliezxVLsbjwgMo\""},{"key":"Date","value":"Sun, 09 Feb 2025 04:47:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Notifications sent successfully\",\n    \"sentCount\": 13,\n    \"totalUsers\": 13\n}"}],"_postman_id":"4089aadd-1b14-4f54-acbf-b0b8bdbf807e"},{"name":"Send notification to single user","id":"a16a0226-492e-4d94-ad8e-524a1b46ac0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"title\": \"schedule-notification\",\r\n  \"message\": \"Hello from Postman! 🚀\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/notification/send/user/:userId","description":"<h3 id=\"access-level-super-admin\">Access Level: Super Admin</h3>\n<p>This endpoint sends a notification to a specific user. The request should be a POST call to <code>{{API_URL}}/admin/notification/send/user/:userId</code>. The request body should be in raw format and include the following parameters:</p>\n<ul>\n<li><p><code>title</code>: (string) The title of the notification.</p>\n</li>\n<li><p><code>message</code>: (string) The content of the notification.</p>\n</li>\n</ul>\n<p>Additionally, when the force flag is set to true, superadmins will be able to bypass the user's notification settings and send notifications to the user.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will include a message indicating the status of the notification sending process.</p>\n<p>This would send notification to only the user specified</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","notification","send","user",":userId"],"host":["{{API_URL}}"],"query":[],"variable":[{"id":"6ffbdd1a-918a-47d5-bb94-4df5bc727291","type":"any","value":"68021938eab653d658b7d0ac","key":"userId"}]}},"response":[{"id":"c116028d-4b99-44d6-b55d-da94bc2a82b7","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Notification from Admin\",\r\n    \"message\": \"Well done\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/admin/notification/send/user/:userId","host":["{{API_URL}}"],"path":["admin","notification","send","user",":userId"],"variable":[{"key":"userId","value":"66bd97491e38d37cad3aa6d0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"491"},{"key":"RateLimit-Reset","value":"539"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"44"},{"key":"ETag","value":"W/\"2c-o0zAmtkDRjwXlliezxVLsbjwgMo\""},{"key":"Date","value":"Sun, 09 Feb 2025 05:02:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Notification sent successfully\",\n    \"notification\": {\n        \"userId\": \"68021938eab653d658b7d0ac\",\n        \"title\": \"schedule-notification\",\n        \"message\": \"Hello from Postman! 🚀\",\n        \"type\": \"general-notification\",\n        \"read\": false,\n        \"sentBy\": \"admin\",\n        \"adminId\": \"66b2667624010cf2ede80777\",\n        \"_id\": \"681d885988f4af995578adb8\",\n        \"createdAt\": \"2025-05-09T04:45:13.321Z\",\n        \"updatedAt\": \"2025-05-09T04:45:13.321Z\",\n        \"__v\": 0,\n        \"id\": \"681d885988f4af995578adb8\"\n    }\n}"}],"_postman_id":"a16a0226-492e-4d94-ad8e-524a1b46ac0d"},{"name":"Edit Unread/Scheduled Notifications","id":"e5cbc290-5d2e-4afb-bef5-9281063261df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"Schedule Notification\",\n  \"message\": \"Updated Message, meeting by 5pm Now! 🚀\"\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/notification/edit/:notificationId","description":"<h3 id=\"update-notification\">Update Notification</h3>\n<p>This endpoint allows admins to update or edit a specific existing notification. When a notification is read, admins cannot update the notification, and it flags an error.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: PATCH</p>\n</li>\n<li><p>URL: <code>{{API_URL}}/admin/notification/edit/:notificationId</code></p>\n</li>\n<li><p>Body: The request is a JSON object with the title and message.</p>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"title\": \"schedule-notification\",\n  \"message\": \"Updated Message, meeting by 5pm Now 💚!\"\n}\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","notification","edit",":notificationId"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"681d885988f4af995578adb8","key":"notificationId"}]}},"response":[{"id":"84e5b574-c880-469d-aa32-31b76de6a0af","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"Schedule Notification\",\n  \"message\": \"Updated Message, meeting by 5pm Now! 🚀\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/admin/notification/edit/:notificationId","host":["{{API_URL}}"],"path":["admin","notification","edit",":notificationId"],"variable":[{"key":"notificationId","value":"681d885988f4af995578adb8"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"487"},{"key":"RateLimit-Reset","value":"535"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"421"},{"key":"ETag","value":"W/\"1a5-ABGNi9Rl+W611hiDUgZVtrf62hI\""},{"key":"Date","value":"Fri, 09 May 2025 04:46:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Notification updated\",\n    \"notification\": {\n        \"_id\": \"681d885988f4af995578adb8\",\n        \"userId\": \"68021938eab653d658b7d0ac\",\n        \"title\": \"Schedule Notification\",\n        \"message\": \"Updated Message, meeting by 5pm Now! 🚀\",\n        \"type\": \"general-notification\",\n        \"read\": false,\n        \"sentBy\": \"admin\",\n        \"adminId\": \"66b2667624010cf2ede80777\",\n        \"createdAt\": \"2025-05-09T04:45:13.321Z\",\n        \"updatedAt\": \"2025-05-09T04:46:31.245Z\",\n        \"__v\": 0,\n        \"id\": \"681d885988f4af995578adb8\"\n    }\n}"},{"id":"8cdcb5e2-d2ab-4b31-95ac-4ac38cae9375","name":"Failure","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"schedule-notification\",\n  \"message\": \"Updated Message, meeting by 5pm Now! 🚀\",\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/admin/notification/edit/:notificationId","host":["{{API_URL}}"],"path":["admin","notification","edit",":notificationId"],"variable":[{"key":"notificationId","value":"6805c5980b428fd6bc1f566q"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Notification ID Not Found or Notification has been read by user\"\n}"}],"_postman_id":"e5cbc290-5d2e-4afb-bef5-9281063261df"},{"name":"Delete Notification For Admin & User","id":"6b6aae79-c366-4fea-bad5-9bb2acce42ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"force\": true\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/admin/notification/delete/:notificationId","description":"<h3 id=\"delete-notification\">Delete Notification</h3>\n<p><strong>Endpoint:</strong><br /><code>DELETE /admin-notification/delete/:notificationId</code></p>\n<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Deletes an admin notification by its ID.</p>\n<ul>\n<li><p><strong>Admins</strong> can delete a notification <strong>only if</strong> the notification <strong>has not yet been read by any user</strong>.</p>\n</li>\n<li><p>Once a notification has been <strong>read by users</strong>, <strong>only Super Admins</strong> are allowed to <strong>force delete</strong> it.</p>\n</li>\n<li><p><code>force</code> field must be set to <code>true</code> to allow a force delete by Super Admins.</p>\n</li>\n</ul>\n<h3 id=\"request-body-json\"><strong>Request Body (JSON):</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>force</code></td>\n<td><code>boolean</code></td>\n<td>No (Optional)</td>\n<td>If <code>true</code>, Super Admins can force delete notifications that have been read.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Note:</strong></p>\n<ul>\n<li><p>The <code>force</code> field is <strong>optional</strong>.</p>\n</li>\n<li><p>Only Super Admins can use the <code>force</code> delete.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p>Status: 200</p>\n</li>\n<li><p>Content-Type: application/json</p>\n</li>\n</ul>\n<p>Example Response Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n{\n    \"message\": \"Notification deleted\",\n    \"notification\": {\n        \"_id\": \"6805bb848daa23101ce4caa1\",\n        \"userId\": \"67fe01901ac7144916d81ced\",\n        \"title\": \"schedule-notification\",\n        \"message\": \"Updated Message, meeting by 5pm Now! 🚀\",\n        \"type\": \"general-notification\",\n        \"read\": false,\n        \"sentBy\": \"admin\",\n        \"adminId\": \"66b2667624010cf2ede80777\",\n        \"createdAt\": \"2025-04-21T03:29:08.626Z\",\n        \"updatedAt\": \"2025-04-21T05:34:12.352Z\",\n        \"__v\": 0,\n        \"id\": \"6805bb848daa23101ce4caa1\"\n    }\n}\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>400 Bad Request</code></td>\n<td>Invalid Notification ID or invalid request body.</td>\n</tr>\n<tr>\n<td><code>403 Forbidden</code></td>\n<td>User is not authorized to perform this delete action.</td>\n</tr>\n<tr>\n<td><code>404 Not Found</code></td>\n<td>Notification not found.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["admin","notification","delete",":notificationId"],"host":["{{API_URL}}"],"query":[],"variable":[{"id":"f5806440-3274-44bf-acbd-b399323fda86","type":"any","value":"68095d0a8619a49423be10de","key":"notificationId"}]}},"response":[{"id":"ff5546bf-1bb9-4dbb-a619-a29e6278b12c","name":"success","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/notification/delete/:notificationId","host":["{{API_URL}}"],"path":["admin","notification","delete",":notificationId"],"variable":[{"key":"notificationId","value":"6805d3ba88dac769eb35d918"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Notification deleted\",\n    \"notification\": {\n        \"_id\": \"6805bb848daa23101ce4ca9f\",\n        \"userId\": \"67ffa79076fa7ee84d7e5b3c\",\n        \"title\": \"Notification from Admin\",\n        \"message\": \"Thank you Everyone for choosing Tennislides as your go to platform!!\",\n        \"type\": \"general-notification\",\n        \"read\": false,\n        \"sentBy\": \"admin\",\n        \"adminId\": \"66b2667624010cf2ede80777\",\n        \"createdAt\": \"2025-04-21T03:29:08.620Z\",\n        \"updatedAt\": \"2025-04-21T03:29:08.620Z\",\n        \"__v\": 0,\n        \"id\": \"6805bb848daa23101ce4ca9f\"\n    }\n}\n"},{"id":"e8593a33-bcd0-4728-80e7-22970deca63a","name":"Deletes a read notification (admin action)","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/admin/notification/delete/:notificationId","host":["{{API_URL}}"],"path":["admin","notification","delete",":notificationId"],"variable":[{"key":"notificationId","value":"6805bb848daa23101ce4ca9f"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only superAdmin can use the force flag to delete a read notification\"\n}"},{"id":"d6bf82cf-1e7b-49d4-9e3b-3315ce21cc5e","name":"Deletes Read Notification (SuperAdmin)","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"force\": true\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/admin/notification/delete/:notificationId","host":["{{API_URL}}"],"path":["admin","notification","delete",":notificationId"],"variable":[{"key":"notificationId","value":"6805bb848daa23101ce4ca9f"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Notification deleted\",\n    \"notification\": {\n        \"_id\": \"68095d0a8619a49423be10de\",\n        \"userId\": \"68021938eab653d658b7d0ac\",\n        \"title\": \"payment-notification\",\n        \"message\": \"Hello from Postman! 🚀\",\n        \"type\": \"payment-notification\",\n        \"read\": true,\n        \"sentBy\": \"admin\",\n        \"adminId\": \"66b2667624010cf2ede80777\",\n        \"createdAt\": \"2025-04-23T21:35:06.158Z\",\n        \"updatedAt\": \"2025-04-25T10:06:27.979Z\",\n        \"__v\": 0,\n        \"id\": \"68095d0a8619a49423be10de\"\n    }\n}"}],"_postman_id":"6b6aae79-c366-4fea-bad5-9bb2acce42ef"}],"id":"8e915edd-68ad-4872-81c9-4aeb2880ca53","description":"<p><em>Super Admin Privilege Feature</em></p>\n<p>This system enables authorized administrators to:</p>\n<ul>\n<li><p><strong>Send in-app notifications</strong> to all users, or individual users</p>\n</li>\n<li><p><strong>Edit unread notifications</strong> (correct typos or update information)</p>\n</li>\n<li><p><strong>Delete notifications</strong> when no longer relevant</p>\n</li>\n<li><p><strong>View sent notifications</strong> with delivery details</p>\n</li>\n</ul>\n<p><em>Access Control:</em></p>\n<ul>\n<li>Only <strong>Super Admins</strong> can send/delete read notifications</li>\n</ul>\n","_postman_id":"8e915edd-68ad-4872-81c9-4aeb2880ca53","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}}],"id":"efc7a125-789b-41a1-bd54-ce5ffa36949c","event":[{"listen":"prerequest","script":{"id":"da32c5b6-19f5-4b7b-8380-655e3ed1e3c1","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"634d5c85-5f82-4f1b-b986-ec81ac614a6e","type":"text/javascript","packages":{},"exec":[""]}}],"_postman_id":"efc7a125-789b-41a1-bd54-ce5ffa36949c","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}},{"name":"User","item":[{"name":"Feedback","item":[{"name":"Send Feedback","id":"4ec04195-47e8-4776-9dae-1bb5fbcc8d89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Golden Ogbeka\",\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"phoneNumber\": \"+2348169200454\",\r\n    \"subject\": \"Test\",\r\n    \"message\": \"Test Again\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/feedback/send","description":"<ul>\n<li><p>Phone number should be formatted to include the contry code where preceeding zeros are removed. Example for Nigeria: +2348169200454.<br />  Same for other countries</p>\n</li>\n<li><p>If user is logged in, no need to show inputs for fullname, email and phone number. You can fetch that from the app state and then send to API. Else, they would need to input those details so the admins can follow up on their enquiries.</p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","feedback","send"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"95b4344e-e6eb-4ff1-a411-09edd79940c8","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Golden Ogbeka\",\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"phoneNumber\": \"+2348169200454\",\r\n    \"subject\": \"Test\",\r\n    \"message\": \"Test Again\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/feedback/send"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"303"},{"key":"ETag","value":"W/\"12f-wKaufXnr9mLYoA00I7Q6lgRBbig\""},{"key":"Date","value":"Tue, 03 Sep 2024 16:08:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Feedback sent successfully\",\n    \"feedback\": {\n        \"fullName\": \"Golden Ogbeka\",\n        \"email\": \"ogbekagolden@gmail.com\",\n        \"phoneNumber\": \"+2348169200454\",\n        \"subject\": \"Test\",\n        \"message\": \"Test Again\",\n        \"_id\": \"66d734700ecec26484c31cff\",\n        \"createdAt\": \"2024-09-03T16:08:16.915Z\",\n        \"updatedAt\": \"2024-09-03T16:08:16.915Z\",\n        \"__v\": 0\n    }\n}"},{"id":"ece11191-43d8-4e89-bf0e-1b0161ca29e3","name":"Invalid Phone number","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Golden Ogbeka\",\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"phoneNumber\": \"08169200454\",\r\n    \"message\": \"Test Again\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/feedback/send"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"97"},{"key":"ETag","value":"W/\"61-KY9aVgV7cAIdFaKTMjt7jCvEaIs\""},{"key":"Date","value":"Thu, 08 Aug 2024 13:23:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid mobile number. Please, make sure to add the preceding country or city code.\"\n}"}],"_postman_id":"4ec04195-47e8-4776-9dae-1bb5fbcc8d89"}],"id":"dec9f9f8-eecd-4b8d-ba61-e4f919e9e4c4","description":"<p>For contact us page.</p>\n<p>Please use google reCaptcha on the frontend to limit robots</p>\n","_postman_id":"dec9f9f8-eecd-4b8d-ba61-e4f919e9e4c4","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}},{"name":"Authentication","item":[{"name":"Google OAuth","item":[{"name":"Get Google OAuth URL","id":"88049e50-ef84-4690-9803-9783e9c049aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{API_URL}}/user/auth/google","description":"<p>This would create a URL for the frontend to open</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","auth","google"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"d779f4cc-be0e-4712-9441-6d3cdc547ad5","name":"Success","originalRequest":{"method":"POST","header":[],"url":"{{API_URL}}/user/auth/google"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"499"},{"key":"RateLimit-Reset","value":"900"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"433"},{"key":"ETag","value":"W/\"1b1-kB0bTm3ePQXBynCmoYIcavzxB/E\""},{"key":"Date","value":"Wed, 28 Aug 2024 08:16:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"OAuth URL Retrieved\",\n    \"URL\": \"https://accounts.google.com/o/oauth2/v2/auth?access_type=online&prompt=consent&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&response_type=code&client_id=52189207238-lp7us1a6i061ahkratb76uvb9u9j04c1.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A5000%2Fapi%2Fv1%2Fuser%2Fauth%2Fgoogle%2Fcallback\"\n}"}],"_postman_id":"88049e50-ef84-4690-9803-9783e9c049aa"},{"name":"Google OAuth Callback","id":"361a2ca5-60f7-438e-8c4d-d9f98b15464c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"4/0AQlEd8zDS1a7rpAnAJuKM933dE8Wzlbs-L7UB3Sz-sQCSlKuq_sbxveSGfuXIGth_8eaWg\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/auth/google/callback","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","auth","google","callback"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"b8206969-c0a4-4d2e-b0b6-9a9f3ac39e7e","name":"Successful Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"4/0AQlEd8zZMEOys9_9-OYDn6TL_n2bUQWu7ZEzyzNyKb7R9smFJRcwT5g-cD7lfz-Ah2-29A\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/auth/google/callback"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"498"},{"key":"RateLimit-Reset","value":"873"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"759"},{"key":"ETag","value":"W/\"2f7-sUaqRW1fH7rpP5syatLT1RLZ5pk\""},{"key":"Date","value":"Wed, 28 Aug 2024 08:18:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login Successful\",\n    \"user\": {\n        \"_id\": \"66bd97491e38d37cad3aa6d0\",\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"ogbekagolden@gmail.com\",\n        \"phoneNumber\": \"+2348169200454\",\n        \"hasTeam\": true,\n        \"ntfToken\": \"\",\n        \"active\": true,\n        \"createdAt\": \"2024-08-15T05:51:05.857Z\",\n        \"updatedAt\": \"2024-08-23T11:08:03.935Z\",\n        \"__v\": 0,\n        \"subscriptionType\": \"basic\",\n        \"teamId\": \"66c5f7555c1f47423276cd33\",\n        \"teamMemberId\": \"RSE-2024-D97E39\",\n        \"teamRole\": \"owner\",\n        \"teamMemberActive\": true,\n        \"isVerified\": true,\n        \"id\": \"66bd97491e38d37cad3aa6d0\"\n    },\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Im9nYmVrYWdvbGRlbkBnbWFpbC5jb20iLCJfaWQiOiI2NmJkOTc0OTFlMzhkMzdjYWQzYWE2ZDAiLCJkb21haW4iOiJDbGljayBOIFNjaGVkdWxlIiwiaWF0IjoxNzI0ODMzMTI4LCJleHAiOjE3Mjc0MjUxMjh9.lIi0U1mgCbRYihxJ-BclOMt-gMlB1iiYqx21feVi5k8\"\n}"},{"id":"fb3370b5-da9a-4a29-9ddf-6a7c839a132e","name":"Successful Registration","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"4/0AQlEd8zDS1a7rpAnAJuKM933dE8Wzlbs-L7UB3Sz-sQCSlKuq_sbxveSGfuXIGth_8eaWg\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/auth/google/callback"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"495"},{"key":"RateLimit-Reset","value":"808"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"774"},{"key":"ETag","value":"W/\"306-iiutLvUnJzAiKRDUrK/5l83/Ncw\""},{"key":"Date","value":"Wed, 28 Aug 2024 08:23:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registration Successful\",\n    \"user\": {\n        \"firstName\": \"ClicknSchedule\",\n        \"email\": \"clicknschedule@gmail.com\",\n        \"profileImage\": \"https://lh3.googleusercontent.com/a/ACg8ocJpsBwYMqm6GD7RCnZpgIrGPiuwKzq5p-D4MoKL9npeiveugw=s96-c\",\n        \"hasTeam\": false,\n        \"ntfToken\": \"\",\n        \"active\": true,\n        \"teamRole\": \"user\",\n        \"teamMemberActive\": true,\n        \"subscriptionType\": \"basic\",\n        \"isVerified\": false,\n        \"_id\": \"66cede7d25709e7732ce8bab\",\n        \"createdAt\": \"2024-08-28T08:23:25.531Z\",\n        \"updatedAt\": \"2024-08-28T08:23:25.531Z\",\n        \"__v\": 0,\n        \"id\": \"66cede7d25709e7732ce8bab\"\n    },\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImNsaWNrbnNjaGVkdWxlQGdtYWlsLmNvbSIsIl9pZCI6IjY2Y2VkZTdkMjU3MDllNzczMmNlOGJhYiIsImRvbWFpbiI6IkNsaWNrIE4gU2NoZWR1bGUiLCJpYXQiOjE3MjQ4MzM0MDUsImV4cCI6MTcyNzQyNTQwNX0.U5Ureq5A1Rb-gnGpRr1gSwWICzajgU90ACu57dHCPoQ\"\n}"}],"_postman_id":"361a2ca5-60f7-438e-8c4d-d9f98b15464c"}],"id":"c5c60a46-1f05-4912-9210-817100b4a80f","description":"<h1 id=\"process-definition\">Process Definition</h1>\n<ul>\n<li><p>You need to generate a URL that google would use to open the account select modal or window for the user to select an account</p>\n</li>\n<li><p>Once an account is selected, a callback URL is required in which a code is sent by Google which is then used to extract the user's account info</p>\n</li>\n<li><p>The extracted account info is then used to login (if user exists) or register (if user wasnt in the system)</p>\n</li>\n</ul>\n<h2 id=\"approaches\">Approaches</h2>\n<p>There are two approaches that can be used.</p>\n<ol>\n<li><p>Allow the Backend communicate entirely with Google:</p>\n<ol>\n<li><p>First call the get OAuth URL. A URL would be returned in the response.</p>\n</li>\n<li><p>Open that URL in a webview. You can use react-native-webview for android and react-native-safari-view for IOS.</p>\n</li>\n<li><p>Set up deeplinking and then add a deeplink to a page on your app that would call the backend's callback API.</p>\n</li>\n<li><p>Send the deeplink you created to the me so that I can add that deeplink value as the callback on Google Console for the OAuth service</p>\n</li>\n<li><p>Once Google redirects to that page you intended, call the OAuth callback url with the code Google sends back in the request body</p>\n</li>\n<li><p>Login or registration would then be successful with the user automatically verified</p>\n</li>\n</ol>\n</li>\n<li><p>Handle the google interaction on the frontend:</p>\n<ol>\n<li><p>Use a 3rd party package to open up Google OAuth. Recommendation is <a href=\"https://react-native-google-signin.github.io/docs/install\">RN Google Sign In</a></p>\n</li>\n<li><p>Get credentials for dev ops to get the config values for Google OAuth</p>\n</li>\n<li><p>Once code is gotten on the frontend, call the OAuth Callback API with the code in request body to verify the code and then authenticate user.</p>\n</li>\n</ol>\n</li>\n</ol>\n","_postman_id":"c5c60a46-1f05-4912-9210-817100b4a80f","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}},{"name":"Register","id":"e3810cba-0169-4f55-adc2-cc9eba013e29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"Golden\",\r\n    \"lastName\": \"Ogbeka\",\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"phoneNumber\": \"+2348169200454\",\r\n    \"password\": \"123456\",\r\n    \"confirmPassword\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/register","description":"<p>Password Rule: Minimum of 6 characters (Users would not rely on passwords so no need to add multiple rules)</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","register"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"d5bf0d2d-7998-45e7-98e5-7dd34d141851","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"Golden\",\r\n    \"lastName\": \"Ogbeka\",\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"phoneNumber\": \"+2348169200454\",\r\n    \"password\": \"123456\",\r\n    \"confirmPassword\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"350"},{"key":"ETag","value":"W/\"15e-xNPsbbzfNExW172Y68aZU+0rYxw\""},{"key":"Date","value":"Fri, 16 Aug 2024 12:36:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registration Successful. Verify your account to continue\",\n    \"user\": {\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"ogbekagolden@gmail.com\",\n        \"phoneNumber\": \"+2348169200454\",\n        \"ntfToken\": \"\",\n        \"active\": true,\n        \"isVerified\": false,\n        \"_id\": \"66bf47b339f14426b71a3819\",\n        \"createdAt\": \"2024-08-16T12:36:03.462Z\",\n        \"updatedAt\": \"2024-08-16T12:36:03.462Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"e3810cba-0169-4f55-adc2-cc9eba013e29"},{"name":"Login","id":"5ebe3792-bde0-40de-bfc9-463ea5883572","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/login","description":"<p>If user signs up with google and tries to login with password, there would be an error except the user resets their password</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","login"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"89fde92a-db46-49ef-aebb-a5e22085f0df","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"808"},{"key":"ETag","value":"W/\"328-tMnEUubHyG3huFviSN0HCudf1mY\""},{"key":"Date","value":"Fri, 16 Aug 2024 13:31:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login Successful\",\n    \"user\": {\n        \"_id\": \"66bf47b339f14426b71a3819\",\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"ogbekagolden@gmail.com\",\n        \"phoneNumber\": \"+2348169200454\",\n        \"ntfToken\": \"\",\n        \"active\": true,\n        \"isVerified\": true,\n        \"createdAt\": \"2024-08-16T12:36:03.462Z\",\n        \"updatedAt\": \"2024-08-16T13:31:03.591Z\",\n        \"__v\": 0\n    },\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NmJmNDdiMzM5ZjE0NDI2YjcxYTM4MTkiLCJmaXJzdE5hbWUiOiJHb2xkZW4iLCJsYXN0TmFtZSI6Ik9nYmVrYSIsImVtYWlsIjoib2diZWthZ29sZGVuQGdtYWlsLmNvbSIsInBob25lTnVtYmVyIjoiKzIzNDgxNjkyMDA0NTQiLCJudGZUb2tlbiI6IiIsImFjdGl2ZSI6dHJ1ZSwiaXNWZXJpZmllZCI6dHJ1ZSwiY3JlYXRlZEF0IjoiMjAyNC0wOC0xNlQxMjozNjowMy40NjJaIiwidXBkYXRlZEF0IjoiMjAyNC0wOC0xNlQxMzozMTowMy41OTFaIiwiX192IjowLCJpYXQiOjE3MjM4MTUwNzgsImV4cCI6MTcyNjQwNzA3OH0.YiUAQHaaV5NczsSFY7uu226LOBhaXr10BItXs3yZvNw\"\n}"},{"id":"ee0e6189-a342-4a3c-b0ae-99175ea220fa","name":"Failure for unverified accounts","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"325"},{"key":"ETag","value":"W/\"145-0jLRWUfPRG0G3f19PzrOY982mng\""},{"key":"Date","value":"Fri, 16 Aug 2024 13:15:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Verify your account to continue\",\n    \"user\": {\n        \"_id\": \"66bf47b339f14426b71a3819\",\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"ogbekagolden@gmail.com\",\n        \"phoneNumber\": \"+2348169200454\",\n        \"ntfToken\": \"\",\n        \"active\": true,\n        \"isVerified\": false,\n        \"createdAt\": \"2024-08-16T12:36:03.462Z\",\n        \"updatedAt\": \"2024-08-16T12:46:04.643Z\",\n        \"__v\": 0\n    }\n}"},{"id":"26e54501-5284-4810-802c-0774783177a6","name":"Failure if user signup with Google and is trying to login with password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"goldenogbeka@gmail.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"ETag","value":"W/\"28-4QRpXbUIl/IJBQ1T/YGltufIhsE\""},{"key":"Date","value":"Thu, 03 Oct 2024 08:17:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Please sign in with Google\"\n}"}],"_postman_id":"5ebe3792-bde0-40de-bfc9-463ea5883572"},{"name":"Verify OTP","id":"ef5821a9-7a0b-4a53-8b9e-fe7841bb54ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"otp\": \"475103\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/verify-otp","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","verify-otp"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"f3ee0e7d-3e34-413c-931b-a20855c622e6","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"otp\": \"475103\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/verify-otp"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"497"},{"key":"RateLimit-Reset","value":"877"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1004"},{"key":"ETag","value":"W/\"3ec-UUIf7J490E0G+2MwQ0xqD8meOuo\""},{"key":"Date","value":"Fri, 09 May 2025 04:32:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Verification Successful\",\n    \"user\": {\n        \"_id\": \"680218a9eab653d658b7d09e\",\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"ogbekagolden@gmail.com\",\n        \"phoneNumber\": \"+2348169200454\",\n        \"ntfToken\": \"\",\n        \"active\": true,\n        \"isVerified\": true,\n        \"skillLevel\": \"1\",\n        \"skillLevelSet\": false,\n        \"allowedDistance\": 20,\n        \"preferredPlayType\": \"singles\",\n        \"address\": \"\",\n        \"signupType\": \"normal\",\n        \"createdAt\": \"2025-04-18T09:17:29.779Z\",\n        \"updatedAt\": \"2025-05-09T04:32:29.018Z\",\n        \"__v\": 0,\n        \"notificationSettings\": {\n            \"reward-notification\": true,\n            \"team-notification\": true,\n            \"team-request-notification\": true,\n            \"schedule-notification\": true,\n            \"general-notification\": true,\n            \"schedule-claim-notification\": true,\n            \"schedule-timesheet-notification\": true\n        },\n        \"receivePushNotification\": true,\n        \"id\": \"680218a9eab653d658b7d09e\"\n    },\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Im9nYmVrYWdvbGRlbkBnbWFpbC5jb20iLCJfaWQiOiI2ODAyMThhOWVhYjY1M2Q2NThiN2QwOWUiLCJkb21haW4iOiJUZW5uaXMgU2xpZGUiLCJpYXQiOjE3NDY3NjUxNDksImV4cCI6MTc0OTM1NzE0OX0.v0OSuaZkbrvD5Hy7HmZ4brhB4P4LYo2mQjncNYmTflI\"\n}"}],"_postman_id":"ef5821a9-7a0b-4a53-8b9e-fe7841bb54ea"},{"name":"Send OTP","id":"78058203-f29d-4d2e-b87a-5f7eb4d41774","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/send-otp","description":"<p>Variable field is either <strong>email</strong> or <strong>phoneNumber.</strong> If both are entered, email is selected.</p>\n<p>Phone number verification depends on Termii account validation</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","send-otp"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"e6ef8983-81ac-4459-85c5-f6e38d947c5a","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/send-otp"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-bfb451e+2UZ+RbRlXHePvNiMpjU\""},{"key":"Date","value":"Fri, 16 Aug 2024 13:31:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Verification code sent to email\"\n}"}],"_postman_id":"78058203-f29d-4d2e-b87a-5f7eb4d41774"},{"name":"Reset Password","id":"c396b8e0-a057-4492-9346-897c7dbdf8eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/reset-password","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","reset-password"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"244d2c0d-7c91-42b0-a8ca-fa16932b43cb","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/reset-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-zQTA3AvLxuoLCyfKu+9u/gIpTYw\""},{"key":"Date","value":"Thu, 01 Aug 2024 12:52:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Reset password request successful\"\n}"}],"_postman_id":"c396b8e0-a057-4492-9346-897c7dbdf8eb"},{"name":"Reset Password Update","id":"34b2319c-2130-41fb-8640-d967a709ed9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"newPassword\": \"123456\",\r\n    \"token\": \"256bbf\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/reset-password/update","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","reset-password","update"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"e9127b5f-26a6-4f50-9286-3c15423ea12e","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"newPassword\": \"12345\",\r\n    \"token\": \"c18ffc\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/reset-password/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-1leFLxO9pvRJ4B0CZIygDRcnOKs\""},{"key":"Date","value":"Thu, 01 Aug 2024 13:10:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Password updated successfully\"\n}"},{"id":"b0c61d0b-45fb-435f-a138-a3ccdc439dae","name":"Wrong email or token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ogbekagolden@gmail.com\",\r\n    \"newPassword\": \"123456\",\r\n    \"token\": \"256bbf\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/reset-password/update"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"51"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 04 Sep 2024 18:30:38 GMT"},{"key":"Etag","value":"W/\"33-EJh48VYNQ2eSeafDcnHp4uCSKtA\""},{"key":"Server","value":"railway-edge"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Railway-Request-Id","value":"sSSWAIMYSS-f4MdedRym5w_3500563535"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid credentials. Please try again\"\n}"}],"_postman_id":"34b2319c-2130-41fb-8640-d967a709ed9c"}],"id":"33e4cfd7-1671-41c5-920c-178bc3124d48","description":"<p>Authentication Process (Registration)</p>\n<ul>\n<li><p>User enters required details then Email is sent for user to use to verify email. So frontend should redirect to the verification screen.</p>\n</li>\n<li><p>After user verifies email, isVerified is changed to true in the user's data</p>\n</li>\n</ul>\n<p>Authentication Process (Login)</p>\n<ul>\n<li><p>If user's account is deactivated or not verified, an error would be returned</p>\n</li>\n<li><p>For unverified accounts, a 400 status error would be returned. Please check the user object returned with the error to confirm the isVerified field. If active and unverified, redirect to the verification screen. The OTP would be sent automatically to the user's email for verification.</p>\n</li>\n</ul>\n<p>Reset Password Flow</p>\n<ul>\n<li><p>User request a reset</p>\n</li>\n<li><p>An OTP is sent to the user's email</p>\n</li>\n<li><p>Frontend uses the verify OTP API to confirm the user's email and OTP.</p>\n</li>\n<li><p>That verify OTP api is the same used for verifying the user's email however, there is a token variable attached to the response. That variable is used for the reset password update</p>\n</li>\n<li><p>Get the token returned and attach it with the email and new password from the user. The token is used to verify the user is still the same and not just update the password directly.</p>\n</li>\n</ul>\n<p>Authentication Process (Logout)</p>\n<ul>\n<li>Delete the token from the frontend's local storage and redirect to the frontend's login screen</li>\n</ul>\n","_postman_id":"33e4cfd7-1671-41c5-920c-178bc3124d48","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}},{"name":"Addresses","item":[{"name":"Get Addresses","id":"2b27f836-1ff4-4c08-841a-9b8516d006c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{API_URL}}/address?address=Alternative Route, Off, Lekki, Chevron Dr, Aja, Lagos","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["address"],"host":["{{API_URL}}"],"query":[{"key":"address","value":"Alternative Route, Off, Lekki, Chevron Dr, Aja, Lagos"}],"variable":[]}},"response":[{"id":"a6f075e3-b129-48f8-b1e9-4f933b009894","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{API_URL}}/address?address=Alternative Route, Off, Lekki, Chevron Dr, Aja, Lagos","host":["{{API_URL}}"],"path":["address"],"query":[{"key":"address","value":"Alternative Route, Off, Lekki, Chevron Dr, Aja, Lagos"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"493"},{"key":"ETag","value":"W/\"1ed-6IQXBUsGBJ61tHEHgyhJMFforE0\""},{"key":"Date","value":"Mon, 19 Aug 2024 18:38:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Addresses retrieved\",\n    \"addresses\": [\n        {\n            \"address\": \"Chevron Drive, Lagos, Nigeria\",\n            \"id\": \"Eh1DaGV2cm9uIERyaXZlLCBMYWdvcywgTmlnZXJpYSIuKiwKFAoSCT_uHJDv9jsQEQAzIYrd_dR5EhQKEgnBgILmKos7EBHL2cNno4ee3A\"\n        },\n        {\n            \"address\": \"Alternative Route & Chevron Dr, Lekki, Lagos, Nigeria\",\n            \"id\": \"EjVBbHRlcm5hdGl2ZSBSb3V0ZSAmIENoZXZyb24gRHIsIExla2tpLCBMYWdvcywgTmlnZXJpYSJmImQKFAoSCSEVoKD69jsQEbfTSdMhU8FHEhQKEgkhFaCg-vY7EBG300nTIVPBRxoUChIJAfWfoPr2OxAR2WzROyvYICYaFAoSCT_uHJDv9jsQEQAzIYrd_dR5IgoNltnXAxU4vRoC\"\n        }\n    ]\n}"}],"_postman_id":"2b27f836-1ff4-4c08-841a-9b8516d006c6"}],"id":"95e78d75-35c1-4795-aefb-ecf675407771","description":"<p>This uses the google autocomplete API to retrieve similar addresses so the frontend can get the user's address and specific geolocation details</p>\n","_postman_id":"95e78d75-35c1-4795-aefb-ecf675407771","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}},{"name":"Profile","item":[{"name":"View Profile","id":"33d1ca7a-c1c0-4777-87bd-162d2944322f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/profile","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","profile"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"0b559df7-7df1-494c-ab15-f6bd77b0d547","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/profile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"471"},{"key":"ETag","value":"W/\"1d7-wZVfb7Nzq0OrtyYgOlaXIpI8VC8\""},{"key":"Date","value":"Mon, 19 Aug 2024 20:12:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Profile retrieved\",\n    \"user\": {\n        \"skillLevel\": \"1.0\",\n        \"skillLevelSet\": false,\n        \"allowedDistance\": 10,\n        \"preferredPlayType\": \"singles\",\n        \"address\": \"\",\n        \"geographicLocation\": [],\n        \"_id\": \"66bf47b339f14426b71a3819\",\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"ogbekagolden@gmail.com\",\n        \"phoneNumber\": \"+2348169200454\",\n        \"ntfToken\": \"\",\n        \"active\": true,\n        \"isVerified\": true,\n        \"createdAt\": \"2024-08-16T12:36:03.462Z\",\n        \"updatedAt\": \"2024-08-16T13:44:34.081Z\",\n        \"__v\": 0,\n        \"id\": \"66bf47b339f14426b71a3819\"\n    }\n}"}],"_postman_id":"33d1ca7a-c1c0-4777-87bd-162d2944322f"},{"name":"Get User Profile","id":"506c3027-8b0c-433c-98d1-14e7699a887e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/profile/view/:id","description":"<p>This is to view another user's profile info</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","profile","view",":id"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"66bf47b339f14426b71a3819","key":"id"}]}},"response":[{"id":"5b9a32f8-8f83-4263-a8f5-bb16852a8aaa","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/profile/view/:id","host":["{{API_URL}}"],"path":["user","profile","view",":id"],"variable":[{"key":"id","value":"66bf47b339f14426b71a3819"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"476"},{"key":"ETag","value":"W/\"1dc-hP97nKh7D+TGx3vqdhyu675Tnjk\""},{"key":"Date","value":"Mon, 19 Aug 2024 20:19:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User Profile retrieved\",\n    \"user\": {\n        \"skillLevel\": \"1.0\",\n        \"skillLevelSet\": false,\n        \"allowedDistance\": 10,\n        \"preferredPlayType\": \"singles\",\n        \"address\": \"\",\n        \"geographicLocation\": [],\n        \"_id\": \"66bf47b339f14426b71a3819\",\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"ogbekagolden@gmail.com\",\n        \"phoneNumber\": \"+2348169200454\",\n        \"ntfToken\": \"\",\n        \"active\": true,\n        \"isVerified\": true,\n        \"createdAt\": \"2024-08-16T12:36:03.462Z\",\n        \"updatedAt\": \"2024-08-16T13:44:34.081Z\",\n        \"__v\": 0,\n        \"id\": \"66bf47b339f14426b71a3819\"\n    }\n}"}],"_postman_id":"506c3027-8b0c-433c-98d1-14e7699a887e"},{"name":"Update Skill Level","id":"1a38fe9b-715f-4b0e-93f8-5d2d82cef2be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"skillLevel\": 2.5\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/profile/skill","description":"<p>This was separated from other profile details because it can only be set once. Once it is set, users cannot update it.<br />The design includes a range. Send the lowest value in that range. Example, for 1.0 - 2.0, send 1.0 because people might over estimate their level and the keep them interested, it is better to give them a better chance of winning.<br />From here on out, the skillLevel would be updated by the system based on whether a user wins or losses.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","profile","skill"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"f967bb0e-8008-4f57-949d-971f4ce838c7","name":"Update Skill Level","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"skillLevel\": 2.5\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/profile/skill"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"472"},{"key":"ETag","value":"W/\"1d8-y3R4/00gqs/7ITl9ftFh1FFvCzE\""},{"key":"Date","value":"Mon, 19 Aug 2024 20:56:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Skill level updated\",\n    \"user\": {\n        \"_id\": \"66bf47b339f14426b71a3819\",\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"ogbekagolden@gmail.com\",\n        \"phoneNumber\": \"+2348169200454\",\n        \"ntfToken\": \"\",\n        \"active\": true,\n        \"isVerified\": true,\n        \"createdAt\": \"2024-08-16T12:36:03.462Z\",\n        \"updatedAt\": \"2024-08-19T20:56:41.412Z\",\n        \"__v\": 1,\n        \"address\": \"\",\n        \"allowedDistance\": 10,\n        \"geographicLocation\": [],\n        \"preferredPlayType\": \"singles\",\n        \"skillLevel\": \"2.5\",\n        \"skillLevelSet\": true,\n        \"id\": \"66bf47b339f14426b71a3819\"\n    }\n}"}],"_postman_id":"1a38fe9b-715f-4b0e-93f8-5d2d82cef2be"},{"name":"Update Profile","id":"eb50de62-bd9f-463d-81a2-feb067195aab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"address\": \"Alagbole bridge, Alagbole - Akute Road, Lagos, Nigeria\"\r\n    // \"firstName\": \"Golden\",\r\n    // \"lastName\": \"Ogbeka\",\r\n    // \"phoneNumber\": \"+2348169200454\",\r\n    // \"gender\": \"Male\", // This can be any option the frontend decides but please ensure consistency in casing and values\r\n    // \"allowedDistance\": 10, // This is stored in miles\r\n    // \"preferredPlayType\" : \"singles\", // Options are singles, doubles or both\r\n    // \"dateOfBirth\": \"2001-08-07\" // please note the date format\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/profile","description":"<p>All the fields here are optional except for address.<br />Please not address must be sent from the list of all addresses api because we are geocoding the address and invalid entries would result in an error.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","profile"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"11209b67-fe9d-41cf-82ff-32a9c61fd1bd","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"address\": \"Alagbole bridge, Alagbole - Akute Road, Lagos, Nigeria\"\r\n    // \"firstName\": \"Golden\",\r\n    // \"lastName\": \"Ogbeka\",\r\n    // \"phoneNumber\": \"+2348169200454\",\r\n    // \"gender\": \"Male\", // This can be any option the frontend decides but please ensure consistency in casing and values\r\n    // \"allowedDistance\": 10, // This is stored in miles\r\n    // \"preferredPlayType\" : \"singles\", // Options are singles, doubles or both\r\n    // \"dateOfBirth\": \"2001-08-07\" // please note the date format\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/profile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"541"},{"key":"ETag","value":"W/\"21d-QHhYlt70zLg1k9ZDyK4Y1sORXbU\""},{"key":"Date","value":"Mon, 19 Aug 2024 21:28:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Profile updated\",\n    \"user\": {\n        \"_id\": \"66bf47b339f14426b71a3819\",\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"ogbekagolden@gmail.com\",\n        \"phoneNumber\": \"+2348169200454\",\n        \"ntfToken\": \"\",\n        \"active\": true,\n        \"isVerified\": true,\n        \"createdAt\": \"2024-08-16T12:36:03.462Z\",\n        \"updatedAt\": \"2024-08-19T21:23:32.028Z\",\n        \"__v\": 2,\n        \"address\": \"Alagbole bridge, Alagbole - Akute Road, Lagos, Nigeria\",\n        \"allowedDistance\": 10,\n        \"geographicLocation\": [\n            6.6572404,\n            3.3542805\n        ],\n        \"preferredPlayType\": \"singles\",\n        \"skillLevel\": \"2.5\",\n        \"skillLevelSet\": true,\n        \"id\": \"66bf47b339f14426b71a3819\"\n    }\n}"}],"_postman_id":"eb50de62-bd9f-463d-81a2-feb067195aab"},{"name":"Update Profile Image","id":"821c78cc-289a-422d-ac19-bc54126b6f0f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"profileImage","type":"file","src":"/C:/Users/Golden-Ogbeka/Pictures/Chicken/chicken-burger.jpg"}]},"url":"{{API_URL}}/user/profile/image","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","profile","image"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"c3998a4d-53f5-4189-9dc5-40d36242590c","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"profileImage","type":"file","src":"/C:/Users/Golden-Ogbeka/Pictures/Chicken/chicken-burger.jpg"}]},"url":"{{API_URL}}/user/profile/image"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"669"},{"key":"ETag","value":"W/\"29d-XEBnocNuCQO9TyzroT/chwGBMqQ\""},{"key":"Date","value":"Mon, 19 Aug 2024 21:52:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Profile image updated\",\n    \"user\": {\n        \"_id\": \"66bf47b339f14426b71a3819\",\n        \"firstName\": \"Golden\",\n        \"lastName\": \"Ogbeka\",\n        \"email\": \"ogbekagolden@gmail.com\",\n        \"phoneNumber\": \"+2348169200454\",\n        \"ntfToken\": \"\",\n        \"active\": true,\n        \"isVerified\": true,\n        \"createdAt\": \"2024-08-16T12:36:03.462Z\",\n        \"updatedAt\": \"2024-08-19T21:52:33.313Z\",\n        \"__v\": 2,\n        \"address\": \"Alagbole bridge, Alagbole - Akute Road, Lagos, Nigeria\",\n        \"allowedDistance\": 10,\n        \"geographicLocation\": [\n            6.6572404,\n            3.3542805\n        ],\n        \"preferredPlayType\": \"singles\",\n        \"skillLevel\": \"2.5\",\n        \"skillLevelSet\": true,\n        \"profileImage\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1724104352/Tennis%20Slide/xeqtcjd6aea8r0bdodi4.jpg\",\n        \"id\": \"66bf47b339f14426b71a3819\"\n    }\n}"}],"_postman_id":"821c78cc-289a-422d-ac19-bc54126b6f0f"},{"name":"Delete Profile","id":"8aacba63-02fc-43e5-8ddd-7e9115a1041f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/profile/delete","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","profile","delete"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"5076ae6e-9391-4005-baa6-cce45b54f602","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/profile/delete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"493"},{"key":"RateLimit-Reset","value":"841"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"41"},{"key":"ETag","value":"W/\"29-uyCD5Ek09SOHizL0lT8I9sotyRw\""},{"key":"Date","value":"Mon, 28 Oct 2024 22:13:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Profile Deleted\"\n}"}],"_postman_id":"8aacba63-02fc-43e5-8ddd-7e9115a1041f"}],"id":"2be8bada-7654-493b-8c1c-7d250b6c79ee","description":"<ul>\n<li><p>After registration, users are to update their profile details. When doing this first step, frontend can enforce users to update all details however only the address is required</p>\n</li>\n<li><p>Because the app is location specific, it is required to store users' geographicLocation and as a result, there is an api to get addresses. Once retrieved, the address selected should be sent for the user's details.</p>\n</li>\n</ul>\n","_postman_id":"2be8bada-7654-493b-8c1c-7d250b6c79ee","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}},{"name":"Season Game","item":[{"name":"Stripe Payment","item":[{"name":"Initialize Stripe Payment","id":"0d765271-1480-4689-8b97-29aad320092c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"registrationId\": \"671243a455241cceee9ba49a\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/initialize-payment/stripe","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","season-game","initialize-payment","stripe"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"8ff0af41-1b0c-4559-9e29-f227464bb5d9","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"registrationId\": \"671243a455241cceee9ba49a\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/initialize-payment/stripe"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1404"},{"key":"ETag","value":"W/\"57c-1vrkgRmbNm/Osmachf16TTA0H1o\""},{"key":"Date","value":"Wed, 06 Nov 2024 20:43:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Payment Initiated\",\n    \"paymentIntent\": {\n        \"id\": \"pi_3QIG4ZAz4ryEQlE52Y9D3PAV\",\n        \"object\": \"payment_intent\",\n        \"amount\": 5000,\n        \"amount_capturable\": 0,\n        \"amount_details\": {\n            \"tip\": {}\n        },\n        \"amount_received\": 0,\n        \"application\": null,\n        \"application_fee_amount\": null,\n        \"automatic_payment_methods\": {\n            \"allow_redirects\": \"always\",\n            \"enabled\": true\n        },\n        \"canceled_at\": null,\n        \"cancellation_reason\": null,\n        \"capture_method\": \"automatic_async\",\n        \"client_secret\": \"pi_3QIG4ZAz4ryEQlE52Y9D3PAV_secret_iKtTt3HYMElIIIP5Pm6m2HUZq\",\n        \"confirmation_method\": \"automatic\",\n        \"created\": 1730925807,\n        \"currency\": \"usd\",\n        \"customer\": null,\n        \"description\": null,\n        \"invoice\": null,\n        \"last_payment_error\": null,\n        \"latest_charge\": null,\n        \"livemode\": false,\n        \"metadata\": {\n            \"paymentId\": \"671243a455241cceee9ba498\",\n            \"registrationId\": \"671243a455241cceee9ba49a\",\n            \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n            \"userId\": \"66bf47b339f14426b71a3819\"\n        },\n        \"next_action\": null,\n        \"on_behalf_of\": null,\n        \"payment_method\": null,\n        \"payment_method_configuration_details\": {\n            \"id\": \"pmc_1QFGMJAz4ryEQlE5aUElaAC7\",\n            \"parent\": null\n        },\n        \"payment_method_options\": {\n            \"card\": {\n                \"installments\": null,\n                \"mandate_options\": null,\n                \"network\": null,\n                \"request_three_d_secure\": \"automatic\"\n            },\n            \"link\": {\n                \"persistent_token\": null\n            }\n        },\n        \"payment_method_types\": [\n            \"card\",\n            \"link\"\n        ],\n        \"processing\": null,\n        \"receipt_email\": null,\n        \"review\": null,\n        \"setup_future_usage\": null,\n        \"shipping\": null,\n        \"source\": null,\n        \"statement_descriptor\": null,\n        \"statement_descriptor_suffix\": null,\n        \"status\": \"requires_payment_method\",\n        \"transfer_data\": null,\n        \"transfer_group\": null\n    }\n}"}],"_postman_id":"0d765271-1480-4689-8b97-29aad320092c"}],"id":"cf750289-7026-45df-966a-e1d718b53167","description":"<p>This folder contains the steps to pay using Stripe.</p>\n<ol>\n<li><p>Get the API keys from the Stripe Dashboard</p>\n</li>\n<li><p>A section of the integration is done on the frontend so follow Stripe's documentation on how this can be achieved. Here is a link for React Native integration: <a href=\"https://docs.stripe.com/payments/accept-a-payment?platform=react-native&amp;ui=payment-sheet\">https://docs.stripe.com/payments/accept-a-payment?platform=react-native&amp;ui=payment-sheet</a></p>\n</li>\n<li><p>Call the Initialize Stripe Payment API to get the payment intent object which would then be used on the frontend to process the payment. Information about the registration and payment are in the metadata of the payment intent in case it is required</p>\n</li>\n<li><p>Conclude the payment on the client and show the user a confirmation page.</p>\n</li>\n<li><p>Backend uses webhooks to update the status of the payment and then create schedules</p>\n</li>\n</ol>\n","_postman_id":"cf750289-7026-45df-966a-e1d718b53167","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}},{"name":"Get all Season games","id":"7549b191-c479-46f0-bc3c-809c532a4f71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/season-game/all","description":"<p>This API does not use pagination. It is built for infinite scrolling.<br />You need to specify a <strong>skip</strong> value and that would return a fixed number of element (the limit can be added but the API has a default). Then once you have gotten to the end of the retrieved results, call the API again and merge the new results with the old results.<br />If no new result is returned, you can stop calling the API because all results have been fetched.</p>\n<p>I am also returning the number of items retrieved and the limit so you can decide to use that in your logic of determining whethere to recall the API</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","season-game","all"],"host":["{{API_URL}}"],"query":[{"disabled":true,"key":"skip","value":"10"},{"disabled":true,"description":{"content":"<p>optional</p>\n","type":"text/plain"},"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"37f3699f-1c02-4c41-bd79-bc208ee4042a","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/season-game/all","host":["{{API_URL}}"],"path":["user","season-game","all"],"query":[{"key":"skip","value":"10","disabled":true},{"key":"limit","value":"10","description":"optional","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2129"},{"key":"ETag","value":"W/\"851-2/yLEVG3ugBwDrQyA3wF28Jm2aM\""},{"key":"Date","value":"Thu, 03 Oct 2024 06:15:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Season Games Retrieved\",\n    \"seasonGames\": [\n        {\n            \"_id\": \"66e0614274ec456938143cab\",\n            \"title\": \"2024 Adult summer singles\",\n            \"description\": \"Play this Summer with fellow passionate tennis enthusiasts\",\n            \"playType\": \"singles\",\n            \"numberOfGames\": 5,\n            \"poster\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1725980994/Tennis%20Slide/zbqausz5zmo0gojq4nid.jpg\",\n            \"registrationCost\": 50,\n            \"startDate\": \"2024-09-21T00:00:00.000Z\",\n            \"endDate\": \"2025-09-21T00:00:00.000Z\",\n            \"time\": \"5pm\",\n            \"venue\": \"Chevron Drive, Lagos, Nigeria\",\n            \"geographicLocation\": [\n                6.4498157,\n                3.5306693\n            ],\n            \"active\": true,\n            \"createdBy\": \"66b2667624010cf2ede80777\",\n            \"createdAt\": \"2024-09-10T15:09:54.586Z\",\n            \"updatedAt\": \"2024-09-10T15:09:54.586Z\",\n            \"__v\": 0,\n            \"id\": \"66e0614274ec456938143cab\"\n        },\n        {\n            \"_id\": \"66e0631495f4cd68a0ba66b2\",\n            \"title\": \"2024 Adult summer doubles\",\n            \"description\": \"Play this Summer with fellow passionate tennis enthusiasts\",\n            \"playType\": \"doubles\",\n            \"numberOfGames\": 5,\n            \"poster\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1725986825/Tennis%20Slide/jffdxitrcdq8neusywau.jpg\",\n            \"registrationCost\": 50,\n            \"startDate\": \"2024-09-21T00:00:00.000Z\",\n            \"endDate\": \"2025-03-21T00:00:00.000Z\",\n            \"time\": \"5pm\",\n            \"venue\": \"Chevron Drive, Lagos, Nigeria\",\n            \"geographicLocation\": [\n                6.4498157,\n                3.5306693\n            ],\n            \"active\": true,\n            \"createdBy\": \"66b2667624010cf2ede80777\",\n            \"createdAt\": \"2024-09-10T15:17:40.520Z\",\n            \"updatedAt\": \"2024-09-10T16:49:13.101Z\",\n            \"__v\": 0,\n            \"updatedBy\": \"66b2667624010cf2ede80777\",\n            \"id\": \"66e0631495f4cd68a0ba66b2\"\n        },\n        {\n            \"_id\": \"66e3345f71d94559fcc4cb67\",\n            \"title\": \"2024 Adult summer Mixed\",\n            \"description\": \"Play this Summer with fellow passionate tennis enthusiasts\",\n            \"playType\": \"mixed\",\n            \"numberOfGames\": 5,\n            \"poster\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1726166112/Tennis%20Slide/gwzmdsdl81m59pur6awi.jpg\",\n            \"registrationCost\": 50,\n            \"startDate\": \"2024-09-21T00:00:00.000Z\",\n            \"endDate\": \"2025-03-21T00:00:00.000Z\",\n            \"time\": \"5pm\",\n            \"venue\": \"Chevron Drive, Lagos, Nigeria\",\n            \"geographicLocation\": [\n                6.4498157,\n                3.5306693\n            ],\n            \"active\": true,\n            \"createdBy\": \"66b2667624010cf2ede80777\",\n            \"createdAt\": \"2024-09-12T18:35:11.663Z\",\n            \"updatedAt\": \"2024-09-12T18:35:11.663Z\",\n            \"__v\": 0,\n            \"id\": \"66e3345f71d94559fcc4cb67\"\n        }\n    ],\n    \"skipValue\": 0,\n    \"limit\": 20,\n    \"itemsRetrieved\": 3\n}"},{"id":"dc009407-5b8c-4a8d-bf6a-cf14a083f55b","name":"Empty Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/season-game/all?skip=3&limit=1","host":["{{API_URL}}"],"path":["user","season-game","all"],"query":[{"key":"skip","value":"3"},{"key":"limit","value":"1","description":"optional"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"96"},{"key":"ETag","value":"W/\"60-JfMbX7kKFf2qoH8U92t3UDte6kQ\""},{"key":"Date","value":"Thu, 12 Sep 2024 18:37:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Season Games Retrieved\",\n    \"seasonGames\": [],\n    \"skipValue\": 3,\n    \"limit\": 1,\n    \"itemsRetrieved\": 0\n}"}],"_postman_id":"7549b191-c479-46f0-bc3c-809c532a4f71"},{"name":"View Single Season Game","id":"0499bee8-f73a-4bb2-ac85-1f4919f93697","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/season-game/view/:id","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","season-game","view",":id"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"66e0631495f4cd68a0ba66b2","key":"id"}]}},"response":[{"id":"38538380-6108-4ac6-bda5-a6d79ef0da5b","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/season-game/view/:id","host":["{{API_URL}}"],"path":["user","season-game","view",":id"],"variable":[{"key":"id","value":"66e0631495f4cd68a0ba66b2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"754"},{"key":"ETag","value":"W/\"2f2-hsDdxGUg9SebcCkNK5vg3SAhClk\""},{"key":"Date","value":"Thu, 03 Oct 2024 05:52:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Season game retrieved\",\n    \"seasonGame\": {\n        \"_id\": \"66e0631495f4cd68a0ba66b2\",\n        \"title\": \"2024 Adult summer doubles\",\n        \"description\": \"Play this Summer with fellow passionate tennis enthusiasts\",\n        \"playType\": \"doubles\",\n        \"numberOfGames\": 5,\n        \"poster\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1725986825/Tennis%20Slide/jffdxitrcdq8neusywau.jpg\",\n        \"registrationCost\": 50,\n        \"startDate\": \"2024-09-21T00:00:00.000Z\",\n        \"endDate\": \"2025-03-21T00:00:00.000Z\",\n        \"time\": \"5pm\",\n        \"venue\": \"Chevron Drive, Lagos, Nigeria\",\n        \"geographicLocation\": [\n            6.4498157,\n            3.5306693\n        ],\n        \"active\": false,\n        \"createdBy\": \"66b2667624010cf2ede80777\",\n        \"createdAt\": \"2024-09-10T15:17:40.520Z\",\n        \"updatedAt\": \"2024-09-10T16:49:13.101Z\",\n        \"__v\": 0,\n        \"updatedBy\": \"66b2667624010cf2ede80777\",\n        \"id\": \"66e0631495f4cd68a0ba66b2\"\n    }\n}"}],"_postman_id":"0499bee8-f73a-4bb2-ac85-1f4919f93697"},{"name":"Register for season game","id":"f11e0b7d-a494-4e60-b314-1bd1b3ff8db1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"gameId\": \"66e0631495f4cd68a0ba66b2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/register","description":"<p>This is the first step in the registration process. Their registration is created but schedules are not created until payment is successful.</p>\n<p>The id returned is what is used to identify the registration here</p>\n<p>This was done so the user has the opportunity to complete registration in case payment fails or in case they lose track during the registration process</p>\n<p>After registration, proceed to pay with Stripe in the Stripe Payment folder</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","season-game","register"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"5615b8d1-e369-4bc5-9264-b725d1e4325b","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"gameId\": \"66e0631495f4cd68a0ba66b2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"310"},{"key":"ETag","value":"W/\"136-AZgEvGmNVvwBzc2Xyj5tAbHFlSM\""},{"key":"Date","value":"Thu, 03 Oct 2024 05:56:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registration successful. Proceed to payment\",\n    \"registration\": {\n        \"userId\": \"66bf47b339f14426b71a3819\",\n        \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n        \"paymentId\": \"66fe32244ffba93ac35c222c\",\n        \"status\": \"pending\",\n        \"_id\": \"66fe32244ffba93ac35c222e\",\n        \"createdAt\": \"2024-10-03T05:56:52.783Z\",\n        \"updatedAt\": \"2024-10-03T05:56:52.783Z\",\n        \"__v\": 0\n    }\n}"},{"id":"b08b41d2-ecdd-4972-a0fa-575fa361d72d","name":"Failure on multiple registrations for a season game by the same user","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"gameId\": \"66e0631495f4cd68a0ba66b2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"62"},{"key":"ETag","value":"W/\"3e-WdjBy68YDA/rksb70CyZ8ONnmDE\""},{"key":"Date","value":"Thu, 03 Oct 2024 08:20:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You have already registered for this season game\"\n}"}],"_postman_id":"f11e0b7d-a494-4e60-b314-1bd1b3ff8db1"},{"name":"Get Season Game Registrations","id":"599521bd-1f63-4585-8fb3-7dd3dbe19ab2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/season-game/registrations","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","season-game","registrations"],"host":["{{API_URL}}"],"query":[{"disabled":true,"key":"skip","value":"0"},{"disabled":true,"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"e4d51cd0-5d65-468e-b2d7-5b31f77a2c75","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/season-game/registrations","host":["{{API_URL}}"],"path":["user","season-game","registrations"],"query":[{"key":"skip","value":"0","disabled":true},{"key":"limit","value":"10","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"361"},{"key":"ETag","value":"W/\"169-MHMdMrRE5UVvE6n2soRV2TtqCl8\""},{"key":"Date","value":"Thu, 03 Oct 2024 06:16:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User Registrations Retrieved\",\n    \"registrations\": [\n        {\n            \"_id\": \"66fe32244ffba93ac35c222e\",\n            \"userId\": \"66bf47b339f14426b71a3819\",\n            \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n             \"status\": \"pending\",\n            \"paymentId\": \"66fe32244ffba93ac35c222c\",\n            \"createdAt\": \"2024-10-03T05:56:52.783Z\",\n            \"updatedAt\": \"2024-10-03T05:56:52.783Z\",\n            \"__v\": 0,\n            \"status\": \"pending\"\n        }\n    ],\n    \"skipValue\": 0,\n    \"limit\": 20,\n    \"itemsRetrieved\": 1\n}"}],"_postman_id":"599521bd-1f63-4585-8fb3-7dd3dbe19ab2"},{"name":"Get Single Season Game Registration","id":"9bfce550-1cb4-4f40-a02e-4eac23cb08d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/season-game/registration/:registrationId","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","season-game","registration",":registrationId"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"66fe32244ffba93ac35c222e","key":"registrationId"}]}},"response":[{"id":"27f1c17d-f3b0-4603-85b5-d598c56153fe","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/season-game/registration/:registrationId","host":["{{API_URL}}"],"path":["user","season-game","registration",":registrationId"],"variable":[{"key":"registrationId","value":"66fe32244ffba93ac35c222e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1364"},{"key":"ETag","value":"W/\"554-DTa1lL3KCRom2Lo4LSHnTDZ5fBU\""},{"key":"Date","value":"Thu, 03 Oct 2024 06:25:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registration info retrieved\",\n    \"registrationInfo\": {\n        \"_id\": \"66fe32244ffba93ac35c222e\",\n        \"userId\": \"66bf47b339f14426b71a3819\",\n        \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n        \"paymentId\": \"66fe32244ffba93ac35c222c\",\n        \"createdAt\": \"2024-10-03T05:56:52.783Z\",\n        \"updatedAt\": \"2024-10-03T05:56:52.783Z\",\n        \"__v\": 0,\n        \"status\": \"pending\",\n        \"seasonGameDetails\": {\n            \"_id\": \"66e0631495f4cd68a0ba66b2\",\n            \"title\": \"2024 Adult summer doubles\",\n            \"description\": \"Play this Summer with fellow passionate tennis enthusiasts\",\n            \"playType\": \"doubles\",\n            \"numberOfGames\": 5,\n            \"poster\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1725986825/Tennis%20Slide/jffdxitrcdq8neusywau.jpg\",\n            \"registrationCost\": 50,\n            \"startDate\": \"2024-09-21T00:00:00.000Z\",\n            \"endDate\": \"2025-03-21T00:00:00.000Z\",\n            \"time\": \"5pm\",\n            \"venue\": \"Chevron Drive, Lagos, Nigeria\",\n            \"geographicLocation\": [\n                6.4498157,\n                3.5306693\n            ],\n            \"active\": true,\n            \"createdBy\": \"66b2667624010cf2ede80777\",\n            \"createdAt\": \"2024-09-10T15:17:40.520Z\",\n            \"updatedAt\": \"2024-09-10T16:49:13.101Z\",\n            \"__v\": 0,\n            \"updatedBy\": \"66b2667624010cf2ede80777\",\n            \"id\": \"66e0631495f4cd68a0ba66b2\"\n        },\n        \"paymentDetails\": {\n            \"_id\": \"66fe32244ffba93ac35c222c\",\n            \"userId\": \"66bf47b339f14426b71a3819\",\n            \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n            \"status\": \"pending\",\n            \"paymentMethod\": \"card\",\n            \"createdAt\": \"2024-10-03T05:56:52.564Z\",\n            \"updatedAt\": \"2024-10-03T05:56:52.564Z\",\n            \"__v\": 0,\n            \"id\": \"66fe32244ffba93ac35c222c\"\n        },\n        \"id\": \"66fe32244ffba93ac35c222e\"\n    }\n}"}],"_postman_id":"9bfce550-1cb4-4f40-a02e-4eac23cb08d1"},{"name":"Get Schedules for Season Game","id":"5945c9b0-a9f7-496a-99d9-0934317caa85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/schedules/game","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","season-game","schedules","game"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"029fc35e-aeff-431b-907a-b0047280aae9","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/schedules/game"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"840"},{"key":"ETag","value":"W/\"348-3jO/HS8BA1GmpeJSRZHlO7hHoys\""},{"key":"Date","value":"Thu, 03 Oct 2024 06:53:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Schedules Retrieved\",\n    \"schedules\": [\n        {\n            \"_id\": \"66fe3e4b12093e6c6d29109b\",\n            \"userId\": \"66bf47b339f14426b71a3819\",\n            \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n            \"registrationId\": \"66fe32244ffba93ac35c222e\",\n            \"geographicLocation\": [\n                6.6572404,\n                3.3542805\n            ],\n            \"schedule\": [\n                {\n                    \"opponentId\": \"*\",\n                    \"location\": [\n                        6.4498157,\n                        3.5306693\n                    ],\n                    \"time\": \"5pm\",\n                    \"scoreStatus\": \"pending\",\n                    \"scores\": [],\n                    \"opponentName\": \"\",\n                    \"opponentImage\": \"\",\n                    \"gameId\": \"672e163f53055568428b0583\"\n                },\n                {\n                    \"opponentId\": \"*\",\n                    \"location\": [\n                        6.4498157,\n                        3.5306693\n                    ],\n                    \"time\": \"5pm\",\n                    \"scoreStatus\": \"pending\",\n                    \"scores\": [],\n                    \"opponentName\": \"\",\n                    \"opponentImage\": \"\",\n                    \"gameId\": \"672e163f53055568428b0583\"\n                },\n                {\n                    \"opponentId\": \"*\",\n                    \"location\": [\n                        6.4498157,\n                        3.5306693\n                    ],\n                    \"time\": \"5pm\",\n                    \"scoreStatus\": \"pending\",\n                    \"scores\": [],\n                    \"opponentName\": \"\",\n                    \"opponentImage\": \"\",\n                    \"gameId\": \"672e163f53055568428b0583\"\n                },\n                {\n                    \"opponentId\": \"*\",\n                    \"location\": [\n                        6.4498157,\n                        3.5306693\n                    ],\n                    \"time\": \"5pm\",\n                    \"scoreStatus\": \"pending\",\n                    \"scores\": [],\n                    \"opponentName\": \"\",\n                    \"opponentImage\": \"\",\n                    \"gameId\": \"672e163f53055568428b0583\"\n                },\n                {\n                    \"opponentId\": \"*\",\n                    \"location\": [\n                        6.4498157,\n                        3.5306693\n                    ],\n                    \"time\": \"5pm\",\n                    \"scoreStatus\": \"pending\",\n                    \"scores\": [],\n                    \"opponentName\": \"\",\n                    \"opponentImage\": \"\",\n                    \"gameId\": \"672e163f53055568428b0583\"\n                }\n            ],\n            \"createdAt\": \"2024-10-03T06:48:43.136Z\",\n            \"updatedAt\": \"2024-10-03T06:48:43.136Z\",\n            \"__v\": 0,\n            \"id\": \"66fe3e4b12093e6c6d29109b\"\n        }\n    ]\n}"},{"id":"67c266ce-767c-401a-8a6d-18ca85a31436","name":"Sample when opponent is assigned","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/schedules/game"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1051"},{"key":"ETag","value":"W/\"41b-0tHsnK2XbQYhX0PZSuMvV6UExMc\""},{"key":"Date","value":"Thu, 03 Oct 2024 09:00:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Schedules Retrieved\",\n    \"schedules\": [\n        {\n            \"_id\": \"66fe5cfd8acbf67f6a1eca1c\",\n            \"userId\": \"66fe4dc0d88da79221ad9dab\",\n            \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n            \"registrationId\": \"66fe53d81c7a86b0f0f658b2\",\n            \"geographicLocation\": [\n                6.6572404,\n                3.3542805\n            ],\n            \"schedule\": [\n                {\n                    \"date\": \"2024-09-28T00:00:00.000Z\",\n                    \"opponentId\": \"66bf47b339f14426b71a3819\",\n                    \"opponentName\": \"Golden Ogbeka\",\n                    \"opponentImage\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1724104352/Tennis%20Slide/xeqtcjd6aea8r0bdodi4.jpg\",\n                    \"location\": [\n                        6.4498157,\n                        3.5306693\n                    ],\n                    \"time\": \"5pm\",\n                    \"scoreStatus\": \"pending\",\n                    \"scores\": [],\n                    \"gameId\": \"672e163f53055568428b0583\"\n                },\n                {\n                    \"opponentId\": \"*\",\n                    \"location\": [\n                        6.4498157,\n                        3.5306693\n                    ],\n                    \"time\": \"5pm\",\n                    \"scoreStatus\": \"pending\",\n                    \"scores\": [],\n                    \"gameId\": \"672e163f53055568428b0583\"\n                },\n                {\n                    \"opponentId\": \"*\",\n                    \"location\": [\n                        6.4498157,\n                        3.5306693\n                    ],\n                    \"time\": \"5pm\",\n                    \"scoreStatus\": \"pending\",\n                    \"scores\": [],\n                    \"gameId\": \"672e163f53055568428b0583\"\n                },\n                {\n                    \"opponentId\": \"*\",\n                    \"location\": [\n                        6.4498157,\n                        3.5306693\n                    ],\n                    \"time\": \"5pm\",\n                    \"scoreStatus\": \"pending\",\n                    \"scores\": [],\n                    \"gameId\": \"672e163f53055568428b0583\"\n                },\n                {\n                    \"opponentId\": \"*\",\n                    \"location\": [\n                        6.4498157,\n                        3.5306693\n                    ],\n                    \"time\": \"5pm\",\n                    \"scoreStatus\": \"pending\",\n                    \"scores\": [],\n                    \"gameId\": \"672e163f53055568428b0583\"\n                }\n            ],\n            \"createdAt\": \"2024-10-03T08:59:42.047Z\",\n            \"updatedAt\": \"2024-10-03T08:59:42.047Z\",\n            \"__v\": 0,\n            \"id\": \"66fe5cfd8acbf67f6a1eca1c\"\n        }\n    ]\n}"}],"_postman_id":"5945c9b0-a9f7-496a-99d9-0934317caa85"},{"name":"Get All user schedules for all games","id":"17e6569b-a3f0-4366-902a-084074a99615","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/season-game/schedules","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","season-game","schedules"],"host":["{{API_URL}}"],"query":[{"disabled":true,"key":"skip","value":"10"},{"disabled":true,"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"ad5c7e41-32d6-4fef-a3ea-b1762fd369ef","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/season-game/schedules","host":["{{API_URL}}"],"path":["user","season-game","schedules"],"query":[{"key":"skip","value":"10","disabled":true},{"key":"limit","value":"10","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1104"},{"key":"ETag","value":"W/\"450-IrfzPicZ58XPtmYwu8joQ9OcuNE\""},{"key":"Date","value":"Thu, 03 Oct 2024 07:39:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Schedules Retrieved\",\n    \"schedules\": [\n        {\n            \"_id\": \"66fe3e4b12093e6c6d29109b\",\n            \"userId\": \"66bf47b339f14426b71a3819\",\n            \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n            \"registrationId\": \"66fe32244ffba93ac35c222e\",\n            \"schedule\": [\n                {\n                    \"opponentId\": \"*\",\n                    \"location\": [\n                        6.4498157,\n                        3.5306693\n                    ],\n                    \"time\": \"5pm\",\n                    \"scoreStatus\": \"pending\",\n                    \"scores\": []\n                },\n                {\n                    \"opponentId\": \"*\",\n                    \"location\": [\n                        6.4498157,\n                        3.5306693\n                    ],\n                    \"time\": \"5pm\",\n                    \"scoreStatus\": \"pending\",\n                    \"scores\": []\n                },\n                {\n                    \"opponentId\": \"*\",\n                    \"location\": [\n                        6.4498157,\n                        3.5306693\n                    ],\n                    \"time\": \"5pm\",\n                    \"scoreStatus\": \"pending\",\n                    \"scores\": []\n                },\n                {\n                    \"opponentId\": \"*\",\n                    \"location\": [\n                        6.4498157,\n                        3.5306693\n                    ],\n                    \"time\": \"5pm\",\n                    \"scoreStatus\": \"pending\",\n                    \"scores\": []\n                },\n                {\n                    \"opponentId\": \"*\",\n                    \"location\": [\n                        6.4498157,\n                        3.5306693\n                    ],\n                    \"time\": \"5pm\",\n                    \"scoreStatus\": \"pending\",\n                    \"scores\": []\n                }\n            ],\n            \"createdAt\": \"2024-10-03T06:48:43.136Z\",\n            \"updatedAt\": \"2024-10-03T06:48:43.136Z\",\n            \"__v\": 0,\n            \"seasonGameDetails\": {\n                \"_id\": \"66e0631495f4cd68a0ba66b2\",\n                \"title\": \"2024 Adult summer doubles\",\n                \"playType\": \"doubles\",\n                \"startDate\": \"2024-09-21T00:00:00.000Z\",\n                \"endDate\": \"2025-03-21T00:00:00.000Z\",\n                \"id\": \"66e0631495f4cd68a0ba66b2\"\n            },\n            \"id\": \"66fe3e4b12093e6c6d29109b\"\n        }\n    ],\n    \"skipValue\": 0,\n    \"limit\": 20,\n    \"itemsRetrieved\": 1\n}"}],"_postman_id":"17e6569b-a3f0-4366-902a-084074a99615"},{"name":"Get single schedule details for season game","id":"568e56c5-80cb-4208-a2b9-02bdf91f83b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/season-game/schedule/:scheduleId","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","season-game","schedule",":scheduleId"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"671243b655241cceee9ba4a9","key":"scheduleId"}]}},"response":[{"id":"41735402-bee3-4a57-ab9c-647051143557","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/season-game/schedule/:scheduleId","host":["{{API_URL}}"],"path":["user","season-game","schedule",":scheduleId"],"variable":[{"key":"scheduleId","value":"66fe3e4b12093e6c6d29109b"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1874"},{"key":"ETag","value":"W/\"752-2rDxLdzkaDVaKsoCQYWZ/IYe2eY\""},{"key":"Date","value":"Thu, 03 Oct 2024 07:30:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Schedule retrieved\",\n    \"schedule\": {\n        \"_id\": \"66fe3e4b12093e6c6d29109b\",\n        \"userId\": \"66bf47b339f14426b71a3819\",\n        \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n        \"registrationId\": \"66fe32244ffba93ac35c222e\",\n        \"schedule\": [\n            {\n                \"opponentId\": \"*\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": []\n            },\n            {\n                \"opponentId\": \"*\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": []\n            },\n            {\n                \"opponentId\": \"*\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": []\n            },\n            {\n                \"opponentId\": \"*\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": []\n            },\n            {\n                \"opponentId\": \"*\",\n                \"location\": [\n                    6.4498157,\n                    3.5306693\n                ],\n                \"time\": \"5pm\",\n                \"scoreStatus\": \"pending\",\n                \"scores\": []\n            }\n        ],\n        \"createdAt\": \"2024-10-03T06:48:43.136Z\",\n        \"updatedAt\": \"2024-10-03T06:48:43.136Z\",\n        \"__v\": 0,\n        \"seasonGameDetails\": {\n            \"_id\": \"66e0631495f4cd68a0ba66b2\",\n            \"title\": \"2024 Adult summer doubles\",\n            \"description\": \"Play this Summer with fellow passionate tennis enthusiasts\",\n            \"playType\": \"doubles\",\n            \"numberOfGames\": 5,\n            \"poster\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1725986825/Tennis%20Slide/jffdxitrcdq8neusywau.jpg\",\n            \"registrationCost\": 50,\n            \"startDate\": \"2024-09-21T00:00:00.000Z\",\n            \"endDate\": \"2025-03-21T00:00:00.000Z\",\n            \"time\": \"5pm\",\n            \"venue\": \"Chevron Drive, Lagos, Nigeria\",\n            \"geographicLocation\": [\n                6.4498157,\n                3.5306693\n            ],\n            \"active\": true,\n            \"createdBy\": \"66b2667624010cf2ede80777\",\n            \"createdAt\": \"2024-09-10T15:17:40.520Z\",\n            \"updatedAt\": \"2024-09-10T16:49:13.101Z\",\n            \"__v\": 0,\n            \"updatedBy\": \"66b2667624010cf2ede80777\",\n            \"id\": \"66e0631495f4cd68a0ba66b2\"\n        },\n        \"registrationDetails\": {\n            \"_id\": \"66fe32244ffba93ac35c222e\",\n            \"userId\": \"66bf47b339f14426b71a3819\",\n            \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n            \"paymentId\": \"66fe32244ffba93ac35c222c\",\n            \"createdAt\": \"2024-10-03T05:56:52.783Z\",\n            \"updatedAt\": \"2024-10-03T06:48:42.685Z\",\n            \"__v\": 0,\n            \"status\": \"completed\",\n            \"id\": \"66fe32244ffba93ac35c222e\"\n        },\n        \"id\": \"66fe3e4b12093e6c6d29109b\"\n    }\n}"}],"_postman_id":"568e56c5-80cb-4208-a2b9-02bdf91f83b6"},{"name":"View Schedule Game Details","id":"b533b415-b3ab-41f5-8b00-46ab48c3e2da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"scheduleId\": \"672e2351e2c400fb9b909031\",\r\n    \"gameId\": \"672e2350e2c400fb9b909029\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/schedule/game/details","description":"<p>When you retrieve all the schedules for a user, this api can also be used if you want to get the details of a particular game.<br />It is the gameId in each schedule's game that is used to update scores and also rate the game</p>\n<p>When getting the scores, use the opponent and user ids to know which user owns the score for either opponent or user. it is the first user to submit scores that is regarded as the user while the other person that verifies is the opponent</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","season-game","schedule","game","details"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"df016827-5a86-4898-96ab-c01f01c241e6","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"scheduleId\": \"672e2351e2c400fb9b909031\",\r\n    \"gameId\": \"672e2350e2c400fb9b909029\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/schedule/game/details"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"ETag","value":"W/\"113-mgJzI43woURpwRCF1R24BkZsjWQ\""},{"key":"Date","value":"Fri, 08 Nov 2024 15:08:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Game Details retrieved\",\n    \"gameDetails\": {\n        \"date\": \"2024-09-28T00:00:00.000Z\",\n        \"opponentId\": \"67123bac00af27a00903622a\",\n        \"opponentName\": \"Golden Ogbeka\",\n        \"location\": [\n            6.4498157,\n            3.5306693\n        ],\n        \"time\": \"5pm\",\n        \"scoreStatus\": \"pending\",\n        \"scores\": [],\n        \"gameId\": \"672e2350e2c400fb9b909029\"\n    }\n}"}],"_postman_id":"b533b415-b3ab-41f5-8b00-46ab48c3e2da"},{"name":"Get all payments for season games","id":"69a8f029-2025-4aab-8e72-e4eb023e9a71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/season-game/payments","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","season-game","payments"],"host":["{{API_URL}}"],"query":[{"disabled":true,"key":"skip","value":null},{"disabled":true,"key":"limit","value":null}],"variable":[]}},"response":[{"id":"3cea5a76-3cfb-4b8f-8560-a6dbb6e7b1a8","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/season-game/payments","host":["{{API_URL}}"],"path":["user","season-game","payments"],"query":[{"key":"skip","value":null,"disabled":true},{"key":"limit","value":null,"disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"553"},{"key":"ETag","value":"W/\"229-z9yBfGX5SxTDQ6cktrhSJfTZayY\""},{"key":"Date","value":"Thu, 03 Oct 2024 07:45:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Payments Retrieved\",\n    \"payments\": [\n        {\n            \"_id\": \"66fe32244ffba93ac35c222c\",\n            \"userId\": \"66bf47b339f14426b71a3819\",\n            \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n            \"status\": \"completed\",\n            \"paymentMethod\": \"\",\n            \"createdAt\": \"2024-10-03T05:56:52.564Z\",\n            \"updatedAt\": \"2024-10-03T06:48:42.443Z\",\n            \"__v\": 0,\n            \"paymentChannel\": \"\",\n            \"paymentReference\": \"#fffd1\",\n            \"seasonGameDetails\": {\n                \"_id\": \"66e0631495f4cd68a0ba66b2\",\n                \"title\": \"2024 Adult summer doubles\",\n                \"registrationCost\": 50,\n                \"id\": \"66e0631495f4cd68a0ba66b2\"\n            },\n            \"id\": \"66fe32244ffba93ac35c222c\"\n        }\n    ],\n    \"skipValue\": 0,\n    \"limit\": 20,\n    \"itemsRetrieved\": 1\n}"}],"_postman_id":"69a8f029-2025-4aab-8e72-e4eb023e9a71"},{"name":"Get single payment details","id":"d84419cf-d972-4875-8195-d3fc14cc37da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/season-game/payment/:paymentId","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","season-game","payment",":paymentId"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"66fe32244ffba93ac35c222c","key":"paymentId"}]}},"response":[{"id":"97350fb6-9363-48b5-9759-8567614d71c1","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/season-game/payment/:paymentId","host":["{{API_URL}}"],"path":["user","season-game","payment",":paymentId"],"variable":[{"key":"paymentId","value":"66fe32244ffba93ac35c222c"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1086"},{"key":"ETag","value":"W/\"43e-EMCnF9U1yKxXq8J0JRN50yGD6M4\""},{"key":"Date","value":"Thu, 03 Oct 2024 07:47:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Payment retrieved\",\n    \"payment\": {\n        \"_id\": \"66fe32244ffba93ac35c222c\",\n        \"userId\": \"66bf47b339f14426b71a3819\",\n        \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n        \"status\": \"completed\",\n        \"paymentMethod\": \"\",\n        \"createdAt\": \"2024-10-03T05:56:52.564Z\",\n        \"updatedAt\": \"2024-10-03T06:48:42.443Z\",\n        \"__v\": 0,\n        \"paymentChannel\": \"\",\n        \"paymentReference\": \"#fffd1\",\n        \"seasonGameDetails\": {\n            \"_id\": \"66e0631495f4cd68a0ba66b2\",\n            \"title\": \"2024 Adult summer doubles\",\n            \"description\": \"Play this Summer with fellow passionate tennis enthusiasts\",\n            \"playType\": \"doubles\",\n            \"numberOfGames\": 5,\n            \"poster\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1725986825/Tennis%20Slide/jffdxitrcdq8neusywau.jpg\",\n            \"registrationCost\": 50,\n            \"startDate\": \"2024-09-21T00:00:00.000Z\",\n            \"endDate\": \"2025-03-21T00:00:00.000Z\",\n            \"time\": \"5pm\",\n            \"venue\": \"Chevron Drive, Lagos, Nigeria\",\n            \"geographicLocation\": [\n                6.4498157,\n                3.5306693\n            ],\n            \"active\": true,\n            \"createdBy\": \"66b2667624010cf2ede80777\",\n            \"createdAt\": \"2024-09-10T15:17:40.520Z\",\n            \"updatedAt\": \"2024-09-10T16:49:13.101Z\",\n            \"__v\": 0,\n            \"updatedBy\": \"66b2667624010cf2ede80777\",\n            \"id\": \"66e0631495f4cd68a0ba66b2\"\n        },\n        \"id\": \"66fe32244ffba93ac35c222c\"\n    }\n}"}],"_postman_id":"d84419cf-d972-4875-8195-d3fc14cc37da"},{"name":"Update Schedule Game Scores","id":"684052d0-ac1f-4a8b-ad9e-190db8549650","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"scheduleId\": \"672e2351e2c400fb9b909031\",\r\n    \"gameId\": \"672e2350e2c400fb9b909029\",\r\n    \"userId\": \"67123bac00af27a00903622a\",\r\n    \"opponentId\": \"66bf47b339f14426b71a3819\",\r\n    \"scores\": [\r\n        {\r\n            \"userScore\": 4,\r\n            \"opponentScore\": 16\r\n        },\r\n        {\r\n            \"userScore\": 10,\r\n            \"opponentScore\": 6\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/schedule/game/update-score","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","season-game","schedule","game","update-score"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"58f08ec2-0606-49c5-a46c-b0fce0c4f4f2","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"scheduleId\": \"672e2351e2c400fb9b909031\",\r\n    \"gameId\": \"672e2350e2c400fb9b909029\",\r\n    \"userId\": \"67123bac00af27a00903622a\",\r\n    \"opponentId\": \"66bf47b339f14426b71a3819\",\r\n    \"scores\": [\r\n        {\r\n            \"userScore\": 4,\r\n            \"opponentScore\": 6\r\n        },\r\n        {\r\n            \"userScore\": 10,\r\n            \"opponentScore\": 6\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/schedule/game/update-score"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"536"},{"key":"ETag","value":"W/\"218-8s/gmSl1+/IwTwvafoN4tBB5e2I\""},{"key":"Date","value":"Fri, 08 Nov 2024 16:03:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Game scores submitted\",\n    \"gameData\": {\n        \"date\": \"2024-09-28T00:00:00.000Z\",\n        \"opponentId\": \"67123bac00af27a00903622a\",\n        \"opponentName\": \"Golden Ogbeka\",\n        \"location\": [\n            6.4498157,\n            3.5306693\n        ],\n        \"time\": \"5pm\",\n        \"scoreStatus\": \"pending\",\n        \"scores\": [\n            {\n                \"userScore\": 4,\n                \"userId\": \"67123bac00af27a00903622a\",\n                \"opponentScore\": 6,\n                \"opponentId\": \"66bf47b339f14426b71a3819\"\n            },\n            {\n                \"userScore\": 10,\n                \"userId\": \"67123bac00af27a00903622a\",\n                \"opponentScore\": 6,\n                \"opponentId\": \"66bf47b339f14426b71a3819\"\n            }\n        ],\n        \"gameId\": \"672e2350e2c400fb9b909029\",\n        \"scoresUpdatedBy\": \"67123bac00af27a00903622a\"\n    }\n}"}],"_postman_id":"684052d0-ac1f-4a8b-ad9e-190db8549650"},{"name":"Confirm Schedule Game Scores","id":"2e8c3e28-ffbf-47e4-8c7e-174ae0e2759d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"scheduleId\": \"672e2351e2c400fb9b909031\",\r\n    \"gameId\": \"672e2350e2c400fb9b909029\",\r\n    \"opponentId\": \"67123bac00af27a00903622a\",\r\n    \"userId\": \"66bf47b339f14426b71a3819\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/schedule/game/confirm-score","description":"<p>Winner can be either a user's ID or \"draw\"</p>\n<p>When verification is done, winner is calculated from the sum total of points</p>\n<p>User Id here is the ID of the logged in user</p>\n<p>Opponent Id is the ID of the opponent</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","season-game","schedule","game","confirm-score"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"676c5f98-f572-410d-ac43-4b06431653ea","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"scheduleId\": \"672e2351e2c400fb9b909031\",\r\n    \"gameId\": \"672e2350e2c400fb9b909029\",\r\n    \"opponentId\": \"67123bac00af27a00903622a\",\r\n    \"userId\": \"66bf47b339f14426b71a3819\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/schedule/game/confirm-score"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"619"},{"key":"ETag","value":"W/\"26b-6SdkMAu8ZTPaBGkifjoQkM+JjgU\""},{"key":"Date","value":"Fri, 08 Nov 2024 16:24:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Game scores verified\",\n    \"gameData\": {\n        \"date\": \"2024-09-28T00:00:00.000Z\",\n        \"opponentId\": \"67123bac00af27a00903622a\",\n        \"opponentName\": \"Golden Ogbeka\",\n        \"location\": [\n            6.4498157,\n            3.5306693\n        ],\n        \"time\": \"5pm\",\n        \"scoreStatus\": \"verified\",\n        \"scores\": [\n            {\n                \"userScore\": 4,\n                \"userId\": \"67123bac00af27a00903622a\",\n                \"opponentScore\": 16,\n                \"opponentId\": \"66bf47b339f14426b71a3819\"\n            },\n            {\n                \"userScore\": 10,\n                \"userId\": \"67123bac00af27a00903622a\",\n                \"opponentScore\": 6,\n                \"opponentId\": \"66bf47b339f14426b71a3819\"\n            }\n        ],\n        \"gameId\": \"672e2350e2c400fb9b909029\",\n        \"scoresUpdatedBy\": \"67123bac00af27a00903622a\",\n        \"winner\": \"66bf47b339f14426b71a3819\",\n        \"scoresVerifiedBy\": \"66bf47b339f14426b71a3819\"\n    }\n}"}],"_postman_id":"2e8c3e28-ffbf-47e4-8c7e-174ae0e2759d"},{"name":"Rate Schedule Game","id":"2e2c06e8-c477-4254-9560-3fd07e8f8889","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"scheduleId\": \"672e2351e2c400fb9b909031\",\r\n    \"gameId\": \"672e2350e2c400fb9b909029\",\r\n    \"rating\": 5\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/schedule/game/rate-game","description":"<p>Rating is between 1 and 5.<br />Use those values to represent text on the client. For example, 5 can represent Excellent</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","season-game","schedule","game","rate-game"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"e6e567c7-b533-4bba-99ba-110d2acd5484","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"scheduleId\": \"672e2351e2c400fb9b909031\",\r\n    \"gameId\": \"672e2350e2c400fb9b909029\",\r\n    \"rating\": 5\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/schedule/game/rate-game"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"633"},{"key":"ETag","value":"W/\"279-yb5o8txUrKzVYDYlVywE0U3z790\""},{"key":"Date","value":"Fri, 08 Nov 2024 16:30:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Game rated successfully\",\n    \"gameData\": {\n        \"date\": \"2024-09-28T00:00:00.000Z\",\n        \"opponentId\": \"67123bac00af27a00903622a\",\n        \"opponentName\": \"Golden Ogbeka\",\n        \"location\": [\n            6.4498157,\n            3.5306693\n        ],\n        \"time\": \"5pm\",\n        \"scoreStatus\": \"verified\",\n        \"scores\": [\n            {\n                \"userScore\": 4,\n                \"userId\": \"67123bac00af27a00903622a\",\n                \"opponentScore\": 16,\n                \"opponentId\": \"66bf47b339f14426b71a3819\"\n            },\n            {\n                \"userScore\": 10,\n                \"userId\": \"67123bac00af27a00903622a\",\n                \"opponentScore\": 6,\n                \"opponentId\": \"66bf47b339f14426b71a3819\"\n            }\n        ],\n        \"gameId\": \"672e2350e2c400fb9b909029\",\n        \"scoresUpdatedBy\": \"67123bac00af27a00903622a\",\n        \"winner\": \"66bf47b339f14426b71a3819\",\n        \"scoresVerifiedBy\": \"66bf47b339f14426b71a3819\",\n        \"rating\": 5\n    }\n}"}],"_postman_id":"2e2c06e8-c477-4254-9560-3fd07e8f8889"}],"id":"0d9eb45a-e5a6-4d61-95c8-878173b74ba5","description":"<p>There is no pagination for this seasion. What was implemented is for infinite scrolling.</p>\n<p>Instead of paginations, what is relied on is <strong>skip</strong> and <strong>limit</strong>. If none of these values are specified, 0 and default limit would be used by default respectively.</p>\n<p>The values used are also returned in the response</p>\n","_postman_id":"0d9eb45a-e5a6-4d61-95c8-878173b74ba5","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}},{"name":"Webhook (not for use)","item":[{"name":"Pay for Season Game Registration","id":"0cea9800-6944-4c42-a376-219b0d8a4afd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"registrationId\": \"672e159adefd9f7cec5200cd\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/register/test-pay","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","season-game","register","test-pay"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"e1c41e96-ccc8-4c56-bda0-4579e583dee1","name":"Success Sample","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"registrationId\": \"66fe32244ffba93ac35c222e\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/register/pay"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"398"},{"key":"ETag","value":"W/\"18e-D0FMuRyVWsVH4EY2u6tBvwrhFxY\""},{"key":"Date","value":"Thu, 03 Oct 2024 06:48:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Payment Successful. You can now view your schedules\",\n    \"paymentInfo\": {\n        \"_id\": \"66fe32244ffba93ac35c222c\",\n        \"userId\": \"66bf47b339f14426b71a3819\",\n        \"seasonGameId\": \"66e0631495f4cd68a0ba66b2\",\n        \"status\": \"completed\",\n        \"paymentMethod\": \"\",\n        \"createdAt\": \"2024-10-03T05:56:52.564Z\",\n        \"updatedAt\": \"2024-10-03T06:48:42.443Z\",\n        \"__v\": 0,\n        \"paymentChannel\": \"\",\n        \"paymentReference\": \"#fffd1\",\n        \"id\": \"66fe32244ffba93ac35c222c\"\n    }\n}"},{"id":"c89ae34c-3337-4dd3-b84b-0da17d803e7f","name":"Failure when previous payment has been successful","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"registrationId\": \"66fe53d81c7a86b0f0f658b2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/season-game/register/pay"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-oe6GbAo/fQZuBJ488X2EA4qNrKo\""},{"key":"Date","value":"Thu, 03 Oct 2024 08:34:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You have already paid for this game\"\n}"}],"_postman_id":"0cea9800-6944-4c42-a376-219b0d8a4afd"},{"name":"Stripe payment confirmation","id":"aa33f4d3-5b09-48ae-a3fa-cd49aa3b78b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://tennisslideapi-production.up.railway.app/webhook/season-game/stripe/payment-confirmation","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"protocol":"https","path":["webhook","season-game","stripe","payment-confirmation"],"host":["tennisslideapi-production","up","railway","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa33f4d3-5b09-48ae-a3fa-cd49aa3b78b8"}],"id":"14495438-5296-45e6-8ce2-4df3cec44db2","description":"<p>Not for integration. For testing purposes only</p>\n","_postman_id":"14495438-5296-45e6-8ce2-4df3cec44db2","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}},{"name":"Friendly Game","item":[{"name":"Get Users in your division","id":"25630d91-8be4-45aa-a94d-3543a6eb1975","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/friendly-game/division-users/?skip=0&limit=10","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","friendly-game","division-users",""],"host":["{{API_URL}}"],"query":[{"key":"skip","value":"0"},{"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"52937985-f14f-45cc-81c8-eaf1a8176e9f","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/friendly-game/division-users/?skip=0&limit=10","host":["{{API_URL}}"],"path":["user","friendly-game","division-users",""],"query":[{"key":"skip","value":"0"},{"key":"limit","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"499"},{"key":"RateLimit-Reset","value":"900"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"44c-pF3wZFuD2FeVvAbQfp8irIq44eE\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Date","value":"Thu, 21 Nov 2024 20:32:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully retrieved users in your division\",\n    \"users\": [\n        {\n            \"_id\": \"66bf47b339f14426b71a3819\",\n            \"firstName\": \"Golden\",\n            \"lastName\": \"Ogbeka\",\n            \"skillLevel\": \"4\",\n            \"profileImage\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1724104352/Tennis%20Slide/xeqtcjd6aea8r0bdodi4.jpg\",\n            \"id\": \"66bf47b339f14426b71a3819\"\n        },\n        {\n            \"_id\": \"66fe4dc0d88da79221ad9dab\",\n            \"firstName\": \"Golden\",\n            \"lastName\": \"Ogbeka\",\n            \"skillLevel\": \"1\",\n            \"profileImage\": \"https://lh3.googleusercontent.com/a/ACg8ocIeNacbP1lm6cstcURZ44cJoJnYeic-FM3ScP54YV3cva8lzQ=s100\",\n            \"id\": \"66fe4dc0d88da79221ad9dab\"\n        },\n        {\n            \"_id\": \"67123bac00af27a00903622a\",\n            \"firstName\": \"Golden\",\n            \"lastName\": \"Ogbeka\",\n            \"skillLevel\": \"1\",\n            \"id\": \"67123bac00af27a00903622a\"\n        },\n        {\n            \"_id\": \"671241465471cfb0e605bec8\",\n            \"firstName\": \"Golden\",\n            \"lastName\": \"Ogbeka\",\n            \"skillLevel\": \"2.5\",\n            \"id\": \"671241465471cfb0e605bec8\"\n        },\n        {\n            \"_id\": \"67124e0d31775b5034769179\",\n            \"firstName\": \"Golden\",\n            \"lastName\": \"Ogbeka\",\n            \"skillLevel\": \"1\",\n            \"id\": \"67124e0d31775b5034769179\"\n        },\n        {\n            \"_id\": \"671257e3973fcd7192f5e67c\",\n            \"firstName\": \"Golden\",\n            \"lastName\": \"Ogbeka\",\n            \"skillLevel\": \"1\",\n            \"id\": \"671257e3973fcd7192f5e67c\"\n        }\n    ],\n    \"skipValue\": 0,\n    \"limit\": 10,\n    \"itemsRetrieved\": 6\n}"}],"_postman_id":"25630d91-8be4-45aa-a94d-3543a6eb1975"},{"name":"Request for a friendly game","id":"1e291490-30b8-4fda-8f63-d398b15dea2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userId\": \"67123bac00af27a00903622a\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/friendly-game/request","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","friendly-game","request"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"5b47ccb4-d44b-4819-b727-df0faaa66d25","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userId\": \"67123bac00af27a00903622a\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/friendly-game/request"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"499"},{"key":"RateLimit-Reset","value":"900"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"412"},{"key":"ETag","value":"W/\"19c-voqytmKArF6i5AAcMtj23eio5Ww\""},{"key":"Date","value":"Thu, 21 Nov 2024 19:27:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Friendly game requested\",\n    \"gameDetails\": {\n        \"user1Id\": \"66bf47b339f14426b71a3819\",\n        \"user2Id\": \"67123bac00af27a00903622a\",\n        \"requestedBy\": \"66bf47b339f14426b71a3819\",\n        \"status\": \"pending\",\n        \"address\": \"\",\n        \"geographicLocation\": [],\n        \"scheduledTime\": \"\",\n        \"gameFixed\": false,\n        \"_id\": \"673f899d65f3ab38bafa80eb\",\n        \"createdAt\": \"2024-11-21T19:27:25.646Z\",\n        \"updatedAt\": \"2024-11-21T19:27:25.646Z\",\n        \"__v\": 0,\n        \"id\": \"673f899d65f3ab38bafa80eb\"\n    }\n}"}],"_postman_id":"1e291490-30b8-4fda-8f63-d398b15dea2a"},{"name":"View all friendly games (can filter by status)","id":"6de377cd-0963-44b8-90e8-97ffdff88d1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"status\": \"pending\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/friendly-game?skip=0&limit=10","description":"<p>Status is optional and can either be approved, pending or rejected</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","friendly-game"],"host":["{{API_URL}}"],"query":[{"key":"skip","value":"0"},{"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"3525e479-008d-4a32-b6bb-c28a61f26ab4","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"status\": \"pending\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/user/friendly-game?skip=0&limit=10","host":["{{API_URL}}"],"path":["user","friendly-game"],"query":[{"key":"skip","value":"0"},{"key":"limit","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"496"},{"key":"RateLimit-Reset","value":"878"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"453"},{"key":"ETag","value":"W/\"1c5-jiFMUCWi0bjoXKfdhP8ClINz2To\""},{"key":"Date","value":"Thu, 21 Nov 2024 20:04:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Friendly games retrieved\",\n    \"games\": [\n        {\n            \"_id\": \"673f899d65f3ab38bafa80eb\",\n            \"user1Id\": \"66bf47b339f14426b71a3819\",\n            \"user2Id\": \"67123bac00af27a00903622a\",\n            \"requestedBy\": \"66bf47b339f14426b71a3819\",\n            \"status\": \"pending\",\n            \"address\": \"\",\n            \"geographicLocation\": [],\n            \"scheduledTime\": \"\",\n            \"gameFixed\": false,\n            \"createdAt\": \"2024-11-21T19:27:25.646Z\",\n            \"updatedAt\": \"2024-11-21T19:27:25.646Z\",\n            \"__v\": 0,\n            \"id\": \"673f899d65f3ab38bafa80eb\"\n        }\n    ],\n    \"skipValue\": 0,\n    \"limit\": 10,\n    \"itemsRetrieved\": 1\n}"}],"_postman_id":"6de377cd-0963-44b8-90e8-97ffdff88d1b"},{"name":"View Friendly Game Details","id":"385b4aae-fc15-447b-8118-9a409cf65e49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/friendly-game/details/:id","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","friendly-game","details",":id"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"673f899d65f3ab38bafa80eb","key":"id"}]}},"response":[{"id":"87b865a8-c692-431f-ae9c-fc709c24bf88","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/friendly-game/details/:id","host":["{{API_URL}}"],"path":["user","friendly-game","details",":id"],"variable":[{"key":"id","value":"673f899d65f3ab38bafa80eb"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"499"},{"key":"RateLimit-Reset","value":"900"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"956"},{"key":"ETag","value":"W/\"3bc-WiL05GNg2rLfZAN/gdSXfhYZ5Q0\""},{"key":"Date","value":"Thu, 21 Nov 2024 20:35:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Friendly game retrieved\",\n    \"gameDetails\": {\n        \"_id\": \"673f899d65f3ab38bafa80eb\",\n        \"user1Id\": \"66bf47b339f14426b71a3819\",\n        \"user2Id\": \"67123bac00af27a00903622a\",\n        \"requestedBy\": \"66bf47b339f14426b71a3819\",\n        \"status\": \"approved\",\n        \"address\": \"Chevron Drive, Lagos, Nigeria\",\n        \"geographicLocation\": [\n            6.4498157,\n            3.5306693\n        ],\n        \"scheduledTime\": \"2pm\",\n        \"gameFixed\": true,\n        \"createdAt\": \"2024-11-21T19:27:25.646Z\",\n        \"updatedAt\": \"2024-11-21T20:21:37.195Z\",\n        \"__v\": 1,\n        \"respondedBy\": \"67123bac00af27a00903622a\",\n        \"gameFixedBy\": \"67123bac00af27a00903622a\",\n        \"scheduledDate\": \"2024-11-22T00:00:00.000Z\",\n        \"user1Details\": {\n            \"_id\": \"66bf47b339f14426b71a3819\",\n            \"firstName\": \"Golden\",\n            \"lastName\": \"Ogbeka\",\n            \"profileImage\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1724104352/Tennis%20Slide/xeqtcjd6aea8r0bdodi4.jpg\",\n            \"id\": \"66bf47b339f14426b71a3819\"\n        },\n        \"user2Details\": {\n            \"_id\": \"67123bac00af27a00903622a\",\n            \"firstName\": \"Golden\",\n            \"lastName\": \"Ogbeka\",\n            \"id\": \"67123bac00af27a00903622a\"\n        },\n        \"id\": \"673f899d65f3ab38bafa80eb\"\n    }\n}"}],"_postman_id":"385b4aae-fc15-447b-8118-9a409cf65e49"},{"name":"Update Friendly Game Request","id":"5b119fe4-8fda-42c0-ba9b-160ae0df83f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"673f899d65f3ab38bafa80eb\",\r\n    \"status\": \"approved\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/friendly-game/update-request","description":"<p>Status is either approved or rejected</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","friendly-game","update-request"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"380ebf66-f829-47db-ab6f-e44866ee49d8","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"673f899d65f3ab38bafa80eb\",\r\n    \"status\": \"approved\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/friendly-game/update-request"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"493"},{"key":"RateLimit-Reset","value":"804"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"453"},{"key":"ETag","value":"W/\"1c5-wRyKSxO+sl+Kt2eUMFnUmx9bJoQ\""},{"key":"Date","value":"Thu, 21 Nov 2024 20:05:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Friendly game approved\",\n    \"gameDetails\": {\n        \"_id\": \"673f899d65f3ab38bafa80eb\",\n        \"user1Id\": \"66bf47b339f14426b71a3819\",\n        \"user2Id\": \"67123bac00af27a00903622a\",\n        \"requestedBy\": \"66bf47b339f14426b71a3819\",\n        \"status\": \"approved\",\n        \"address\": \"\",\n        \"geographicLocation\": [],\n        \"scheduledTime\": \"\",\n        \"gameFixed\": false,\n        \"createdAt\": \"2024-11-21T19:27:25.646Z\",\n        \"updatedAt\": \"2024-11-21T20:05:46.464Z\",\n        \"__v\": 0,\n        \"respondedBy\": \"67123bac00af27a00903622a\",\n        \"id\": \"673f899d65f3ab38bafa80eb\"\n    }\n}"}],"_postman_id":"5b119fe4-8fda-42c0-ba9b-160ae0df83f7"},{"name":"Fix Friendly Game","id":"c7b352fa-915c-4b8e-a966-3891b7cb30ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"date\": \"2024-11-22\",\r\n    \"time\": \"2pm\",\r\n    \"address\": \"Chevron Drive, Lagos, Nigeria\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/friendly-game/fix/:id","description":"<p>This is to fix the date, time and address of an approved friendly game.</p>\n<p>Time format is not restricted and should be decided by frontend. Whatever is entered would be shown to the user</p>\n<p>Address should be gotten from the google addresses api because it would be geocoded</p>\n<p>I didn't limit how many times this api can be called but there is a variable called gameFixed in case frontend wants users to fix the game just once</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","friendly-game","fix",":id"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"673f899d65f3ab38bafa80eb","key":"id"}]}},"response":[{"id":"d86ceac9-f183-4b80-a1da-e5f6dc006dc8","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"date\": \"2025-03-21\",\r\n    \"time\": \"2pm\",\r\n    \"address\": \"Chevron Drive, Lagos, Nigeria\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/user/friendly-game/fix/:id","host":["{{API_URL}}"],"path":["user","friendly-game","fix",":id"],"variable":[{"key":"id","value":"673f899d65f3ab38bafa80eb"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"491"},{"key":"RateLimit-Reset","value":"505"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"584"},{"key":"ETag","value":"W/\"248-T6CPkKzT/Nliz6PwvGtRqnuFF1M\""},{"key":"Date","value":"Thu, 21 Nov 2024 20:10:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Friendly game fixed\",\n    \"gameDetails\": {\n        \"_id\": \"673f899d65f3ab38bafa80eb\",\n        \"user1Id\": \"66bf47b339f14426b71a3819\",\n        \"user2Id\": \"67123bac00af27a00903622a\",\n        \"requestedBy\": \"66bf47b339f14426b71a3819\",\n        \"status\": \"approved\",\n        \"address\": \"Chevron Drive, Lagos, Nigeria\",\n        \"geographicLocation\": [\n            6.4498157,\n            3.5306693\n        ],\n        \"scheduledTime\": \"2pm\",\n        \"gameFixed\": true,\n        \"createdAt\": \"2024-11-21T19:27:25.646Z\",\n        \"updatedAt\": \"2024-11-21T20:10:44.494Z\",\n        \"__v\": 0,\n        \"respondedBy\": \"67123bac00af27a00903622a\",\n        \"gameFixedBy\": \"67123bac00af27a00903622a\",\n        \"scheduledDate\": \"2025-03-21T00:00:00.000Z\",\n        \"id\": \"673f899d65f3ab38bafa80eb\"\n    }\n}"}],"_postman_id":"c7b352fa-915c-4b8e-a966-3891b7cb30ea"},{"name":"View Upcoming Friendly Games","id":"a814379d-cb21-4cd9-8b44-1c642fa9bb1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/friendly-game/upcoming?skip=0&limit=10","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","friendly-game","upcoming"],"host":["{{API_URL}}"],"query":[{"key":"skip","value":"0"},{"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"ec0aa33d-6445-476f-8cc1-38db9237e1dc","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/friendly-game/upcoming?skip=0&limit=10","host":["{{API_URL}}"],"path":["user","friendly-game","upcoming"],"query":[{"key":"skip","value":"0"},{"key":"limit","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"495"},{"key":"RateLimit-Reset","value":"749"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"629"},{"key":"ETag","value":"W/\"275-6y9TAkwuxR4405GQJJeE74HBB84\""},{"key":"Date","value":"Thu, 21 Nov 2024 20:21:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Friendly games retrieved\",\n    \"games\": [\n        {\n            \"_id\": \"673f899d65f3ab38bafa80eb\",\n            \"user1Id\": \"66bf47b339f14426b71a3819\",\n            \"user2Id\": \"67123bac00af27a00903622a\",\n            \"requestedBy\": \"66bf47b339f14426b71a3819\",\n            \"status\": \"approved\",\n            \"address\": \"Chevron Drive, Lagos, Nigeria\",\n            \"geographicLocation\": [\n                6.4498157,\n                3.5306693\n            ],\n            \"scheduledTime\": \"2pm\",\n            \"gameFixed\": true,\n            \"createdAt\": \"2024-11-21T19:27:25.646Z\",\n            \"updatedAt\": \"2024-11-21T20:21:37.195Z\",\n            \"__v\": 1,\n            \"respondedBy\": \"67123bac00af27a00903622a\",\n            \"gameFixedBy\": \"67123bac00af27a00903622a\",\n            \"scheduledDate\": \"2024-11-22T00:00:00.000Z\",\n            \"id\": \"673f899d65f3ab38bafa80eb\"\n        }\n    ],\n    \"skipValue\": 0,\n    \"limit\": 10,\n    \"itemsRetrieved\": 1\n}"}],"_postman_id":"a814379d-cb21-4cd9-8b44-1c642fa9bb1e"}],"id":"ffb78a44-e213-4332-b32d-23ce121ed549","description":"<p>Expected process is:</p>\n<ul>\n<li><p>Search for users in your division to play with.</p>\n</li>\n<li><p>View a user's profile (API for this is in the Profile folder)</p>\n</li>\n<li><p>Request a friendly game for this user</p>\n</li>\n<li><p>User approves or rejects your request</p>\n</li>\n<li><p>Fix time, address and date if user approves request</p>\n</li>\n<li><p>It is expected that you chat with this user for the fixing or approval of the request</p>\n</li>\n</ul>\n<p>In addition you can view all friendly games and retrives games by status</p>\n","_postman_id":"ffb78a44-e213-4332-b32d-23ce121ed549","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}},{"name":"Chat System (REST)","item":[{"name":"Search for users","id":"cdae8170-c779-451f-9932-6920b4ea7287","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/chat/search-users?username=golden&skip=0&limit=10","description":"<p>Find users through their username.</p>\n<p>Since we didn't use username in the user object, what the api expects is the first name or last name of the user. Please note that it has to be the full first name or last name of the user. Example, if the user's first name is Golden, gold would not work but golden would.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","chat","search-users"],"host":["{{API_URL}}"],"query":[{"key":"username","value":"golden"},{"description":{"content":"<p>optional</p>\n","type":"text/plain"},"key":"skip","value":"0"},{"description":{"content":"<p>optional. Default limit is set throughout the app as 20</p>\n","type":"text/plain"},"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"09f98f58-e46f-4f97-8961-ebebc1ef25a9","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/chat/search-users?username=golden&skip=0&limit=10","host":["{{API_URL}}"],"path":["user","chat","search-users"],"query":[{"key":"username","value":"golden"},{"key":"skip","value":"0","description":"optional"},{"key":"limit","value":"10","description":"optional. Default limit is set throughout the app as 20"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"498"},{"key":"RateLimit-Reset","value":"890"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ce6-BsnXWLUCXvOAvsCGzwqJYAEGDWk\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Date","value":"Tue, 18 Mar 2025 21:43:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully retrieved users\",\n    \"users\": [\n        {\n            \"_id\": \"671257e3973fcd7192f5e67c\",\n            \"firstName\": \"Golden\",\n            \"lastName\": \"Ogbeka\",\n            \"email\": \"ogbekagolden5@gmail.com\",\n            \"phoneNumber\": \"+2348169200134\",\n            \"ntfToken\": \"\",\n            \"active\": true,\n            \"isVerified\": false,\n            \"skillLevel\": \"1\",\n            \"skillLevelSet\": false,\n            \"allowedDistance\": 20,\n            \"preferredPlayType\": \"singles\",\n            \"address\": \"\",\n            \"signupType\": \"normal\",\n            \"createdAt\": \"2024-10-18T12:43:15.966Z\",\n            \"updatedAt\": \"2024-10-18T12:53:16.486Z\",\n            \"__v\": 1,\n            \"id\": \"671257e3973fcd7192f5e67c\"\n        },\n        {\n            \"_id\": \"67124e0d31775b5034769179\",\n            \"firstName\": \"Golden\",\n            \"lastName\": \"Ogbeka\",\n            \"email\": \"ogbekagolden4@gmail.com\",\n            \"phoneNumber\": \"+2348169200434\",\n            \"ntfToken\": \"\",\n            \"active\": true,\n            \"isVerified\": false,\n            \"skillLevel\": \"1\",\n            \"skillLevelSet\": false,\n            \"allowedDistance\": 20,\n            \"preferredPlayType\": \"singles\",\n            \"address\": \"\",\n            \"signupType\": \"normal\",\n            \"createdAt\": \"2024-10-18T12:01:17.338Z\",\n            \"updatedAt\": \"2024-10-18T12:11:18.174Z\",\n            \"__v\": 0,\n            \"id\": \"67124e0d31775b5034769179\"\n        },\n        {\n            \"_id\": \"671241465471cfb0e605bec8\",\n            \"firstName\": \"Golden\",\n            \"lastName\": \"Ogbeka\",\n            \"email\": \"ogbekagolden3@gmail.com\",\n            \"phoneNumber\": \"+2348169200414\",\n            \"ntfToken\": \"\",\n            \"active\": true,\n            \"isVerified\": true,\n            \"skillLevel\": \"2.5\",\n            \"skillLevelSet\": true,\n            \"allowedDistance\": 10,\n            \"preferredPlayType\": \"singles\",\n            \"address\": \"Alagbole Market, Alagbole - Akute Road, Lagos, Nigeria\",\n            \"signupType\": \"normal\",\n            \"createdAt\": \"2024-10-18T11:06:46.432Z\",\n            \"updatedAt\": \"2024-10-18T13:25:21.576Z\",\n            \"__v\": 3,\n            \"dateOfBirth\": \"2001-08-07T00:00:00.000Z\",\n            \"gender\": \"Male\",\n            \"geographicLocation\": [\n                6.6646692,\n                3.3527495\n            ],\n            \"id\": \"671241465471cfb0e605bec8\"\n        },\n        {\n            \"_id\": \"67123bac00af27a00903622a\",\n            \"firstName\": \"Golden\",\n            \"lastName\": \"Ogbeka\",\n            \"email\": \"ogbekagolden2@gmail.com\",\n            \"phoneNumber\": \"+2348169200451\",\n            \"ntfToken\": \"\",\n            \"active\": true,\n            \"isVerified\": true,\n            \"skillLevel\": \"1\",\n            \"skillLevelSet\": false,\n            \"allowedDistance\": 10,\n            \"preferredPlayType\": \"singles\",\n            \"address\": \"Alagbole bridge, Alagbole - Akute Road, Lagos, Nigeria\",\n            \"signupType\": \"normal\",\n            \"createdAt\": \"2024-10-18T10:42:52.120Z\",\n            \"updatedAt\": \"2024-10-18T11:03:05.449Z\",\n            \"__v\": 2,\n            \"geographicLocation\": [\n                6.6572404,\n                3.3542805\n            ],\n            \"dateOfBirth\": \"2001-08-07T00:00:00.000Z\",\n            \"gender\": \"Male\",\n            \"id\": \"67123bac00af27a00903622a\"\n        },\n        {\n            \"_id\": \"66fe4dc0d88da79221ad9dab\",\n            \"firstName\": \"Golden\",\n            \"lastName\": \"Ogbeka\",\n            \"email\": \"goldenogbeka@gmail.com\",\n            \"phoneNumber\": \"\",\n            \"ntfToken\": \"\",\n            \"active\": true,\n            \"isVerified\": true,\n            \"skillLevel\": \"1\",\n            \"skillLevelSet\": false,\n            \"allowedDistance\": 10,\n            \"preferredPlayType\": \"singles\",\n            \"address\": \"\",\n            \"profileImage\": \"https://lh3.googleusercontent.com/a/ACg8ocIeNacbP1lm6cstcURZ44cJoJnYeic-FM3ScP54YV3cva8lzQ=s100\",\n            \"createdAt\": \"2024-10-03T07:54:41.009Z\",\n            \"updatedAt\": \"2024-10-03T08:19:02.351Z\",\n            \"__v\": 0,\n            \"signupType\": \"google\",\n            \"id\": \"66fe4dc0d88da79221ad9dab\"\n        },\n        {\n            \"signupType\": \"normal\",\n            \"_id\": \"66bf47b339f14426b71a3819\",\n            \"firstName\": \"Golden\",\n            \"lastName\": \"Ogbeka\",\n            \"email\": \"ogbekagolden@gmail.com\",\n            \"phoneNumber\": \"+2348169200454\",\n            \"ntfToken\": \"\",\n            \"active\": true,\n            \"isVerified\": true,\n            \"createdAt\": \"2024-08-16T12:36:03.462Z\",\n            \"updatedAt\": \"2024-09-04T18:25:16.687Z\",\n            \"__v\": 2,\n            \"address\": \"Alagbole bridge, Alagbole - Akute Road, Lagos, Nigeria\",\n            \"allowedDistance\": 10,\n            \"geographicLocation\": [\n                6.6572404,\n                3.3542805\n            ],\n            \"preferredPlayType\": \"singles\",\n            \"skillLevel\": \"4\",\n            \"skillLevelSet\": true,\n            \"profileImage\": \"https://res.cloudinary.com/goldenogbeka/image/upload/v1724104352/Tennis%20Slide/xeqtcjd6aea8r0bdodi4.jpg\",\n            \"id\": \"66bf47b339f14426b71a3819\"\n        }\n    ],\n    \"skipValue\": 0,\n    \"limit\": 10,\n    \"itemsRetrieved\": 6\n}"}],"_postman_id":"cdae8170-c779-451f-9932-6920b4ea7287"},{"name":"Send Message (REST)","id":"12e87be5-8b88-4bb5-bcae-b55d8915a67f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"receiverId\": \"67123bac00af27a00903622a\",\r\n    \"message\": \"This is from the Rest Endpoint 2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/chat/send-message","description":"<p>This is a RESTful implementation of the socket connection. This shouldn't be used for chatting. However, if you want to test if the messages are going through, sure you can use it</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","chat","send-message"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"39c8cb57-dcfa-4657-b61c-4d1b7e4e8e52","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"receiverId\": \"67123bac00af27a00903622a\",\r\n    \"message\": \"This is from the Rest Endpoint 2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/chat/send-message"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"499"},{"key":"RateLimit-Reset","value":"900"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"379"},{"key":"ETag","value":"W/\"17b-GuiyaN1gXSEo5T55AD32EAsfSYY\""},{"key":"Date","value":"Tue, 18 Mar 2025 21:58:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Message sent\",\n    \"messageDetails\": {\n        \"conversationId\": \"67d4519e1844d98254a7d4f4\",\n        \"senderId\": \"66bf47b339f14426b71a3819\",\n        \"receiverId\": \"67123bac00af27a00903622a\",\n        \"message\": \"This is from the Rest Endpoint 2\",\n        \"status\": \"sent\",\n        \"_id\": \"67d9ec8c69359da14d232985\",\n        \"createdAt\": \"2025-03-18T21:58:36.815Z\",\n        \"updatedAt\": \"2025-03-18T21:58:36.815Z\",\n        \"__v\": 0,\n        \"id\": \"67d9ec8c69359da14d232985\"\n    }\n}"}],"_postman_id":"12e87be5-8b88-4bb5-bcae-b55d8915a67f"},{"name":"Get user conversations","id":"c771c607-8b40-49bd-b342-25f6190de104","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/chat/conversations?skip=0&limit=10","description":"<p>This would list out all the conversations a user has had with other users.</p>\n<p>This returns the list of conversations and groups the messages for you to then use to know how many messages haven't been read by the user</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","chat","conversations"],"host":["{{API_URL}}"],"query":[{"description":{"content":"<p>optional</p>\n","type":"text/plain"},"key":"skip","value":"0"},{"description":{"content":"<p>optional</p>\n","type":"text/plain"},"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"b044f77b-6bf7-481d-b6da-5d1a603b8e00","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/chat/conversations?skip=0&limit=10","host":["{{API_URL}}"],"path":["user","chat","conversations"],"query":[{"key":"skip","value":"0","description":"optional"},{"key":"limit","value":"10","description":"optional"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"497"},{"key":"RateLimit-Reset","value":"809"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"57c-lrFuO1YzNg34zhBahRxl0qs7I1U\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Date","value":"Tue, 18 Mar 2025 22:00:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Conversations retrieved\",\n    \"conversations\": [\n        {\n            \"_id\": \"67d4519e1844d98254a7d4f4\",\n            \"user1Id\": \"66bf47b339f14426b71a3819\",\n            \"user2Id\": \"67123bac00af27a00903622a\",\n            \"updatedAt\": \"2025-03-14T15:56:14.564Z\",\n            \"messages\": [\n                {\n                    \"_id\": \"67d4519e1844d98254a7d4f6\",\n                    \"conversationId\": \"67d4519e1844d98254a7d4f4\",\n                    \"senderId\": \"66bf47b339f14426b71a3819\",\n                    \"receiverId\": \"67123bac00af27a00903622a\",\n                    \"message\": \"How are you\",\n                    \"status\": \"delivered\",\n                    \"createdAt\": \"2025-03-14T15:56:14.832Z\",\n                    \"updatedAt\": \"2025-03-14T15:56:15.046Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"67d451dc1844d98254a7d4fa\",\n                    \"conversationId\": \"67d4519e1844d98254a7d4f4\",\n                    \"senderId\": \"67123bac00af27a00903622a\",\n                    \"receiverId\": \"66bf47b339f14426b71a3819\",\n                    \"message\": \"I am doing fine o\",\n                    \"status\": \"delivered\",\n                    \"createdAt\": \"2025-03-14T15:57:16.284Z\",\n                    \"updatedAt\": \"2025-03-14T15:57:16.506Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"67d9ec152b5505b0185abcbf\",\n                    \"conversationId\": \"67d4519e1844d98254a7d4f4\",\n                    \"senderId\": \"66bf47b339f14426b71a3819\",\n                    \"receiverId\": \"67123bac00af27a00903622a\",\n                    \"message\": \"This is from the Rest Endpoint\",\n                    \"status\": \"sent\",\n                    \"createdAt\": \"2025-03-18T21:56:37.293Z\",\n                    \"updatedAt\": \"2025-03-18T21:56:37.293Z\",\n                    \"__v\": 0\n                },\n                {\n                    \"_id\": \"67d9ec8c69359da14d232985\",\n                    \"conversationId\": \"67d4519e1844d98254a7d4f4\",\n                    \"senderId\": \"66bf47b339f14426b71a3819\",\n                    \"receiverId\": \"67123bac00af27a00903622a\",\n                    \"message\": \"This is from the Rest Endpoint 2\",\n                    \"status\": \"sent\",\n                    \"createdAt\": \"2025-03-18T21:58:36.815Z\",\n                    \"updatedAt\": \"2025-03-18T21:58:36.815Z\",\n                    \"__v\": 0\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"c771c607-8b40-49bd-b342-25f6190de104"},{"name":"Get Conversation History","id":"5f765f04-9dcf-47b3-968a-e72e3eb6a774","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/chat/conversation-history/:conversationId","description":"<p>This is what you would then use to fetch the messages that have been sent and received between two users.</p>\n<p>First get all conversations, then get a single conversation's history</p>\n<p>The history is grouped in messages and the date they were sent. This is to make it possible for the client to differentiate the dates and times when messages were sent</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","chat","conversation-history",":conversationId"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"67d4519e1844d98254a7d4f4","key":"conversationId"}]}},"response":[{"id":"f70a82e8-7186-4a60-8beb-799386a01f81","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/chat/conversation-history/:conversationId","host":["{{API_URL}}"],"path":["user","chat","conversation-history",":conversationId"],"variable":[{"key":"conversationId","value":"67d4519e1844d98254a7d4f4"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"499"},{"key":"RateLimit-Reset","value":"900"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"676"},{"key":"ETag","value":"W/\"2a4-IWlZeLcVikHLoOFB4OWBNBa2Njw\""},{"key":"Date","value":"Tue, 18 Mar 2025 22:19:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Conversation history retrieved\",\n    \"conversationHistory\": [\n        {\n            \"messages\": [\n                {\n                    \"_id\": \"67d451dc1844d98254a7d4fa\",\n                    \"senderId\": \"67123bac00af27a00903622a\",\n                    \"receiverId\": \"66bf47b339f14426b71a3819\",\n                    \"message\": \"I am doing fine o\",\n                    \"status\": \"delivered\",\n                    \"createdAt\": \"2025-03-14T15:57:16.284Z\",\n                    \"date\": \"2025-03-14\"\n                },\n                {\n                    \"_id\": \"67d4519e1844d98254a7d4f6\",\n                    \"senderId\": \"66bf47b339f14426b71a3819\",\n                    \"receiverId\": \"67123bac00af27a00903622a\",\n                    \"message\": \"How are you\",\n                    \"status\": \"delivered\",\n                    \"createdAt\": \"2025-03-14T15:56:14.832Z\",\n                    \"date\": \"2025-03-14\"\n                }\n            ],\n            \"date\": \"2025-03-14\"\n        },\n        {\n            \"messages\": [\n                {\n                    \"_id\": \"67d9ec8c69359da14d232985\",\n                    \"senderId\": \"66bf47b339f14426b71a3819\",\n                    \"receiverId\": \"67123bac00af27a00903622a\",\n                    \"message\": \"This is from the Rest Endpoint 2\",\n                    \"status\": \"sent\",\n                    \"createdAt\": \"2025-03-18T21:58:36.815Z\",\n                    \"date\": \"2025-03-18\"\n                },\n                {\n                    \"_id\": \"67d9ec152b5505b0185abcbf\",\n                    \"senderId\": \"66bf47b339f14426b71a3819\",\n                    \"receiverId\": \"67123bac00af27a00903622a\",\n                    \"message\": \"This is from the Rest Endpoint\",\n                    \"status\": \"sent\",\n                    \"createdAt\": \"2025-03-18T21:56:37.293Z\",\n                    \"date\": \"2025-03-18\"\n                }\n            ],\n            \"date\": \"2025-03-18\"\n        }\n    ]\n}"}],"_postman_id":"5f765f04-9dcf-47b3-968a-e72e3eb6a774"}],"id":"c8675db1-c922-4535-b125-9f530410d52a","description":"<p>This contains the RESTful APIs for the chat system.<br />Please refer to the Chat System Socket Documentation for real time socket connections.</p>\n<p>This apis are for fetching chat history or carrying out <strong>restful</strong> operations.</p>\n<p>Chat message status options are: sent, delivered and read.</p>\n<ul>\n<li><p>Sent: When the message is initially sent</p>\n</li>\n<li><p>Delivered: When the user has received the message that was sent</p>\n</li>\n<li><p>Read: When the user has read the message that was received</p>\n</li>\n</ul>\n","_postman_id":"c8675db1-c922-4535-b125-9f530410d52a","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}},{"name":"Notification","item":[{"name":"Get All Notifications","id":"983b540c-9933-4de3-973c-ee324b795be4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/notification?page=1","description":"<h3 id=\"get-user-notifications\">Get User Notifications</h3>\n<p>This endpoint retrieves a list of notifications for the user.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>Endpoint: <code>{{API_URL}}/user/notification</code></p>\n</li>\n<li><p>Query Parameters:</p>\n<ul>\n<li><code>page</code> (integer, optional): The page number for paginated results.</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will contain a JSON object with the following properties:</p>\n<ul>\n<li><p><code>message</code> (string): A message related to the response.</p>\n</li>\n<li><p><code>allNotifications</code> (object):</p>\n<ul>\n<li><p><code>results</code> (array): An array of notification objects, each containing the following properties:</p>\n<ul>\n<li><p><code>_id</code> (string): The unique identifier of the notification.</p>\n</li>\n<li><p><code>userId</code> (string): The user ID associated with the notification.</p>\n</li>\n<li><p><code>title</code> (string): The title of the notification.</p>\n</li>\n<li><p><code>message</code> (string): The content of the notification message.</p>\n</li>\n<li><p><code>type</code> (string): The type of notification.</p>\n</li>\n<li><p><code>read</code> (boolean): Indicates whether the notification has been read.</p>\n</li>\n<li><p><code>sentBy</code> (string): The sender of the notification.</p>\n</li>\n<li><p><code>createdAt</code> (string): The timestamp when the notification was created.</p>\n</li>\n<li><p><code>updatedAt</code> (string): The timestamp when the notification was last updated.</p>\n</li>\n<li><p><code>__v</code> (integer): Version control field.</p>\n</li>\n<li><p><code>id</code> (string): The unique identifier of the notification.</p>\n</li>\n</ul>\n</li>\n<li><p><code>pagination</code> (object): Pagination information with the following properties:</p>\n<ul>\n<li><p><code>totalResults</code> (integer): The total number of results available.</p>\n</li>\n<li><p><code>resultsPerPage</code> (integer): The number of results per page.</p>\n</li>\n<li><p><code>totalPages</code> (integer): The total number of pages.</p>\n</li>\n<li><p><code>currentPage</code> (integer): The current page number.</p>\n</li>\n<li><p><code>pagingCounter</code> (integer): The paging counter.</p>\n</li>\n<li><p><code>hasPrevPage</code> (boolean): Indicates if there is a previous page.</p>\n</li>\n<li><p><code>hasNextPage</code> (boolean): Indicates if there is a next page.</p>\n</li>\n<li><p><code>prevPage</code> (null or integer): The previous page number.</p>\n</li>\n<li><p><code>nextPage</code> (null or integer): The next page number.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","notification"],"host":["{{API_URL}}"],"query":[{"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"80f6498f-64c1-4cc8-94b8-0add6650d08b","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/notification?page=1","host":["{{API_URL}}"],"path":["user","notification"],"query":[{"key":"page","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"481"},{"key":"RateLimit-Reset","value":"191"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"d81-oQwq+qCxkmQ4Ap165jnpGBqkc84\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Date","value":"Fri, 09 May 2025 04:52:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Notifications retrieved\",\n    \"allNotifications\": {\n        \"results\": [\n            {\n                \"_id\": \"681d883e88f4af995578adaa\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Notification from Admin\",\n                \"message\": \"Thank you Everyone for choosing Tennislides as your go to platform!!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-05-09T04:44:46.455Z\",\n                \"updatedAt\": \"2025-05-09T04:44:46.455Z\",\n                \"__v\": 0,\n                \"id\": \"681d883e88f4af995578adaa\"\n            },\n            {\n                \"_id\": \"681c7fb52f6358527dbcc3b4\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-05-08T09:56:05.131Z\",\n                \"updatedAt\": \"2025-05-08T09:56:05.131Z\",\n                \"__v\": 0,\n                \"id\": \"681c7fb52f6358527dbcc3b4\"\n            },\n            {\n                \"_id\": \"681c7e252f6358527dbcc38e\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-05-08T09:49:25.985Z\",\n                \"updatedAt\": \"2025-05-08T09:49:25.985Z\",\n                \"__v\": 0,\n                \"id\": \"681c7e252f6358527dbcc38e\"\n            },\n            {\n                \"_id\": \"681b77e14c14a033275fb7c3\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-05-07T15:10:25.394Z\",\n                \"updatedAt\": \"2025-05-07T15:10:25.394Z\",\n                \"__v\": 0,\n                \"id\": \"681b77e14c14a033275fb7c3\"\n            },\n            {\n                \"_id\": \"681b75ffe2d186d678687c6c\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-05-07T15:02:23.590Z\",\n                \"updatedAt\": \"2025-05-07T15:02:23.590Z\",\n                \"__v\": 0,\n                \"id\": \"681b75ffe2d186d678687c6c\"\n            },\n            {\n                \"_id\": \"681b7391f6057a9d98230458\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-05-07T14:52:01.862Z\",\n                \"updatedAt\": \"2025-05-07T14:52:01.862Z\",\n                \"__v\": 0,\n                \"id\": \"681b7391f6057a9d98230458\"\n            },\n            {\n                \"_id\": \"6819280a50bea977431ba587\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-05-05T21:05:14.832Z\",\n                \"updatedAt\": \"2025-05-05T21:05:14.832Z\",\n                \"__v\": 0,\n                \"id\": \"6819280a50bea977431ba587\"\n            },\n            {\n                \"_id\": \"6817a04903ff5f8a4af39118\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-05-04T17:13:45.072Z\",\n                \"updatedAt\": \"2025-05-04T17:13:45.072Z\",\n                \"__v\": 0,\n                \"id\": \"6817a04903ff5f8a4af39118\"\n            },\n            {\n                \"_id\": \"68095c468619a49423be10bf\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Notification from Admin\",\n                \"message\": \"Thank you Everyone for choosing Tennislides as your go to platform!!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-04-23T21:31:50.142Z\",\n                \"updatedAt\": \"2025-04-23T21:31:50.142Z\",\n                \"__v\": 0,\n                \"id\": \"68095c468619a49423be10bf\"\n            },\n            {\n                \"_id\": \"680559fc2e146c2910757ad1\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Notification from Admin\",\n                \"message\": \"Thank you for using Tennis Slides\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-04-20T20:33:00.823Z\",\n                \"updatedAt\": \"2025-04-20T20:33:00.823Z\",\n                \"__v\": 0,\n                \"id\": \"680559fc2e146c2910757ad1\"\n            }\n        ],\n        \"pagination\": {\n            \"totalResults\": 10,\n            \"resultsPerPage\": 20,\n            \"totalPages\": 1,\n            \"currentPage\": 1,\n            \"pagingCounter\": 1,\n            \"hasPrevPage\": false,\n            \"hasNextPage\": false,\n            \"prevPage\": null,\n            \"nextPage\": null\n        }\n    }\n}"}],"_postman_id":"983b540c-9933-4de3-973c-ee324b795be4"},{"name":"Get All Notifications By Status","id":"b7061a90-ebb5-4b27-849e-fee90f6b1d3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/notification/status?page=1&read=false","description":"<h1 id=\"get-user-notification-status\">Get User Notification Status</h1>\n<p>This endpoint retrieves the notification status for a user, with pagination enabled.</p>\n<h2 id=\"purpose\">Purpose</h2>\n<p>This request is used to fetch the notification status for a user, including unread notifications, with the ability to paginate through the results.</p>\n<h2 id=\"request\">Request</h2>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{API_URL}}/user/notification/status?page=1&amp;read=false</code></p>\n</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<p>The response will include the notification status for the user, including unread notifications. The structure of the response will include:</p>\n<ul>\n<li><p><code>message</code>: A message, if any</p>\n</li>\n<li><p><code>allNotifications</code>: An object containing the notification results and pagination information</p>\n<ul>\n<li><p><code>results</code>: An array of notification objects, each containing:</p>\n<ul>\n<li><p><code>_id</code></p>\n</li>\n<li><p><code>userId</code></p>\n</li>\n<li><p><code>title</code></p>\n</li>\n<li><p><code>message</code></p>\n</li>\n<li><p><code>teamId</code></p>\n</li>\n<li><p><code>type</code></p>\n</li>\n<li><p><code>read</code>: Indicates if the notification has been read</p>\n</li>\n<li><p><code>sentBy</code></p>\n</li>\n<li><p><code>createdAt</code></p>\n</li>\n<li><p><code>updatedAt</code></p>\n</li>\n<li><p><code>__v</code></p>\n</li>\n<li><p><code>id</code></p>\n</li>\n</ul>\n</li>\n<li><p><code>pagination</code>: Object containing pagination details</p>\n<ul>\n<li><p><code>totalResults</code>: Total number of results</p>\n</li>\n<li><p><code>resultsPerPage</code>: Number of results per page</p>\n</li>\n<li><p><code>totalPages</code>: Total number of pages</p>\n</li>\n<li><p><code>currentPage</code>: Current page number</p>\n</li>\n<li><p><code>pagingCounter</code></p>\n</li>\n<li><p><code>hasPrevPage</code>: Indicates if there is a previous page</p>\n</li>\n<li><p><code>hasNextPage</code>: Indicates if there is a next page</p>\n</li>\n<li><p><code>prevPage</code>: Previous page number</p>\n</li>\n<li><p><code>nextPage</code>: Next page number</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h2 id=\"required-parameters\">Required Parameters</h2>\n<ul>\n<li><p><code>page</code>: Page number</p>\n</li>\n<li><p><code>read</code>: Indicates if the notifications should be filtered by read status</p>\n</li>\n</ul>\n<h2 id=\"additional-notes\">Additional Notes</h2>\n<ul>\n<li>Pagination is enabled for this request.</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","notification","status"],"host":["{{API_URL}}"],"query":[{"key":"page","value":"1"},{"key":"read","value":"false"}],"variable":[]}},"response":[{"id":"aa415b52-cfc7-4e9f-80e6-4f5a6492804a","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/notification/status?page=1&read=false","host":["{{API_URL}}"],"path":["user","notification","status"],"query":[{"key":"page","value":"1"},{"key":"read","value":"false"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"479"},{"key":"RateLimit-Reset","value":"137"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"d81-oQwq+qCxkmQ4Ap165jnpGBqkc84\""},{"key":"Content-Encoding","value":"gzip"},{"key":"Date","value":"Fri, 09 May 2025 04:53:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Notifications retrieved\",\n    \"allNotifications\": {\n        \"results\": [\n            {\n                \"_id\": \"681d883e88f4af995578adaa\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Notification from Admin\",\n                \"message\": \"Thank you Everyone for choosing Tennislides as your go to platform!!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-05-09T04:44:46.455Z\",\n                \"updatedAt\": \"2025-05-09T04:44:46.455Z\",\n                \"__v\": 0,\n                \"id\": \"681d883e88f4af995578adaa\"\n            },\n            {\n                \"_id\": \"681c7fb52f6358527dbcc3b4\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-05-08T09:56:05.131Z\",\n                \"updatedAt\": \"2025-05-08T09:56:05.131Z\",\n                \"__v\": 0,\n                \"id\": \"681c7fb52f6358527dbcc3b4\"\n            },\n            {\n                \"_id\": \"681c7e252f6358527dbcc38e\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-05-08T09:49:25.985Z\",\n                \"updatedAt\": \"2025-05-08T09:49:25.985Z\",\n                \"__v\": 0,\n                \"id\": \"681c7e252f6358527dbcc38e\"\n            },\n            {\n                \"_id\": \"681b77e14c14a033275fb7c3\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-05-07T15:10:25.394Z\",\n                \"updatedAt\": \"2025-05-07T15:10:25.394Z\",\n                \"__v\": 0,\n                \"id\": \"681b77e14c14a033275fb7c3\"\n            },\n            {\n                \"_id\": \"681b75ffe2d186d678687c6c\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-05-07T15:02:23.590Z\",\n                \"updatedAt\": \"2025-05-07T15:02:23.590Z\",\n                \"__v\": 0,\n                \"id\": \"681b75ffe2d186d678687c6c\"\n            },\n            {\n                \"_id\": \"681b7391f6057a9d98230458\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-05-07T14:52:01.862Z\",\n                \"updatedAt\": \"2025-05-07T14:52:01.862Z\",\n                \"__v\": 0,\n                \"id\": \"681b7391f6057a9d98230458\"\n            },\n            {\n                \"_id\": \"6819280a50bea977431ba587\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-05-05T21:05:14.832Z\",\n                \"updatedAt\": \"2025-05-05T21:05:14.832Z\",\n                \"__v\": 0,\n                \"id\": \"6819280a50bea977431ba587\"\n            },\n            {\n                \"_id\": \"6817a04903ff5f8a4af39118\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Global Alert\",\n                \"message\": \"This goes to all users!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-05-04T17:13:45.072Z\",\n                \"updatedAt\": \"2025-05-04T17:13:45.072Z\",\n                \"__v\": 0,\n                \"id\": \"6817a04903ff5f8a4af39118\"\n            },\n            {\n                \"_id\": \"68095c468619a49423be10bf\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Notification from Admin\",\n                \"message\": \"Thank you Everyone for choosing Tennislides as your go to platform!!\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-04-23T21:31:50.142Z\",\n                \"updatedAt\": \"2025-04-23T21:31:50.142Z\",\n                \"__v\": 0,\n                \"id\": \"68095c468619a49423be10bf\"\n            },\n            {\n                \"_id\": \"680559fc2e146c2910757ad1\",\n                \"userId\": \"680218a9eab653d658b7d09e\",\n                \"title\": \"Notification from Admin\",\n                \"message\": \"Thank you for using Tennis Slides\",\n                \"type\": \"general-notification\",\n                \"read\": false,\n                \"sentBy\": \"admin\",\n                \"createdAt\": \"2025-04-20T20:33:00.823Z\",\n                \"updatedAt\": \"2025-04-20T20:33:00.823Z\",\n                \"__v\": 0,\n                \"id\": \"680559fc2e146c2910757ad1\"\n            }\n        ],\n        \"pagination\": {\n            \"totalResults\": 10,\n            \"resultsPerPage\": 20,\n            \"totalPages\": 1,\n            \"currentPage\": 1,\n            \"pagingCounter\": 1,\n            \"hasPrevPage\": false,\n            \"hasNextPage\": false,\n            \"prevPage\": null,\n            \"nextPage\": null\n        }\n    }\n}"}],"_postman_id":"b7061a90-ebb5-4b27-849e-fee90f6b1d3d"},{"name":"Get Notification Details","id":"f85d11c4-cfc2-4768-9ca0-c2167c6e93d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/notification/details/:notificationId","description":"<h3 id=\"retrieves-a-single-notification-details\">Retrieves a Single Notification Details</h3>\n<p>This endpoint retrieves the details of a specific notification identified by the <code>notificationId</code>.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: <code>GET</code></p>\n</li>\n<li><p>URL: <code>{{API_URL}}/user/notification/details/:notificationId</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"\",\n    \"notification\": {\n        \"id\": \"\",\n        \"title\": \"\",\n        \"message\": \"\",\n        \"type\": \"\",\n        \"read\": true,\n        \"createdAt\": \"\",\n        \"details\": null\n    }\n}\n\n</code></pre>\n<p>The response will contain the <code>message</code> and <code>notification</code> object with properties such as <code>id</code>, <code>title</code>, <code>message</code>, <code>type</code>, <code>read</code>, <code>createdAt</code>, and <code>details</code>. The <code>details</code> property can be an object or null.</p>\n<p>Please note that the actual response may contain additional properties based on the specific notification type.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","notification","details",":notificationId"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"681d883e88f4af995578adaa","key":"notificationId"}]}},"response":[{"id":"19d267a7-90f7-45e5-9431-b2717e020a2e","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/notification/details/:notificationId","host":["{{API_URL}}"],"path":["user","notification","details",":notificationId"],"variable":[{"key":"notificationId","value":"681d883e88f4af995578adaa"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"478"},{"key":"RateLimit-Reset","value":"110"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"531"},{"key":"ETag","value":"W/\"213-gkX148tbawqL0TRL7FYbmyEeRjo\""},{"key":"Date","value":"Fri, 09 May 2025 04:53:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Notification retrieved\",\n    \"notification\": {\n        \"_id\": \"681d883e88f4af995578adaa\",\n        \"userId\": \"680218a9eab653d658b7d09e\",\n        \"title\": \"Notification from Admin\",\n        \"message\": \"Thank you Everyone for choosing Tennislides as your go to platform!!\",\n        \"type\": \"general-notification\",\n        \"read\": false,\n        \"sentBy\": \"admin\",\n        \"createdAt\": \"2025-05-09T04:44:46.455Z\",\n        \"updatedAt\": \"2025-05-09T04:44:46.455Z\",\n        \"__v\": 0,\n        \"paymentDetails\": null,\n        \"seasonGameDetails\": null,\n        \"friendlyGameDetails\": null,\n        \"registrationDetails\": null,\n        \"id\": \"681d883e88f4af995578adaa\",\n        \"details\": null\n    }\n}"}],"_postman_id":"f85d11c4-cfc2-4768-9ca0-c2167c6e93d9"},{"name":"Toggle Notification Status","id":"cae2dbc6-0b5f-4175-92e7-c8dfeaa5192d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"read\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/user/notification/toggle-read-status/:notificationId","description":"<p>This is to either mark a notification as read or unread.<br />Value passed can be either true or false</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","notification","toggle-read-status",":notificationId"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"681d883e88f4af995578adaa","key":"notificationId"}]}},"response":[{"id":"ad9dda92-cbae-4e7f-b429-6f6f05d23d73","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"read\": false\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{API_URL}}/user/notification/toggle-read-status/:notificationId","host":["{{API_URL}}"],"path":["user","notification","toggle-read-status",":notificationId"],"variable":[{"key":"notificationId","value":"681d883e88f4af995578adaa"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"475"},{"key":"RateLimit-Reset","value":"73"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"464"},{"key":"ETag","value":"W/\"1d0-HNgJeQT6dwk3xw7LC256RLfWPPU\""},{"key":"Date","value":"Fri, 09 May 2025 04:54:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Notification status updated\",\n    \"notificationDetails\": {\n        \"_id\": \"681d883e88f4af995578adaa\",\n        \"userId\": \"680218a9eab653d658b7d09e\",\n        \"title\": \"Notification from Admin\",\n        \"message\": \"Thank you Everyone for choosing Tennislides as your go to platform!!\",\n        \"type\": \"general-notification\",\n        \"read\": false,\n        \"sentBy\": \"admin\",\n        \"adminId\": \"66b2667624010cf2ede80777\",\n        \"createdAt\": \"2025-05-09T04:44:46.455Z\",\n        \"updatedAt\": \"2025-05-09T04:54:12.877Z\",\n        \"__v\": 0,\n        \"id\": \"681d883e88f4af995578adaa\"\n    }\n}"}],"_postman_id":"cae2dbc6-0b5f-4175-92e7-c8dfeaa5192d"},{"name":"Mark All Notifications As Read","id":"3a6c87e8-7b59-4263-9ce5-7b0db847a1ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/notification/mark-all-read","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","notification","mark-all-read"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"75f0fe53-6887-49fd-a066-770126b00e55","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/notification/mark-all-read"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"474"},{"key":"RateLimit-Reset","value":"46"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"59"},{"key":"ETag","value":"W/\"3b-62whxqM4Jx9JiELydceWq3thhxY\""},{"key":"Date","value":"Fri, 09 May 2025 04:54:40 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully marked all notifications as read\"\n}"}],"_postman_id":"3a6c87e8-7b59-4263-9ce5-7b0db847a1ba"},{"name":"Delete Notification","id":"8d6ee41c-a9c3-4397-8145-bcc280ecc6d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/notification/remove/:notificationId","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","notification","remove",":notificationId"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"681d883e88f4af995578adaa","key":"notificationId"}]}},"response":[{"id":"62e28df7-5337-4763-8991-be0f6d6e957f","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{API_URL}}/user/notification/remove/:notificationId","host":["{{API_URL}}"],"path":["user","notification","remove",":notificationId"],"variable":[{"key":"notificationId","value":"681d883e88f4af995578adaa"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"499"},{"key":"RateLimit-Reset","value":"900"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"48"},{"key":"ETag","value":"W/\"30-p/8QZEUCOEsJ1fyeNgdMxYv3dn0\""},{"key":"Date","value":"Fri, 09 May 2025 04:55:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Notification deleted Successfully!\"\n}"}],"_postman_id":"8d6ee41c-a9c3-4397-8145-bcc280ecc6d2"},{"name":"Delete All Notifications","id":"5af34773-87ba-4564-8fd4-6c19a62f0068","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/notification/remove-all","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}},"urlObject":{"path":["user","notification","remove-all"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"596a4fc9-4ff6-46ef-a06f-859316d08d50","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{API_URL}}/user/notification/remove-all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"RateLimit-Policy","value":"500;w=900"},{"key":"RateLimit-Limit","value":"500"},{"key":"RateLimit-Remaining","value":"498"},{"key":"RateLimit-Reset","value":"880"},{"key":"Vary","value":"Origin, Accept-Encoding"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"52"},{"key":"ETag","value":"W/\"34-Tr2SqdV28cPHHNnalSrgxQK/29w\""},{"key":"Date","value":"Fri, 09 May 2025 04:55:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully deleted all notifications\"\n}"}],"_postman_id":"5af34773-87ba-4564-8fd4-6c19a62f0068"}],"id":"9023a610-0781-41eb-a94b-5e987366faa7","description":"<p><em>Personal Notification Center</em></p>\n<p>Users can:</p>\n<ul>\n<li><p><strong>View all notifications</strong> in their personal inbox</p>\n</li>\n<li><p><strong>Mark messages</strong> as read/unread</p>\n</li>\n<li><p><strong>Customize preferences</strong> (turn specific notification types on/off)</p>\n</li>\n<li><p><strong>Clean up</strong> (delete single or all notifications)</p>\n</li>\n</ul>\n<p><em>Key Benefit:</em><br />Users control which notifications they receive while staying informed about important updates.</p>\n","_postman_id":"9023a610-0781-41eb-a94b-5e987366faa7","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}}],"id":"b9f8d915-1a20-4103-a820-7c396e8d99d2","_postman_id":"b9f8d915-1a20-4103-a820-7c396e8d99d2","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","id":"dff4c114-007e-4c2f-996c-dc6e417c4efb","name":"Tennis Slide","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{API_KEY}}"}]}},"event":[{"listen":"prerequest","script":{"id":"d76d7a76-bba6-4d0c-8842-8431536dbc3c","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"12b9edbe-d7e4-43ae-b0db-0d4efb0a49b3","type":"text/javascript","packages":{},"exec":[""]}}]}