{ "info": { "_postman_id": "cf1c910f-c093-407e-818f-334294c568b5", "name": "Basic Note App", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Auth", "item": [ { "name": "Login", "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "email", "value": "aslanmsalih@gmail.com", "type": "text" }, { "key": "password", "value": "password", "type": "text" } ], "options": { "formdata": {} } }, "url": { "raw": "{{api_url}}auth/login", "host": [ "{{api_url}}auth" ], "path": [ "login" ] } }, "response": [] }, { "name": "Forgot Password", "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "email", "value": "aslanmsalih@gmail.com", "type": "text" } ], "options": { "formdata": {} } }, "url": { "raw": "{{api_url}}auth/forgot-password", "host": [ "{{api_url}}auth" ], "path": [ "forgot-password" ] } }, "response": [] }, { "name": "Register", "request": { "auth": { "type": "noauth" }, "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "full_name", "value": "Mehmet Salih Aslan", "description": "required|max:255", "type": "text" }, { "key": "email", "value": "aslanmsalih23@gmail.com", "description": "required|email|unique:users,email", "type": "text" }, { "key": "password", "value": "password", "description": "required|min:6|max:255", "type": "text" } ], "options": { "formdata": {} } }, "url": { "raw": "{{api_url}}auth/register", "host": [ "{{api_url}}auth" ], "path": [ "register" ] } }, "response": [] } ], "protocolProfileBehavior": {} }, { "name": "User", "item": [ { "name": "Get Me", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "formdata", "formdata": [], "options": { "formdata": {} } }, "url": { "raw": "{{api_url}}users/me", "host": [ "{{api_url}}users" ], "path": [ "me" ] } }, "response": [] }, { "name": "Get My Notes", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "formdata", "formdata": [], "options": { "formdata": {} } }, "url": { "raw": "{{api_url}}users/me/notes?page=1", "host": [ "{{api_url}}users" ], "path": [ "me", "notes" ], "query": [ { "key": "page", "value": "1" } ] } }, "response": [] }, { "name": "User Update Me", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "full_name", "value": "Mehmet Salih Aslann", "type": "text" }, { "key": "email", "value": "aslanmsalih@gmail.com", "type": "text" } ], "options": { "formdata": {} } }, "url": { "raw": "{{api_url}}users/me", "host": [ "{{api_url}}users" ], "path": [ "me" ] } }, "response": [] }, { "name": "Update My Password", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "password", "value": "password", "type": "text" }, { "key": "new_password", "value": "password.", "type": "text" }, { "key": "new_password_confirmation", "value": "password.", "type": "text" } ], "options": { "formdata": {} } }, "url": { "raw": "{{api_url}}users/me/password", "host": [ "{{api_url}}users" ], "path": [ "me", "password" ] } }, "response": [] } ], "protocolProfileBehavior": {} }, { "name": "Note", "item": [ { "name": "Create Note", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "title", "value": "Title", "description": "required|max:255", "type": "text" }, { "key": "note", "value": "Note ", "description": "required", "type": "text" } ], "options": { "formdata": {} } }, "url": { "raw": "{{api_url}}notes", "host": [ "{{api_url}}notes" ] } }, "response": [] }, { "name": "Delete Note", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "formdata", "formdata": [], "options": { "formdata": {} } }, "url": { "raw": "{{api_url}}notes/:note_id", "host": [ "{{api_url}}notes" ], "path": [ ":note_id" ], "variable": [ { "key": "note_id", "value": "" } ] } }, "response": [] }, { "name": "Update Note", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "title", "value": "Title 1", "description": "required|max:255", "type": "text" }, { "key": "note", "value": "Note 1", "description": "required", "type": "text" } ], "options": { "urlencoded": {} } }, "url": { "raw": "{{api_url}}notes/:note_id", "host": [ "{{api_url}}notes" ], "path": [ ":note_id" ], "variable": [ { "key": "note_id", "value": "1", "type": "string" } ] } }, "response": [] }, { "name": "Get Note", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "formdata", "formdata": [], "options": { "formdata": {} } }, "url": { "raw": "{{api_url}}notes/: note_id", "host": [ "{{api_url}}notes" ], "path": [ ": note_id" ], "variable": [ { "key": " note_id", "value": "1", "type": "string" } ] } }, "response": [] } ], "protocolProfileBehavior": {} } ], "event": [ { "listen": "prerequest", "script": { "id": "42589a56-6f06-4993-bd6e-2204b4517404", "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "id": "3a04fe31-66fd-4b73-afdf-603a631012a8", "type": "text/javascript", "exec": [ "" ] } } ], "protocolProfileBehavior": {} }