{
    "info": {
        "name": "JsonBulut.com - RestAPI",
        "description": "Authentication - JWT, Profile, Comment, Post, Products, Todo, User dummy rest api",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Authentication",
            "item": [
                {
                    "name": "\/api\/auth\/login",
                    "request": {
                        "method": "POST",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/auth\/login",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "auth",
                                "login"
                            ],
                            "query": []
                        },
                        "description": "Login",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"email\": \"hakanozer02@gmail.com\",\n    \"password\": \"123456\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "\/api\/auth\/refresh",
                    "request": {
                        "method": "POST",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/auth\/refresh",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "auth",
                                "refresh"
                            ],
                            "query": []
                        },
                        "description": "Refresh token",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{authToken}}",
                                "type": "text"
                            }
                        ]
                    },
                    "response": []
                },
                {
                    "name": "\/api\/auth\/logout",
                    "request": {
                        "method": "POST",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/auth\/logout",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "auth",
                                "logout"
                            ],
                            "query": []
                        },
                        "description": "Logout",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{authToken}}",
                                "type": "text"
                            }
                        ]
                    },
                    "response": []
                },
                {
                    "name": "\/api\/auth\/signup",
                    "request": {
                        "method": "POST",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/auth\/signup",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "auth",
                                "signup"
                            ],
                            "query": []
                        },
                        "description": "Sign up",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Ujang Uyee\",\n    \"email\": \"ujang@example.com\",\n    \"password\": \"ujang123\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Profile",
            "item": [
                {
                    "name": "\/api\/profile\/me",
                    "request": {
                        "method": "GET",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/profile\/me",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "profile",
                                "me"
                            ],
                            "query": []
                        },
                        "description": "Get details profile",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{authToken}}",
                                "type": "text"
                            }
                        ]
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Comment",
            "item": [
                {
                    "name": "\/api\/comments",
                    "request": {
                        "method": "GET",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/comments?page=%7B%7Bpage%7D%7D&per_page=%7B%7Bper_page%7D%7D",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "comments"
                            ],
                            "query": [
                                {
                                    "key": "page",
                                    "value": "{{page}}",
                                    "description": "Params page"
                                },
                                {
                                    "key": "per_page",
                                    "value": "{{per_page}}",
                                    "description": "Params per page"
                                }
                            ]
                        },
                        "description": "List of Comment",
                        "header": []
                    },
                    "response": []
                },
                {
                    "name": "\/api\/comments",
                    "request": {
                        "method": "POST",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/comments",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "comments"
                            ],
                            "query": []
                        },
                        "description": "Create new comment",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Hello world!\",\n    \"email\": \"hello@gmail.com\",\n    \"body\": \"Body Hello world!\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "\/api\/comments\/{id}",
                    "request": {
                        "method": "GET",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/comments\/{id}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "comments",
                                "{id}"
                            ],
                            "query": []
                        },
                        "description": "Get by id comment",
                        "header": []
                    },
                    "response": []
                },
                {
                    "name": "\/api\/comments\/{id}",
                    "request": {
                        "method": "DELETE",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/comments\/{id}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "comments",
                                "{id}"
                            ],
                            "query": []
                        },
                        "description": "Delete a comment",
                        "header": []
                    },
                    "response": []
                },
                {
                    "name": "\/api\/comment\/{id}",
                    "request": {
                        "method": "PUT",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/comment\/{id}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "comment",
                                "{id}"
                            ],
                            "query": []
                        },
                        "description": "Update a comment",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Update hello world!\",\n    \"email\": \"helloupdate@gmail.com\",\n    \"body\": \"Update body Hello world!\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Post",
            "item": [
                {
                    "name": "\/api\/posts",
                    "request": {
                        "method": "GET",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/posts?page=%7B%7Bpage%7D%7D&per_page=%7B%7Bper_page%7D%7D",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "posts"
                            ],
                            "query": [
                                {
                                    "key": "page",
                                    "value": "{{page}}",
                                    "description": "Params page"
                                },
                                {
                                    "key": "per_page",
                                    "value": "{{per_page}}",
                                    "description": "Params per page"
                                }
                            ]
                        },
                        "description": "List of post",
                        "header": []
                    },
                    "response": []
                },
                {
                    "name": "\/api\/posts",
                    "request": {
                        "method": "POST",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/posts",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "posts"
                            ],
                            "query": []
                        },
                        "description": "Create new post",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"title\": \"Title hello world!\",\n    \"body\": \"Body Hello world!\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "\/api\/posts\/{id}",
                    "request": {
                        "method": "GET",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/posts\/{id}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "posts",
                                "{id}"
                            ],
                            "query": []
                        },
                        "description": "Get by id post",
                        "header": []
                    },
                    "response": []
                },
                {
                    "name": "\/api\/posts\/{id}",
                    "request": {
                        "method": "PUT",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/posts\/{id}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "posts",
                                "{id}"
                            ],
                            "query": []
                        },
                        "description": "Update a post",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"title\": \"Update title hello world!\",\n    \"body\": \"Update Body Hello world!\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "\/api\/posts\/{id}",
                    "request": {
                        "method": "DELETE",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/posts\/{id}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "posts",
                                "{id}"
                            ],
                            "query": []
                        },
                        "description": "Delete a post",
                        "header": []
                    },
                    "response": []
                },
                {
                    "name": "\/api\/posts\/{id}\/comments",
                    "request": {
                        "method": "GET",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/posts\/{id}\/comments",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "posts",
                                "{id}",
                                "comments"
                            ],
                            "query": []
                        },
                        "description": "Get comments by ID post",
                        "header": []
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Products",
            "item": [
                {
                    "name": "\/api\/products",
                    "request": {
                        "method": "GET",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/products?page=%7B%7Bpage%7D%7D&per_page=%7B%7Bper_page%7D%7D",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "products"
                            ],
                            "query": [
                                {
                                    "key": "page",
                                    "value": "{{page}}",
                                    "description": "Params page"
                                },
                                {
                                    "key": "per_page",
                                    "value": "{{per_page}}",
                                    "description": "Params per page"
                                }
                            ]
                        },
                        "description": "Get all products",
                        "header": []
                    },
                    "response": []
                },
                {
                    "name": "\/api\/products",
                    "request": {
                        "method": "POST",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/products",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "products"
                            ],
                            "query": []
                        },
                        "description": "Create a new product",
                        "header": []
                    },
                    "response": []
                },
                {
                    "name": "\/api\/products\/{id}",
                    "request": {
                        "method": "GET",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/products\/{id}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "products",
                                "{id}"
                            ],
                            "query": []
                        },
                        "description": "Get product by ID",
                        "header": []
                    },
                    "response": []
                },
                {
                    "name": "\/api\/products\/{id}",
                    "request": {
                        "method": "PUT",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/products\/{id}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "products",
                                "{id}"
                            ],
                            "query": []
                        },
                        "description": "Update an existing product",
                        "header": []
                    },
                    "response": []
                },
                {
                    "name": "\/api\/products\/{id}",
                    "request": {
                        "method": "DELETE",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/products\/{id}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "products",
                                "{id}"
                            ],
                            "query": []
                        },
                        "description": "Delete a product",
                        "header": []
                    },
                    "response": []
                },
                {
                    "name": "\/api\/products\/search",
                    "request": {
                        "method": "GET",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/products\/search?query=%7B%7Bquery%7D%7D&page=%7B%7Bpage%7D%7D&per_page=%7B%7Bper_page%7D%7D",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "products",
                                "search"
                            ],
                            "query": [
                                {
                                    "key": "query",
                                    "value": "{{query}}",
                                    "description": "Search query"
                                },
                                {
                                    "key": "page",
                                    "value": "{{page}}",
                                    "description": "Params page"
                                },
                                {
                                    "key": "per_page",
                                    "value": "{{per_page}}",
                                    "description": "Params per page"
                                }
                            ]
                        },
                        "description": "Search products by title, description, or category",
                        "header": []
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Todo",
            "item": [
                {
                    "name": "\/api\/todos",
                    "request": {
                        "method": "GET",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/todos?page=%7B%7Bpage%7D%7D&per_page=%7B%7Bper_page%7D%7D",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "todos"
                            ],
                            "query": [
                                {
                                    "key": "page",
                                    "value": "{{page}}",
                                    "description": "Params page"
                                },
                                {
                                    "key": "per_page",
                                    "value": "{{per_page}}",
                                    "description": "Params per page"
                                }
                            ]
                        },
                        "description": "List of todo",
                        "header": []
                    },
                    "response": []
                },
                {
                    "name": "\/api\/todos",
                    "request": {
                        "method": "POST",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/todos",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "todos"
                            ],
                            "query": []
                        },
                        "description": "Create new todo",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"title\": \"Title hello world!\",\n    \"completed\": false\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "\/api\/todos\/{id}",
                    "request": {
                        "method": "GET",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/todos\/{id}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "todos",
                                "{id}"
                            ],
                            "query": []
                        },
                        "description": "Get by id todo",
                        "header": []
                    },
                    "response": []
                },
                {
                    "name": "\/api\/todos\/{id}",
                    "request": {
                        "method": "PUT",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/todos\/{id}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "todos",
                                "{id}"
                            ],
                            "query": []
                        },
                        "description": "Update a todo",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"title\": \"Update title hello world!\",\n    \"completed\": true\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "\/api\/todos\/{id}",
                    "request": {
                        "method": "DELETE",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/todos\/{id}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "todos",
                                "{id}"
                            ],
                            "query": []
                        },
                        "description": "Delete a todo",
                        "header": []
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "User",
            "item": [
                {
                    "name": "\/api\/users",
                    "request": {
                        "method": "GET",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/users?page=%7B%7Bpage%7D%7D&per_page=%7B%7Bper_page%7D%7D",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "users"
                            ],
                            "query": [
                                {
                                    "key": "page",
                                    "value": "{{page}}",
                                    "description": "Params page"
                                },
                                {
                                    "key": "per_page",
                                    "value": "{{per_page}}",
                                    "description": "Params per page"
                                }
                            ]
                        },
                        "description": "List of user",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{authToken}}",
                                "type": "text"
                            }
                        ]
                    },
                    "response": []
                },
                {
                    "name": "\/api\/users",
                    "request": {
                        "method": "POST",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/users",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "users"
                            ],
                            "query": []
                        },
                        "description": "Create new user",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{authToken}}",
                                "type": "text"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Ujang Pramana\",\n    \"username\": \"UjangUyee\",\n    \"email\": \"ujanguyee@gmail.com\",\n    \"address\": \"sample_value\",\n    \"phone\": \"0897567532456\",\n    \"website\": \"aselole.com\",\n    \"company\": \"sample_value\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "\/api\/users\/{id}",
                    "request": {
                        "method": "GET",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/users\/{id}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "users",
                                "{id}"
                            ],
                            "query": []
                        },
                        "description": "Get by id user",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{authToken}}",
                                "type": "text"
                            }
                        ]
                    },
                    "response": []
                },
                {
                    "name": "\/api\/users\/{id}",
                    "request": {
                        "method": "PUT",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/users\/{id}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "users",
                                "{id}"
                            ],
                            "query": []
                        },
                        "description": "Update a user",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{authToken}}",
                                "type": "text"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Budi Pramana\",\n    \"username\": \"BudiUyee\",\n    \"email\": \"budiuyee@gmail.com\",\n    \"address\": \"sample_value\",\n    \"phone\": \"0897567532456\",\n    \"website\": \"aselole.com\",\n    \"company\": \"sample_value\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    },
                    "response": []
                },
                {
                    "name": "\/api\/users\/{id}",
                    "request": {
                        "method": "DELETE",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/users\/{id}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "users",
                                "{id}"
                            ],
                            "query": []
                        },
                        "description": "Delete a user",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{authToken}}",
                                "type": "text"
                            }
                        ]
                    },
                    "response": []
                },
                {
                    "name": "\/api\/users\/{id}\/posts",
                    "request": {
                        "method": "GET",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/users\/{id}\/posts",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "users",
                                "{id}",
                                "posts"
                            ],
                            "query": []
                        },
                        "description": "Get posts by ID user",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{authToken}}",
                                "type": "text"
                            }
                        ]
                    },
                    "response": []
                },
                {
                    "name": "\/api\/users\/{id}\/todos",
                    "request": {
                        "method": "GET",
                        "url": {
                            "raw": "{{baseUrl}}\/api\/users\/{id}\/todos",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "api",
                                "users",
                                "{id}",
                                "todos"
                            ],
                            "query": []
                        },
                        "description": "Get todos by ID user",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{authToken}}",
                                "type": "text"
                            }
                        ]
                    },
                    "response": []
                }
            ]
        }
    ],
    "variable": [
        {
            "key": "baseUrl",
            "value": "https:\/\/jsonbulut.com"
        },
        {
            "key": "authToken",
            "value": "your_jwt_token_here"
        }
    ]
}