{
	"info": {
		"_postman_id": "76df1733-a3d8-4f2b-9ffb-7c70e3032549",
		"name": "ShopIt - Tenant CRUD",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "List Tenants",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"value": "application/json",
						"type": "text"
					}
				],
				"url": {
					"raw": "{{base_url}}/api/tenants",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"api",
						"tenants"
					]
				}
			},
			"response": []
		},
		{
			"name": "Bootstrap Tenant",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"value": "application/json",
						"type": "text"
					}
				],
				"url": {
					"raw": "{{base_url}}/api/tenants/bootstrap/acme.com",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"api",
						"tenants",
						"bootstrap",
						"acme.com"
					]
				}
			},
			"response": []
		},
		{
			"name": "Create Tenant (JSON)",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Accept",
						"value": "application/json",
						"type": "text"
					},
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"codigo\": \"acme\",\n    \"nombre\": \"Acme Corporation\",\n    \"dominio\": \"acme.com\",\n    \"primary_color\": \"#111111\",\n    \"secondary_color\": \"#222222\",\n    \"danger_color\": \"#333333\",\n    \"header_footer_bg_color\": \"#444444\",\n    \"header_logo\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==\",\n    \"footer_logo\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==\"\n}"
				},
				"url": {
					"raw": "{{base_url}}/api/tenants",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"api",
						"tenants"
					]
				}
			},
			"response": []
		},
		{
			"name": "Create Tenant (Form Data)",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Accept",
						"value": "application/json",
						"type": "text"
					}
				],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "codigo",
							"value": "acme",
							"type": "text"
						},
						{
							"key": "nombre",
							"value": "Acme Corporation",
							"type": "text"
						},
						{
							"key": "dominio",
							"value": "acme.com",
							"type": "text"
						},
						{
							"key": "primary_color",
							"value": "#111111",
							"type": "text"
						},
						{
							"key": "secondary_color",
							"value": "#222222",
							"type": "text"
						},
						{
							"key": "danger_color",
							"value": "#333333",
							"type": "text"
						},
						{
							"key": "header_footer_bg_color",
							"value": "#444444",
							"type": "text"
						},
						{
							"key": "header_logo",
							"type": "file",
							"src": []
						},
						{
							"key": "footer_logo",
							"type": "file",
							"src": []
						}
					]
				},
				"url": {
					"raw": "{{base_url}}/api/tenants",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"api",
						"tenants"
					]
				}
			},
			"response": []
		},
		{
			"name": "Show Tenant",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"value": "application/json",
						"type": "text"
					}
				],
				"url": {
					"raw": "{{base_url}}/api/tenants/acme",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"api",
						"tenants",
						"acme"
					]
				}
			},
			"response": []
		},
		{
			"name": "Update Tenant (JSON)",
			"request": {
				"method": "PUT",
				"header": [
					{
						"key": "Accept",
						"value": "application/json",
						"type": "text"
					},
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"codigo\": \"acme\",\n    \"nombre\": \"Acme Corporation Updated\",\n    \"dominio\": \"acme.com\",\n    \"primary_color\": \"#555555\",\n    \"secondary_color\": \"#666666\",\n    \"danger_color\": \"#777777\",\n    \"header_footer_bg_color\": \"#888888\"\n}"
				},
				"url": {
					"raw": "{{base_url}}/api/tenants/acme",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"api",
						"tenants",
						"acme"
					]
				}
			},
			"response": []
		},
		{
			"name": "Update Tenant (Form Data)",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Accept",
						"value": "application/json",
						"type": "text"
					}
				],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "_method",
							"value": "PUT",
							"type": "text"
						},
						{
							"key": "codigo",
							"value": "acme",
							"type": "text"
						},
						{
							"key": "nombre",
							"value": "Acme Corporation Updated",
							"type": "text"
						},
						{
							"key": "dominio",
							"value": "acme.com",
							"type": "text"
						},
						{
							"key": "primary_color",
							"value": "#555555",
							"type": "text"
						},
						{
							"key": "secondary_color",
							"value": "#666666",
							"type": "text"
						},
						{
							"key": "danger_color",
							"value": "#777777",
							"type": "text"
						},
						{
							"key": "header_footer_bg_color",
							"value": "#888888",
							"type": "text"
						},
						{
							"key": "header_logo",
							"type": "file",
							"src": []
						},
						{
							"key": "footer_logo",
							"type": "file",
							"src": []
						}
					]
				},
				"url": {
					"raw": "{{base_url}}/api/tenants/acme",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"api",
						"tenants",
						"acme"
					]
				}
			},
			"response": []
		},
		{
			"name": "Delete Tenant",
			"request": {
				"method": "DELETE",
				"header": [
					{
						"key": "Accept",
						"value": "application/json",
						"type": "text"
					}
				],
				"url": {
					"raw": "{{base_url}}/api/tenants/acme",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"api",
						"tenants",
						"acme"
					]
				}
			},
			"response": []
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "base_url",
			"value": "http://localhost:8000",
			"type": "string"
		}
	]
}
