{"info":{"_postman_id":"abb70e01-5df5-42b2-ade0-2acdad583129","name":"Synote API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"10657913","collectionId":"abb70e01-5df5-42b2-ade0-2acdad583129","publishedId":"UzXUPtsJ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-07-29T10:32:30.000Z"},"item":[{"name":"Login","id":"e605a07e-07ac-42e9-8422-903dd5035ea8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"mikethedev\",\r\n    \"password\": \"test\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://synote.test/api/login","urlObject":{"path":["login"],"host":["https://synote.test/api"],"query":[],"variable":[]}},"response":[{"id":"9bfa5012-a2bc-4366-8a73-b2e729e5da04","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"mikethedev\",\r\n    \"password\": \"test\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://synote.test/api/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 28 Jul 2022 15:27:41 GMT"},{"key":"Server","value":"Apache/2.4.54 (Win64) OpenSSL/1.1.1o PHP/7.4.30"},{"key":"X-Powered-By","value":"PHP/7.4.30"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"88"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Login successful\",\n    \"userID\": \"bCpOZ0AtRZ7Ma7fERDERVKLw4dKMU2+K\"\n}"},{"id":"7a047389-0c37-4084-b9d8-da449b8a8413","name":"Login (error example)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"mikethedevv\",\r\n    \"password\": \"test\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://synote.test/api/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 28 Jul 2022 15:29:13 GMT"},{"key":"Server","value":"Apache/2.4.54 (Win64) OpenSSL/1.1.1o PHP/7.4.30"},{"key":"X-Powered-By","value":"PHP/7.4.30"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"52"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": true,\n    \"message\": \"Invalid login credentials\"\n}"}],"_postman_id":"e605a07e-07ac-42e9-8422-903dd5035ea8"},{"name":"Register","id":"e5793836-700c-4d41-b2e7-a5bb6ad681c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"regites\",\r\n    \"password\": \"register\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://synote.test/api/register","urlObject":{"path":["register"],"host":["https://synote.test/api"],"query":[],"variable":[]}},"response":[{"id":"0c055a54-99fc-49dd-967a-f2ae12bd83ae","name":"Register","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"regites\",\r\n    \"password\": \"register\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://synote.test/api/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 28 Jul 2022 15:28:44 GMT"},{"key":"Server","value":"Apache/2.4.54 (Win64) OpenSSL/1.1.1o PHP/7.4.30"},{"key":"X-Powered-By","value":"PHP/7.4.30"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"96"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Registration successful\",\n    \"userID\": \"an8cMk0pQZ7MPOHKQzEXW/H244COUz+P\"\n}"}],"_postman_id":"e5793836-700c-4d41-b2e7-a5bb6ad681c4"},{"name":"Get Notes","id":"69c074b2-def5-4777-b46f-457f731f5e0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userID\" : \"PioZYk0vE52eYbTFFm1GDqelsYzdD2+M\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://synote.test/api/get-notes","urlObject":{"path":["get-notes"],"host":["https://synote.test/api"],"query":[],"variable":[]}},"response":[{"id":"c5930c9a-adb8-4df9-8b62-020e4b5c28fe","name":"Get Notes","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userID\" : \"PioZYk0vE52eYbTFFm1GDqelsYzdD2+M\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://synote.test/api/get-notes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 28 Jul 2022 16:07:18 GMT"},{"key":"Server","value":"Apache/2.4.54 (Win64) OpenSSL/1.1.1o PHP/7.4.30"},{"key":"X-Powered-By","value":"PHP/7.4.30"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"5863"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"success\",\n    \"data\": [\n        {\n            \"id\": \"NT1_10\",\n            \"user_id\": \"1\",\n            \"title\": \"\",\n            \"content\": \"This is a test note\",\n            \"date_created\": \"2022-07-28\",\n            \"date_modified\": null\n        },\n        {\n            \"id\": \"NT1_9\",\n            \"user_id\": \"1\",\n            \"title\": \"\",\n            \"content\": \"<p>Twst</p>\",\n            \"date_created\": \"2022-07-21\",\n            \"date_modified\": null\n        },\n        {\n            \"id\": \"NT1_8\",\n            \"user_id\": \"1\",\n            \"title\": \"Tester\",\n            \"content\": \"<p>Hello</p>\",\n            \"date_created\": \"2022-07-20\",\n            \"date_modified\": null\n        },\n        {\n            \"id\": \"NT1_7\",\n            \"user_id\": \"1\",\n            \"title\": \"Jacob banks - Unholy War (lyrics)\",\n            \"content\": \"<pre id=\\\"lyric-body-text\\\" class=\\\"lyric-body wselect-cnt\\\" dir=\\\"ltr\\\" data-lang=\\\"en\\\">Unholy war\\r\\nMy <a href=\\\"https://www.definitions.net/definition/demons\\\">demons</a> are coming\\r\\nBoy, you <a href=\\\"https://www.definitions.net/definition/better\\\">better</a> run\\r\\nGo take your freedom, oh no\\r\\nWade in the water\\r\\nBe gone by morning\\r\\nDon't you let them find you here\\r\\nOh no\\r\\n\\r\\nLet love lead you home, oh no\\r\\nLet <a href=\\\"https://www.definitions.net/definition/redemption\\\">redemption</a> keep you warm\\r\\nSo, you <a href=\\\"https://www.definitions.net/definition/better\\\">better</a> run\\r\\nYou <a href=\\\"https://www.definitions.net/definition/better\\\">better</a> run\\r\\n\\r\\nTime has come\\r\\nFuture is now, oh love\\r\\nSteady on\\r\\nGo take your bow\\r\\nWeather the storm\\r\\nGood <a href=\\\"https://www.definitions.net/definition/times\\\">times</a> will pass you by\\r\\nHit the road\\r\\nLeave your <a href=\\\"https://www.definitions.net/definition/sorrows\\\">sorrows</a> behind\\r\\n\\r\\nOh, <a href=\\\"https://www.definitions.net/definition/would\\\">would</a> you let love lead you home, oh please\\r\\nLet <a href=\\\"https://www.definitions.net/definition/redemption\\\">redemption</a> keep you warm\\r\\nSo, you <a href=\\\"https://www.definitions.net/definition/better\\\">better</a> run\\r\\nYou <a href=\\\"https://www.definitions.net/definition/better\\\">better</a> run\\r\\n\\r\\nI know it's <a href=\\\"https://www.definitions.net/definition/killing\\\">killing</a> you\\r\\nWell, well, well, well\\r\\nYou <a href=\\\"https://www.definitions.net/definition/gotta\\\">gotta</a> leave\\r\\nI know it's <a href=\\\"https://www.definitions.net/definition/killing\\\">killing</a> you\\r\\nOh no\\r\\nYou <a href=\\\"https://www.definitions.net/definition/gotta\\\">gotta</a> leave\\r\\nI know it's <a href=\\\"https://www.definitions.net/definition/killing\\\">killing</a> you\\r\\nYou <a href=\\\"https://www.definitions.net/definition/gotta\\\">gotta</a> leave\\r\\nI know it's <a href=\\\"https://www.definitions.net/definition/killing\\\">killing</a> you\\r\\nYou <a href=\\\"https://www.definitions.net/definition/gotta\\\">gotta</a> leave\\r\\n\\r\\nSo, you <a href=\\\"https://www.definitions.net/definition/better\\\">better</a> run\\r\\nYou <a href=\\\"https://www.definitions.net/definition/better\\\">better</a> run\\r\\nOh save yourself, please\\r\\nYou <a href=\\\"https://www.definitions.net/definition/better\\\">better</a> run\\r\\nYou <a href=\\\"https://www.definitions.net/definition/better\\\">better</a> run</pre>\",\n            \"date_created\": \"2022-07-18\",\n            \"date_modified\": null\n        },\n        {\n            \"id\": \"NT1_6\",\n            \"user_id\": \"1\",\n            \"title\": \"Kobayashi Maru\",\n            \"content\": \"<p>The <strong>Kobayashi Maru </strong>is a training exercise in the Star Trek franchise designed to test the character of Starfleet Academy cadets in a no-win scenario</p>\",\n            \"date_created\": \"2022-07-18\",\n            \"date_modified\": null\n        },\n        {\n            \"id\": \"NT1_5\",\n            \"user_id\": \"1\",\n            \"title\": \"Long one\",\n            \"content\": \"<p>&nbsp;His many same been well can high that. Forfeited did law eagerness allowance improving assurance bed. Had saw put seven joy short first. Pronounce so enjoyment my resembled in forfeited sportsman. Which vexed did began son abode short may. Interested astonished he at cultivated or me. Nor brought one invited she produce her.<br><br>Eat imagine you chiefly few end ferrars compass. Be visitor females am ferrars inquiry. Latter law remark two lively thrown. Spot set they know rest its. Raptures law diverted believed jennings consider children the see. Had invited beloved carried the colonel. Occasional principles discretion it as he unpleasing boisterous. She bed sing dear now son half.<br><br>Bringing so sociable felicity supplied mr. September suspicion far him two acuteness perfectly. Covered as an examine so regular of. Ye astonished friendship remarkably no. Window admire matter praise you bed whence. Delivered ye sportsmen zealously arranging frankness estimable as. Nay any article enabled musical shyness yet sixteen yet blushes. Entire its the did figure wonder off.</p>\",\n            \"date_created\": \"2022-07-18\",\n            \"date_modified\": null\n        },\n        {\n            \"id\": \"NT1_4\",\n            \"user_id\": \"1\",\n            \"title\": \"\",\n            \"content\": \"<p>Do am he horrible distance marriage so although. Afraid assure square so happen mr an before</p>\",\n            \"date_created\": \"2022-07-18\",\n            \"date_modified\": null\n        },\n        {\n            \"id\": \"NT1_3\",\n            \"user_id\": \"1\",\n            \"title\": \"\",\n            \"content\": \"<p>Carried nothing on am warrant towards. Polite in of in oh needed itself silent course. Assistance travelling so especially do prosperous appearance mr no celebrated. Wanted easily in my called formed suffer. Songs hoped sense as taken ye mirth at. Believe fat how six drawing pursuit minutes far. Same do seen head am part it dear open to. Whatever may scarcely judgment had.</p>\",\n            \"date_created\": \"2022-07-18\",\n            \"date_modified\": null\n        },\n        {\n            \"id\": \"NT1_2\",\n            \"user_id\": \"1\",\n            \"title\": \"First Note\",\n            \"content\": \"<p>Satisfied conveying an dependent contented he gentleman agreeable do be. Warrant private blushes removed an in equally totally if. Delivered dejection necessary objection do mr prevailed. Mr feeling do chiefly cordial in do. Water timed folly right aware if oh truth. Imprudence attachment him his for sympathize. Large above be to means. Dashwood do provided stronger is. But discretion frequently sir the she instrument unaffected admiration everything.</p>\",\n            \"date_created\": \"2022-07-18\",\n            \"date_modified\": null\n        }\n    ]\n}"}],"_postman_id":"69c074b2-def5-4777-b46f-457f731f5e0a"},{"name":"New Note","id":"0d91b4b0-d691-4495-aa06-209e982f53b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userID\": \"PioZYk0vE52eYbTFFm1GDqelsYzdD2+M\",\r\n    \"content\": \"This is a test note\",\r\n    \"title\": null\r\n}","options":{"raw":{"language":"json"}}},"url":"https://synote.test/api/new-note","urlObject":{"path":["new-note"],"host":["https://synote.test/api"],"query":[],"variable":[]}},"response":[{"id":"eddbbd4f-ca6f-4452-915f-f3d6f0bd8376","name":"New Note","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userID\": \"PioZYk0vE52eYbTFFm1GDqelsYzdD2+M\",\r\n    \"content\": \"This is a test note\",\r\n    \"title\": null\r\n}","options":{"raw":{"language":"json"}}},"url":"https://synote.test/api/new-note"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 28 Jul 2022 16:06:59 GMT"},{"key":"Server","value":"Apache/2.4.54 (Win64) OpenSSL/1.1.1o PHP/7.4.30"},{"key":"X-Powered-By","value":"PHP/7.4.30"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"38"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Note added\"\n}"}],"_postman_id":"0d91b4b0-d691-4495-aa06-209e982f53b7"},{"name":"Edit Note","id":"e07f9310-8417-4c95-b41b-3d9e84c74e2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userID\": \"\",\r\n    \"noteID\": \"\",\r\n    \"title\": \"\",\r\n    \"content\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://synote.test/api/edit-note","urlObject":{"path":["edit-note"],"host":["https://synote.test/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"e07f9310-8417-4c95-b41b-3d9e84c74e2d"},{"name":"Delete Note","id":"97fa203d-9f8a-46d1-9031-7fef896d62ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userID\": \"\",\r\n    \"noteID\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://synote.test/api/delete-note","urlObject":{"path":["delete-note"],"host":["https://synote.test/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"97fa203d-9f8a-46d1-9031-7fef896d62ce"}],"event":[{"listen":"prerequest","script":{"id":"9deabd24-29bf-423f-9bd4-cf6a290daa9f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0d0137f4-cf01-4bba-8dd3-c5d92f36981c","type":"text/javascript","exec":[""]}}],"variable":[{"key":"apiurl","value":"https://synote.test/api","type":"string"}]}