{ "info": { "_postman_id": "ba4c77e2-2592-478f-bfd3-0caac0f9c17f", "name": "Web Service Tutorial", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "14468232" }, "item": [ { "name": "auth", "item": [ { "name": "create_user", "request": { "auth": { "type": "noauth" }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"username\": \"harr00y\",\n \"password\": \"hashed_password_here\",\n \"email\": \"elijahobara357@gmail.com\",\n \"security_level\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "localhost:8080/api/v1/auth/create_user", "host": [ "localhost" ], "port": "8080", "path": [ "api", "v1", "auth", "create_user" ] } }, "response": [] }, { "name": "login", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"username\": \"harry\",\n \"password\": \"hashed_password_here\",\n \"email\": \"elijahobara357@gmail.com\",\n \"security_level\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "localhost:8080/api/v1/auth/login", "host": [ "localhost" ], "port": "8080", "path": [ "api", "v1", "auth", "login" ] } }, "response": [] } ] }, { "name": "blog", "item": [ { "name": "create blog", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"title\": \"NEW BLOG\",\n \"slug\": \"new-blog\",\n \"category\": \"new blog category\",\n \"content\": \"new blog content\",\n \"image_link\": \"https://google.com\",\n \"thumbnail_link\": \"https://google.com\",\n \"featured\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "localhost:8080/api/v1/blog", "host": [ "localhost" ], "port": "8080", "path": [ "api", "v1", "blog" ] } }, "response": [] }, { "name": "get all blogs or get blog by id", "request": { "auth": { "type": "noauth" }, "method": "GET", "header": [], "url": { "raw": "localhost:8080/api/v1/blog", "host": [ "localhost" ], "port": "8080", "path": [ "api", "v1", "blog" ], "query": [ { "key": "id", "value": "1", "disabled": true } ] } }, "response": [] }, { "name": "update blog", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\": 4,\n \"title\": \"updated title\",\n \"slug\": \"updated-title\",\n \"category\": \"updated category\",\n \"content\": \"was updated\",\n \"thumbnail_link\": \"https://google.com\",\n \"featured\": true,\n \"publish_date\": \"2023-08-04T12:34:56\",\n \"image_link\": \"google.com\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "localhost:8080/api/v1/blog", "host": [ "localhost" ], "port": "8080", "path": [ "api", "v1", "blog" ] } }, "response": [] }, { "name": "delete blog", "request": { "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "{\"id\": 4}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "localhost:8080/api/v1/blog", "host": [ "localhost" ], "port": "8080", "path": [ "api", "v1", "blog" ] } }, "response": [] } ] }, { "name": "tag", "item": [ { "name": "get all tags or by id", "request": { "method": "GET", "header": [], "url": { "raw": "localhost:8080/api/v1/tag", "host": [ "localhost" ], "port": "8080", "path": [ "api", "v1", "tag" ], "query": [ { "key": "id", "value": "1", "disabled": true } ] } }, "response": [] }, { "name": "create tag", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"name\": \"tag test\",\n \"assoc_table\": \"Blog\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "localhost:8080/api/v1/tag", "host": [ "localhost" ], "port": "8080", "path": [ "api", "v1", "tag" ] } }, "response": [] } ] } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "", "type": "string" } ] }, "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ] }