{
	"info": {
		"_postman_id": "6235d0e5-be4f-4119-b9fe-332b8dc5285c",
		"name": "Laravel User App",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "50802525",
		"_collection_link": "https://mariam-abdelkader-4203560.postman.co/workspace/Mariam-Abdelkader's-Workspace~3757781a-ca06-4ead-8db5-7e6e5cb12408/collection/50802525-6235d0e5-be4f-4119-b9fe-332b8dc5285c?action=share&source=collection_link&creator=50802525"
	},
	"item": [
		{
			"name": "Auth",
			"item": [
				{
					"name": "Login",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"if (pm.response.code === 200) {",
									"    const response = pm.response.json();",
									"    pm.collectionVariables.set(\"auth_token\", response.token);",
									"    console.log(\"Auth token saved:\", response.token);",
									"}"
								],
								"type": "text/javascript",
								"packages": {},
								"requests": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Accept",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "email",
									"value": "mariam@example.com",
									"type": "text"
								},
								{
									"key": "password",
									"value": "123123mariam",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "{{base_url}}/api/auth/login",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"api",
								"auth",
								"login"
							]
						}
					},
					"response": []
				},
				{
					"name": "Register",
					"request": {
						"auth": {
							"type": "noauth"
						},
						"method": "POST",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "name",
									"value": "mariam",
									"type": "text"
								},
								{
									"key": "email",
									"value": "mariam@example.com",
									"type": "text"
								},
								{
									"key": "password",
									"value": "123123mariam",
									"type": "text"
								},
								{
									"key": "password_confirmation",
									"value": "123123mariam",
									"type": "text"
								},
								{
									"key": "country_code",
									"value": "+20",
									"type": "text"
								},
								{
									"key": "phone",
									"value": "010293882738174",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "{{base_url}}/api/auth/register",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"api",
								"auth",
								"register"
							]
						}
					},
					"response": []
				},
				{
					"name": "Logout",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/auth/logout",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"api",
								"auth",
								"logout"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Users",
			"item": [
				{
					"name": "User Profile",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{base_url}}/api/user",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"api",
								"user"
							]
						}
					},
					"response": []
				},
				{
					"name": "Update My Profile",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "formdata",
							"formdata": [
								{
									"key": "_method",
									"value": "put",
									"type": "text"
								},
								{
									"key": "name",
									"value": "Test",
									"type": "text"
								},
								{
									"key": "email",
									"value": "mariam@example.com",
									"type": "text"
								},
								{
									"key": "password",
									"value": "password",
									"type": "text",
									"disabled": true
								},
								{
									"key": "country_code",
									"value": "+20",
									"type": "text"
								},
								{
									"key": "phone",
									"value": "12312388712",
									"type": "text"
								}
							]
						},
						"url": {
							"raw": "{{base_url}}/api/user",
							"host": [
								"{{base_url}}"
							],
							"path": [
								"api",
								"user"
							]
						}
					},
					"response": []
				}
			]
		}
	],
	"auth": {
		"type": "bearer",
		"bearer": [
			{
				"key": "token",
				"value": "{{auth_token}}",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"requests": {},
				"exec": [
					"pm.request.headers.add({",
					"    key: 'Accept',",
					"    value: 'application/json'",
					"});"
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"requests": {},
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "auth_token",
			"value": ""
		},
		{
			"key": "base_url",
			"value": "http://127.0.0.1:8000/"
		}
	]
}