From 6d123cd403c5e0bbf8ad6efdd166986e1e383416 Mon Sep 17 00:00:00 2001 From: ncoronel Date: Thu, 27 Aug 2026 12:11:08 -0300 Subject: [PATCH] docs(postman): regenerate collection after API cleanup --- ShopIt_API_Postman_Collection.json | 1874 +++++------------------- postman/generate-shopit-collection.php | 35 +- 2 files changed, 396 insertions(+), 1513 deletions(-) diff --git a/ShopIt_API_Postman_Collection.json b/ShopIt_API_Postman_Collection.json index eb7f267..fa41bde 100644 --- a/ShopIt_API_Postman_Collection.json +++ b/ShopIt_API_Postman_Collection.json @@ -2,7 +2,7 @@ "info": { "_postman_id": "76fd6fd2-53b9-4d92-8e02-1ddcc6207fa2", "name": "ShopIt API — Complete", - "description": "Colección canónica generada desde las rutas reales de Laravel. Incluye 122 operaciones HTTP, ejemplos de payload, filtros, archivos y tokens separados para Storefront, Admin App y Scanner.\n\nUso rápido:\n1. Ajustá `base_url` y las credenciales.\n2. Ejecutá el Login de la aplicación correspondiente; el token se guarda automáticamente.\n3. Ajustá los IDs y códigos de las variables de colección.\n\nRegeneración: `php postman/generate-shopit-collection.php`.", + "description": "Colección canónica generada desde las rutas reales de Laravel. Incluye 96 operaciones HTTP, ejemplos de payload, filtros, archivos y tokens separados para Storefront, Admin App y Scanner.\n\nUso rápido:\n1. Ajustá `base_url` y las credenciales.\n2. Ejecutá el Login de la aplicación correspondiente; el token se guarda automáticamente.\n3. Ajustá los IDs y códigos de las variables de colección.\n\nRegeneración: `php postman/generate-shopit-collection.php`.", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ @@ -572,60 +572,6 @@ } }, "response": [] - }, - { - "name": "Update Checkout Cart Item Cart", - "request": { - "method": "PATCH", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `PATCH /api/tenants/{tenant:codigo}/checkout-carts/{cart}/items/{cartItem}`\n\nControlador: `App\\Domains\\Cart\\Controllers\\CartController@updateCheckoutItem`\n\nRequiere autenticación Sanctum.", - "url": { - "raw": "{{base_url}}/api/tenants/{{tenant_code}}/checkout-carts/{{cart}}/items/{{cart_item_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "tenants", - "{{tenant_code}}", - "checkout-carts", - "{{cart}}", - "items", - "{{cart_item_id}}" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"cantidad\": 2\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{token}}", - "type": "string" - } - ] - } - }, - "response": [] } ] }, @@ -1077,45 +1023,6 @@ }, "response": [] }, - { - "name": "Complete Purchase", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `POST /api/tenants/{tenant:codigo}/compras/{compra}/complete`\n\nControlador: `App\\Domains\\Purchase\\Controllers\\PurchaseController@complete`\n\nRequiere autenticación Sanctum.", - "url": { - "raw": "{{base_url}}/api/tenants/{{tenant_code}}/compras/{{purchase_id}}/complete", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "tenants", - "{{tenant_code}}", - "compras", - "{{purchase_id}}", - "complete" - ] - }, - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{token}}", - "type": "string" - } - ] - } - }, - "response": [] - }, { "name": "Update Customer Data Purchase", "request": { @@ -1169,99 +1076,6 @@ }, "response": [] }, - { - "name": "Prepare Item Editing Purchase", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `POST /api/tenants/{tenant:codigo}/compras/{compra}/edit-items`\n\nControlador: `App\\Domains\\Purchase\\Controllers\\PurchaseController@prepareItemEditing`\n\nRequiere autenticación Sanctum.", - "url": { - "raw": "{{base_url}}/api/tenants/{{tenant_code}}/compras/{{purchase_id}}/edit-items", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "tenants", - "{{tenant_code}}", - "compras", - "{{purchase_id}}", - "edit-items" - ] - }, - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{token}}", - "type": "string" - } - ] - } - }, - "response": [] - }, - { - "name": "Update Item Purchase", - "request": { - "method": "PATCH", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `PATCH /api/tenants/{tenant:codigo}/compras/{compra}/items/{item}`\n\nControlador: `App\\Domains\\Purchase\\Controllers\\PurchaseController@updateItem`\n\nRequiere autenticación Sanctum.", - "url": { - "raw": "{{base_url}}/api/tenants/{{tenant_code}}/compras/{{purchase_id}}/items/{{purchase_item_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "tenants", - "{{tenant_code}}", - "compras", - "{{purchase_id}}", - "items", - "{{purchase_item_id}}" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"quantity\": 2,\n \"variant_id\": {{variant_id}}\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{token}}", - "type": "string" - } - ] - } - }, - "response": [] - }, { "name": "Create Payment Intent Purchase", "request": { @@ -1456,207 +1270,6 @@ "name": "Platform Management", "description": "CRUD y configuración de tenants, clientes, menús e integraciones.", "item": [ - { - "name": "Client", - "item": [ - { - "name": "List Client", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `GET /api/clients`\n\nControlador: `App\\Domains\\Client\\Controllers\\ClientController@index`", - "url": { - "raw": "{{base_url}}/api/clients", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "clients" - ] - } - }, - "response": [] - }, - { - "name": "Create Client", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `POST /api/clients`\n\nControlador: `App\\Domains\\Client\\Controllers\\ClientController@store`", - "url": { - "raw": "{{base_url}}/api/clients", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "clients" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"code\": \"cliente-demo\",\n \"name\": \"Cliente Demo\"\n}", - "options": { - "raw": { - "language": "json" - } - } - } - }, - "response": [] - }, - { - "name": "Get Client", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `GET /api/clients/{client}`\n\nControlador: `App\\Domains\\Client\\Controllers\\ClientController@show`", - "url": { - "raw": "{{base_url}}/api/clients/{{client_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "clients", - "{{client_id}}" - ] - } - }, - "response": [] - }, - { - "name": "Update Client (PUT)", - "request": { - "method": "PUT", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `PUT /api/clients/{client}`\n\nControlador: `App\\Domains\\Client\\Controllers\\ClientController@update`", - "url": { - "raw": "{{base_url}}/api/clients/{{client_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "clients", - "{{client_id}}" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"code\": \"cliente-demo\",\n \"name\": \"Cliente Demo Actualizado\"\n}", - "options": { - "raw": { - "language": "json" - } - } - } - }, - "response": [] - }, - { - "name": "Update Client (PATCH)", - "request": { - "method": "PATCH", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `PATCH /api/clients/{client}`\n\nControlador: `App\\Domains\\Client\\Controllers\\ClientController@update`", - "url": { - "raw": "{{base_url}}/api/clients/{{client_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "clients", - "{{client_id}}" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"Cliente Demo Actualizado\"\n}", - "options": { - "raw": { - "language": "json" - } - } - } - }, - "response": [] - }, - { - "name": "Delete Client", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `DELETE /api/clients/{client}`\n\nControlador: `App\\Domains\\Client\\Controllers\\ClientController@destroy`", - "url": { - "raw": "{{base_url}}/api/clients/{{client_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "clients", - "{{client_id}}" - ] - } - }, - "response": [] - } - ] - }, { "name": "Integration", "item": [ @@ -1756,746 +1369,6 @@ } }, "response": [] - }, - { - "name": "List Integration", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `GET /api/integrations`\n\nControlador: `App\\Domains\\Integration\\Controllers\\IntegrationController@index`", - "url": { - "raw": "{{base_url}}/api/integrations", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "integrations" - ] - } - }, - "response": [] - }, - { - "name": "Create Integration", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `POST /api/integrations`\n\nControlador: `App\\Domains\\Integration\\Controllers\\IntegrationController@store`", - "url": { - "raw": "{{base_url}}/api/integrations", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "integrations" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"integration_code\": \"telepagos\",\n \"name\": \"Telepagos\",\n \"url\": \"https://api.example.com\",\n \"integration_data_schema\": {\n \"api_key\": [\n \"required\",\n \"string\"\n ]\n },\n \"requires_client_configuration\": true\n}", - "options": { - "raw": { - "language": "json" - } - } - } - }, - "response": [] - }, - { - "name": "Get Integration", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `GET /api/integrations/{integration}`\n\nControlador: `App\\Domains\\Integration\\Controllers\\IntegrationController@show`", - "url": { - "raw": "{{base_url}}/api/integrations/{{integration_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "integrations", - "{{integration_id}}" - ] - } - }, - "response": [] - }, - { - "name": "Update Integration", - "request": { - "method": "PUT", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `PUT /api/integrations/{integration}`\n\nControlador: `App\\Domains\\Integration\\Controllers\\IntegrationController@update`", - "url": { - "raw": "{{base_url}}/api/integrations/{{integration_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "integrations", - "{{integration_id}}" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"Telepagos\",\n \"url\": \"https://api.example.com\",\n \"requires_client_configuration\": true\n}", - "options": { - "raw": { - "language": "json" - } - } - } - }, - "response": [] - }, - { - "name": "Delete Integration", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `DELETE /api/integrations/{integration}`\n\nControlador: `App\\Domains\\Integration\\Controllers\\IntegrationController@destroy`", - "url": { - "raw": "{{base_url}}/api/integrations/{{integration_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "integrations", - "{{integration_id}}" - ] - } - }, - "response": [] - } - ] - }, - { - "name": "Menu", - "item": [ - { - "name": "List Menu", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `GET /api/menues`\n\nControlador: `App\\Domains\\Menu\\Controllers\\MenuController@index`", - "url": { - "raw": "{{base_url}}/api/menues", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "menues" - ] - } - }, - "response": [] - }, - { - "name": "Create Menu", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `POST /api/menues`\n\nControlador: `App\\Domains\\Menu\\Controllers\\MenuController@store`", - "url": { - "raw": "{{base_url}}/api/menues", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "menues" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"code\": \"demo\",\n \"label\": \"Demo\",\n \"parent_menu_code\": null,\n \"content_type\": \"static\",\n \"static_content_schema\": {\n \"title\": [\n \"required\",\n \"string\"\n ]\n },\n \"route\": \"/demo\"\n}", - "options": { - "raw": { - "language": "json" - } - } - } - }, - "response": [] - }, - { - "name": "Get Menu", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `GET /api/menues/{menue}`\n\nControlador: `App\\Domains\\Menu\\Controllers\\MenuController@show`", - "url": { - "raw": "{{base_url}}/api/menues/{{menu_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "menues", - "{{menu_id}}" - ] - } - }, - "response": [] - }, - { - "name": "Update Menu (PUT)", - "request": { - "method": "PUT", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `PUT /api/menues/{menue}`\n\nControlador: `App\\Domains\\Menu\\Controllers\\MenuController@update`", - "url": { - "raw": "{{base_url}}/api/menues/{{menu_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "menues", - "{{menu_id}}" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"label\": \"Demo actualizado\",\n \"route\": \"/demo\"\n}", - "options": { - "raw": { - "language": "json" - } - } - } - }, - "response": [] - }, - { - "name": "Update Menu (PATCH)", - "request": { - "method": "PATCH", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `PATCH /api/menues/{menue}`\n\nControlador: `App\\Domains\\Menu\\Controllers\\MenuController@update`", - "url": { - "raw": "{{base_url}}/api/menues/{{menu_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "menues", - "{{menu_id}}" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"label\": \"Demo actualizado\"\n}", - "options": { - "raw": { - "language": "json" - } - } - } - }, - "response": [] - }, - { - "name": "Delete Menu", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `DELETE /api/menues/{menue}`\n\nControlador: `App\\Domains\\Menu\\Controllers\\MenuController@destroy`", - "url": { - "raw": "{{base_url}}/api/menues/{{menu_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "menues", - "{{menu_id}}" - ] - } - }, - "response": [] - }, - { - "name": "Create Tenant Menu", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `POST /api/{tenant_code}/menues/{menu_code}`\n\nControlador: `App\\Domains\\Menu\\Controllers\\TenantMenuController@store`", - "url": { - "raw": "{{base_url}}/api/{{tenant_code}}/menues/{{menu_code}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "{{tenant_code}}", - "menues", - "{{menu_code}}" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"static_content\": {\n \"title\": \"Contenido demo\"\n }\n}", - "options": { - "raw": { - "language": "json" - } - } - } - }, - "response": [] - } - ] - }, - { - "name": "Tenant", - "item": [ - { - "name": "List Tenant", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `GET /api/tenants`\n\nControlador: `App\\Domains\\Tenant\\Controllers\\TenantController@index`", - "url": { - "raw": "{{base_url}}/api/tenants", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "tenants" - ] - } - }, - "response": [] - }, - { - "name": "Create Tenant", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `POST /api/tenants`\n\nControlador: `App\\Domains\\Tenant\\Controllers\\TenantController@store`", - "url": { - "raw": "{{base_url}}/api/tenants", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "tenants" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"client_id\": {{client_id}},\n \"codigo\": \"{{tenant_code}}\",\n \"nombre\": \"Tenant Demo\",\n \"dominio\": \"{{tenant_domain}}\",\n \"site_title\": \"ShopIt Demo\",\n \"primary_color\": \"#111827\",\n \"secondary_color\": \"#2563EB\",\n \"danger_color\": \"#DC2626\",\n \"success_color\": \"#16A34A\",\n \"header_bg_color\": \"#FFFFFF\",\n \"footer_bg_color\": \"#111827\",\n \"header_logo\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==\",\n \"footer_logo\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==\",\n \"search_product_layout\": \"column_with_image\",\n \"search_group_layout\": \"paginated\",\n \"search_items_per_page\": 12,\n \"display_categories\": true,\n \"display_seach_bar\": true,\n \"display_cart\": true,\n \"cart_editing_policy\": \"full\",\n \"checkout_editing_policy\": \"full\",\n \"website_type_code\": \"shopit\"\n}", - "options": { - "raw": { - "language": "json" - } - } - } - }, - "response": [] - }, - { - "name": "Get Tenant", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `GET /api/tenants/{tenant}`\n\nControlador: `App\\Domains\\Tenant\\Controllers\\TenantController@show`", - "url": { - "raw": "{{base_url}}/api/tenants/{{tenant_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "tenants", - "{{tenant_id}}" - ] - } - }, - "response": [] - }, - { - "name": "Update Tenant (PUT)", - "request": { - "method": "PUT", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `PUT /api/tenants/{tenant}`\n\nControlador: `App\\Domains\\Tenant\\Controllers\\TenantController@update`", - "url": { - "raw": "{{base_url}}/api/tenants/{{tenant_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "tenants", - "{{tenant_id}}" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"nombre\": \"Tenant Demo Actualizado\",\n \"site_title\": \"ShopIt Demo\",\n \"primary_color\": \"#111827\",\n \"cart_editing_policy\": \"full\",\n \"checkout_editing_policy\": \"full\"\n}", - "options": { - "raw": { - "language": "json" - } - } - } - }, - "response": [] - }, - { - "name": "Update Tenant (PATCH)", - "request": { - "method": "PATCH", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `PATCH /api/tenants/{tenant}`\n\nControlador: `App\\Domains\\Tenant\\Controllers\\TenantController@update`", - "url": { - "raw": "{{base_url}}/api/tenants/{{tenant_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "tenants", - "{{tenant_id}}" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"nombre\": \"Tenant Demo Actualizado\",\n \"site_title\": \"ShopIt Demo\",\n \"primary_color\": \"#111827\",\n \"cart_editing_policy\": \"full\",\n \"checkout_editing_policy\": \"full\"\n}", - "options": { - "raw": { - "language": "json" - } - } - } - }, - "response": [] - }, - { - "name": "Delete Tenant", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `DELETE /api/tenants/{tenant}`\n\nControlador: `App\\Domains\\Tenant\\Controllers\\TenantController@destroy`", - "url": { - "raw": "{{base_url}}/api/tenants/{{tenant_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "tenants", - "{{tenant_id}}" - ] - } - }, - "response": [] - } - ] - } - ] - }, - { - "name": "Developer Utilities", - "description": "Endpoints de diagnóstico de correo y almacenamiento. No deberían exponerse en producción.", - "item": [ - { - "name": "Storage Test", - "item": [ - { - "name": "Generate Temporary URL S3 Test", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `GET /api/storage-test/s3/temporary-url`\n\nControlador: `App\\Domains\\StorageTest\\Controllers\\S3TestController@temporaryUrl`", - "url": { - "raw": "{{base_url}}/api/storage-test/s3/temporary-url?path={{s3_path}}&expires_in_minutes=60", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "storage-test", - "s3", - "temporary-url" - ], - "query": [ - { - "key": "path", - "value": "{{s3_path}}" - }, - { - "key": "expires_in_minutes", - "value": "60" - } - ] - } - }, - "response": [] - }, - { - "name": "Create S3 Test", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `POST /api/storage-test/s3/upload`\n\nControlador: `App\\Domains\\StorageTest\\Controllers\\S3TestController@store`", - "url": { - "raw": "{{base_url}}/api/storage-test/s3/upload", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "storage-test", - "s3", - "upload" - ] - }, - "body": { - "mode": "formdata", - "formdata": [ - { - "key": "path", - "value": "postman/test-file.png", - "type": "text" - }, - { - "key": "expires_in_minutes", - "value": "60", - "type": "text" - }, - { - "key": "file", - "type": "file", - "src": [] - } - ] - } - }, - "response": [] - } - ] - }, - { - "name": "Mail Test", - "item": [ - { - "name": "Mail Test", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `POST /api/{tenant_code}/mail-test/send`\n\nControlador: `App\\Domains\\MailTest\\Controllers\\MailTestController`", - "url": { - "raw": "{{base_url}}/api/{{tenant_code}}/mail-test/send", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "{{tenant_code}}", - "mail-test", - "send" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"to\": \"destinatario@example.com\",\n \"subject\": \"Prueba ShopIt\",\n \"message\": \"Correo de prueba enviado desde Postman.\"\n}", - "options": { - "raw": { - "language": "json" - } - } - } - }, - "response": [] } ] } @@ -3058,6 +1931,84 @@ }, "response": [] }, + { + "name": "Get Category Visibility", + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json", + "type": "text" + } + ], + "description": "Ruta Laravel: `GET /api/v1/adminapp/tenant/accommodations/visibility`\n\nControlador: `App\\Domains\\FiestaFutbolInfantil\\Controllers\\CategoryVisibilityController@show`\n\nRequiere autenticación Sanctum.", + "url": { + "raw": "{{base_url}}/api/v1/adminapp/tenant/accommodations/visibility", + "host": [ + "{{base_url}}" + ], + "path": [ + "api", + "v1", + "adminapp", + "tenant", + "accommodations", + "visibility" + ] + }, + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{admin_token}}", + "type": "string" + } + ] + } + }, + "response": [] + }, + { + "name": "Update Category Visibility", + "request": { + "method": "PATCH", + "header": [ + { + "key": "Accept", + "value": "application/json", + "type": "text" + } + ], + "description": "Ruta Laravel: `PATCH /api/v1/adminapp/tenant/accommodations/visibility`\n\nControlador: `App\\Domains\\FiestaFutbolInfantil\\Controllers\\CategoryVisibilityController@update`\n\nRequiere autenticación Sanctum.", + "url": { + "raw": "{{base_url}}/api/v1/adminapp/tenant/accommodations/visibility", + "host": [ + "{{base_url}}" + ], + "path": [ + "api", + "v1", + "adminapp", + "tenant", + "accommodations", + "visibility" + ] + }, + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{admin_token}}", + "type": "string" + } + ] + } + }, + "response": [] + }, { "name": "Delete Accommodation", "request": { @@ -3187,6 +2138,84 @@ }, "response": [] }, + { + "name": "Get Category Visibility", + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json", + "type": "text" + } + ], + "description": "Ruta Laravel: `GET /api/v1/adminapp/tenant/entries/visibility`\n\nControlador: `App\\Domains\\FiestaFutbolInfantil\\Controllers\\CategoryVisibilityController@show`\n\nRequiere autenticación Sanctum.", + "url": { + "raw": "{{base_url}}/api/v1/adminapp/tenant/entries/visibility", + "host": [ + "{{base_url}}" + ], + "path": [ + "api", + "v1", + "adminapp", + "tenant", + "entries", + "visibility" + ] + }, + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{admin_token}}", + "type": "string" + } + ] + } + }, + "response": [] + }, + { + "name": "Update Category Visibility", + "request": { + "method": "PATCH", + "header": [ + { + "key": "Accept", + "value": "application/json", + "type": "text" + } + ], + "description": "Ruta Laravel: `PATCH /api/v1/adminapp/tenant/entries/visibility`\n\nControlador: `App\\Domains\\FiestaFutbolInfantil\\Controllers\\CategoryVisibilityController@update`\n\nRequiere autenticación Sanctum.", + "url": { + "raw": "{{base_url}}/api/v1/adminapp/tenant/entries/visibility", + "host": [ + "{{base_url}}" + ], + "path": [ + "api", + "v1", + "adminapp", + "tenant", + "entries", + "visibility" + ] + }, + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{admin_token}}", + "type": "string" + } + ] + } + }, + "response": [] + }, { "name": "Delete Entry", "request": { @@ -3316,6 +2345,84 @@ }, "response": [] }, + { + "name": "Get Category Visibility", + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json", + "type": "text" + } + ], + "description": "Ruta Laravel: `GET /api/v1/adminapp/tenant/foods/visibility`\n\nControlador: `App\\Domains\\FiestaFutbolInfantil\\Controllers\\CategoryVisibilityController@show`\n\nRequiere autenticación Sanctum.", + "url": { + "raw": "{{base_url}}/api/v1/adminapp/tenant/foods/visibility", + "host": [ + "{{base_url}}" + ], + "path": [ + "api", + "v1", + "adminapp", + "tenant", + "foods", + "visibility" + ] + }, + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{admin_token}}", + "type": "string" + } + ] + } + }, + "response": [] + }, + { + "name": "Update Category Visibility", + "request": { + "method": "PATCH", + "header": [ + { + "key": "Accept", + "value": "application/json", + "type": "text" + } + ], + "description": "Ruta Laravel: `PATCH /api/v1/adminapp/tenant/foods/visibility`\n\nControlador: `App\\Domains\\FiestaFutbolInfantil\\Controllers\\CategoryVisibilityController@update`\n\nRequiere autenticación Sanctum.", + "url": { + "raw": "{{base_url}}/api/v1/adminapp/tenant/foods/visibility", + "host": [ + "{{base_url}}" + ], + "path": [ + "api", + "v1", + "adminapp", + "tenant", + "foods", + "visibility" + ] + }, + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{admin_token}}", + "type": "string" + } + ] + } + }, + "response": [] + }, { "name": "Delete Food", "request": { @@ -3445,6 +2552,84 @@ }, "response": [] }, + { + "name": "Get Category Visibility", + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json", + "type": "text" + } + ], + "description": "Ruta Laravel: `GET /api/v1/adminapp/tenant/merchandise/visibility`\n\nControlador: `App\\Domains\\FiestaFutbolInfantil\\Controllers\\CategoryVisibilityController@show`\n\nRequiere autenticación Sanctum.", + "url": { + "raw": "{{base_url}}/api/v1/adminapp/tenant/merchandise/visibility", + "host": [ + "{{base_url}}" + ], + "path": [ + "api", + "v1", + "adminapp", + "tenant", + "merchandise", + "visibility" + ] + }, + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{admin_token}}", + "type": "string" + } + ] + } + }, + "response": [] + }, + { + "name": "Update Category Visibility", + "request": { + "method": "PATCH", + "header": [ + { + "key": "Accept", + "value": "application/json", + "type": "text" + } + ], + "description": "Ruta Laravel: `PATCH /api/v1/adminapp/tenant/merchandise/visibility`\n\nControlador: `App\\Domains\\FiestaFutbolInfantil\\Controllers\\CategoryVisibilityController@update`\n\nRequiere autenticación Sanctum.", + "url": { + "raw": "{{base_url}}/api/v1/adminapp/tenant/merchandise/visibility", + "host": [ + "{{base_url}}" + ], + "path": [ + "api", + "v1", + "adminapp", + "tenant", + "merchandise", + "visibility" + ] + }, + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{admin_token}}", + "type": "string" + } + ] + } + }, + "response": [] + }, { "name": "Delete Merchandise", "request": { @@ -3689,46 +2874,6 @@ } }, "response": [] - }, - { - "name": "Delete Image Entry", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `DELETE /api/v1/adminapp/tenant/desfile/entries/image`\n\nControlador: `App\\Domains\\Desfile\\Controllers\\EntryController@destroyImage`\n\nRequiere autenticación Sanctum.", - "url": { - "raw": "{{base_url}}/api/v1/adminapp/tenant/desfile/entries/image", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "v1", - "adminapp", - "tenant", - "desfile", - "entries", - "image" - ] - }, - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{admin_token}}", - "type": "string" - } - ] - } - }, - "response": [] } ] }, @@ -3827,154 +2972,6 @@ } ] }, - { - "name": "Catalog", - "item": [ - { - "name": "List On Ticket Featured Group", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `GET /api/v1/adminapp/tenant/featured-groups`\n\nControlador: `App\\Domains\\Catalog\\Controllers\\AdminApp\\OnTicketFeaturedGroupController@index`\n\nRequiere autenticación Sanctum.", - "url": { - "raw": "{{base_url}}/api/v1/adminapp/tenant/featured-groups", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "v1", - "adminapp", - "tenant", - "featured-groups" - ] - }, - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{admin_token}}", - "type": "string" - } - ] - } - }, - "response": [] - }, - { - "name": "Create On Ticket Featured Group", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `POST /api/v1/adminapp/tenant/featured-groups`\n\nControlador: `App\\Domains\\Catalog\\Controllers\\AdminApp\\OnTicketFeaturedGroupController@store`\n\nRequiere autenticación Sanctum.", - "url": { - "raw": "{{base_url}}/api/v1/adminapp/tenant/featured-groups", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "v1", - "adminapp", - "tenant", - "featured-groups" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"category_name\": \"Destacados\",\n \"is_featured\": true\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{admin_token}}", - "type": "string" - } - ] - } - }, - "response": [] - }, - { - "name": "Update On Ticket Featured Group", - "request": { - "method": "PUT", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `PUT /api/v1/adminapp/tenant/featured-groups/{featuredGroup}`\n\nControlador: `App\\Domains\\Catalog\\Controllers\\AdminApp\\OnTicketFeaturedGroupController@update`\n\nRequiere autenticación Sanctum.", - "url": { - "raw": "{{base_url}}/api/v1/adminapp/tenant/featured-groups/{{featured_group_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "v1", - "adminapp", - "tenant", - "featured-groups", - "{{featured_group_id}}" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"category_name\": \"Destacados\",\n \"is_featured\": true\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{admin_token}}", - "type": "string" - } - ] - } - }, - "response": [] - } - ] - }, { "name": "Sale", "item": [ @@ -4049,6 +3046,45 @@ }, "response": [] }, + { + "name": "download Excel Sale", + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json", + "type": "text" + } + ], + "description": "Ruta Laravel: `GET /api/v1/adminapp/tenant/sales/excel`\n\nControlador: `App\\Domains\\Sale\\Controllers\\AdminApp\\SaleController@downloadExcel`\n\nRequiere autenticación Sanctum.", + "url": { + "raw": "{{base_url}}/api/v1/adminapp/tenant/sales/excel", + "host": [ + "{{base_url}}" + ], + "path": [ + "api", + "v1", + "adminapp", + "tenant", + "sales", + "excel" + ] + }, + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{admin_token}}", + "type": "string" + } + ] + } + }, + "response": [] + }, { "name": "List Modifications Sale", "request": { @@ -4088,6 +3124,46 @@ }, "response": [] }, + { + "name": "download Modifications Excel Sale", + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json", + "type": "text" + } + ], + "description": "Ruta Laravel: `GET /api/v1/adminapp/tenant/sales/modifications/excel`\n\nControlador: `App\\Domains\\Sale\\Controllers\\AdminApp\\SaleController@downloadModificationsExcel`\n\nRequiere autenticación Sanctum.", + "url": { + "raw": "{{base_url}}/api/v1/adminapp/tenant/sales/modifications/excel", + "host": [ + "{{base_url}}" + ], + "path": [ + "api", + "v1", + "adminapp", + "tenant", + "sales", + "modifications", + "excel" + ] + }, + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{admin_token}}", + "type": "string" + } + ] + } + }, + "response": [] + }, { "name": "Download Modifications PDF Sale", "request": { @@ -4455,7 +3531,7 @@ "response": [] }, { - "name": "Update Admin App Staff (PUT)", + "name": "Update Admin App Staff", "request": { "method": "PUT", "header": [ @@ -4507,59 +3583,6 @@ }, "response": [] }, - { - "name": "Update Admin App Staff (PATCH)", - "request": { - "method": "PATCH", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `PATCH /api/v1/adminapp/tenant/staff/{staff}`\n\nControlador: `App\\Domains\\Staff\\Controllers\\AdminAppStaffController@update`\n\nRequiere autenticación Sanctum.", - "url": { - "raw": "{{base_url}}/api/v1/adminapp/tenant/staff/{{staff_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "v1", - "adminapp", - "tenant", - "staff", - "{{staff_id}}" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"nombre_apellido\": \"Operador Demo\",\n \"dni\": \"30123456\",\n \"email\": \"operador@example.com\",\n \"category_ids\": [\n 1\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{admin_token}}", - "type": "string" - } - ] - } - }, - "response": [] - }, { "name": "Delete Admin App Staff", "request": { @@ -4642,45 +3665,6 @@ }, "response": [] }, - { - "name": "Get Extra Website Extra", - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `GET /api/v1/adminapp/tenant/website-extras/{websiteExtraCode}`\n\nControlador: `App\\Domains\\Tenant\\Controllers\\AdminApp\\WebsiteExtraController@showExtra`\n\nRequiere autenticación Sanctum.", - "url": { - "raw": "{{base_url}}/api/v1/adminapp/tenant/website-extras/{{website_extra_code}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "v1", - "adminapp", - "tenant", - "website-extras", - "{{website_extra_code}}" - ] - }, - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{admin_token}}", - "type": "string" - } - ] - } - }, - "response": [] - }, { "name": "Update Website Extra", "request": { @@ -5194,58 +4178,6 @@ ] } ] - }, - { - "name": "Webhooks", - "description": "Entradas públicas para notificaciones de proveedores externos.", - "item": [ - { - "name": "Integration", - "item": [ - { - "name": "Receive Telepagos Webhook", - "request": { - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - } - ], - "description": "Ruta Laravel: `POST /api/webhooks/telepagos/{client}`\n\nControlador: `App\\Domains\\Integration\\Controllers\\TelepagosWebhookController@handle`", - "url": { - "raw": "{{base_url}}/api/webhooks/telepagos/{{client_id}}", - "host": [ - "{{base_url}}" - ], - "path": [ - "api", - "webhooks", - "telepagos", - "{{client_id}}" - ] - }, - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"payment-id-demo\"\n}", - "options": { - "raw": { - "language": "json" - } - } - } - }, - "response": [] - } - ] - } - ] } ], "variable": [ @@ -5319,26 +4251,11 @@ "value": "1", "type": "string" }, - { - "key": "integration_id", - "value": "1", - "type": "string" - }, { "key": "integration_code", "value": "telepagos", "type": "string" }, - { - "key": "menu_id", - "value": "1", - "type": "string" - }, - { - "key": "menu_code", - "value": "demo", - "type": "string" - }, { "key": "catalog_item_id", "value": "1", @@ -5428,11 +4345,6 @@ "key": "reset_code", "value": "1234", "type": "string" - }, - { - "key": "s3_path", - "value": "postman/test-file.png", - "type": "string" } ] } diff --git a/postman/generate-shopit-collection.php b/postman/generate-shopit-collection.php index a63f36e..3d077fe 100644 --- a/postman/generate-shopit-collection.php +++ b/postman/generate-shopit-collection.php @@ -67,18 +67,7 @@ function bodyFor(string $method, string $uri): ?array 'POST api/password/reset-attempts' => ['tenant_codigo' => '{{tenant_code}}', 'email' => '{{user_email}}'], 'POST api/password/reset-attempts/validate' => ['email' => '{{user_email}}', 'codigo' => '{{reset_code}}'], 'POST api/password/reset' => ['email' => '{{user_email}}', 'codigo' => '{{reset_code}}', 'password' => '{{user_password}}', 'password_confirmation' => '{{user_password}}'], - 'POST api/clients' => ['code' => 'cliente-demo', 'name' => 'Cliente Demo'], - 'PUT api/clients/{client}' => ['code' => 'cliente-demo', 'name' => 'Cliente Demo Actualizado'], - 'PATCH api/clients/{client}' => ['name' => 'Cliente Demo Actualizado'], - 'POST api/integrations' => ['integration_code' => 'telepagos', 'name' => 'Telepagos', 'url' => 'https://api.example.com', 'integration_data_schema' => ['api_key' => ['required', 'string']], 'requires_client_configuration' => true], - 'PUT api/integrations/{integration}' => ['name' => 'Telepagos', 'url' => 'https://api.example.com', 'requires_client_configuration' => true], 'PUT api/clients/{client}/integrations/{integration_code}' => ['integration_data' => ['api_key' => 'replace-me']], - 'POST api/menues' => ['code' => 'demo', 'label' => 'Demo', 'parent_menu_code' => null, 'content_type' => 'static', 'static_content_schema' => ['title' => ['required', 'string']], 'route' => '/demo'], - 'PUT api/menues/{menue}' => ['label' => 'Demo actualizado', 'route' => '/demo'], - 'PATCH api/menues/{menue}' => ['label' => 'Demo actualizado'], - 'POST api/{tenant_code}/menues/{menu_code}' => ['static_content' => ['title' => 'Contenido demo']], - 'POST api/webhooks/telepagos/{client}' => ['id' => 'payment-id-demo'], - 'POST api/{tenant_code}/mail-test/send' => ['to' => 'destinatario@example.com', 'subject' => 'Prueba ShopIt', 'message' => 'Correo de prueba enviado desde Postman.'], 'POST api/tenants/{tenant:codigo}/cart/items' => ['catalog_item_id' => '{{catalog_item_id}}', 'variant_id' => '{{variant_id}}', 'cantidad' => 1], 'PATCH api/tenants/{tenant:codigo}/cart/items/{cartItem}' => ['cantidad' => 2, 'variant_id' => '{{variant_id}}'], 'POST api/tenants/{tenant:codigo}/catalog-items/{catalogItem}/variant-options' => ['selected_values' => ['color' => 'azul'], 'cart_item_id' => '{{cart_item_id}}'], @@ -92,11 +81,8 @@ function bodyFor(string $method, string $uri): ?array 'POST api/v1/adminapp/password/reset-attempts/validate' => ['email' => '{{admin_email}}', 'codigo' => '{{reset_code}}'], 'POST api/v1/adminapp/password/reset' => ['email' => '{{admin_email}}', 'codigo' => '{{reset_code}}', 'password' => '{{admin_password}}', 'password_confirmation' => '{{admin_password}}'], 'PUT api/v1/adminapp/tenant/event' => ['title' => 'Evento Demo', 'location' => 'Buenos Aires', 'dates' => [['date' => '2026-12-01', 'start_time' => '18:00', 'end_time' => '23:00']], 'social_media' => [['code' => 'instagram', 'url' => 'https://instagram.com/example', 'orden' => 0]]], - 'POST api/v1/adminapp/tenant/featured-groups' => ['category_name' => 'Destacados', 'is_featured' => true], - 'PUT api/v1/adminapp/tenant/featured-groups/{featuredGroup}' => ['category_name' => 'Destacados', 'is_featured' => true], 'POST api/v1/adminapp/tenant/staff' => ['nombre_apellido' => 'Operador Demo', 'dni' => '30123456', 'email' => 'operador@example.com', 'category_ids' => [1]], 'PUT api/v1/adminapp/tenant/staff/{staff}' => ['nombre_apellido' => 'Operador Demo', 'dni' => '30123456', 'email' => 'operador@example.com', 'category_ids' => [1]], - 'PATCH api/v1/adminapp/tenant/staff/{staff}' => ['nombre_apellido' => 'Operador Demo', 'dni' => '30123456', 'email' => 'operador@example.com', 'category_ids' => [1]], 'PUT api/v1/adminapp/tenant/website-extras/{websiteExtraCode}' => ['enabled' => true, 'content' => ['title' => 'Contenido demo']], 'PATCH api/v1/adminapp/tenant/website-extras/{websiteExtraCode}/toggle' => ['enabled' => true], 'POST api/v1/adminapp/tenant/accommodations' => ['variants' => [['title' => 'Habitación doble', 'description' => 'Dos personas', 'stock' => 10, 'price' => 100000]]], @@ -162,10 +148,6 @@ function bodyFor(string $method, string $uri): ?array ]); } - if ($key === 'POST api/storage-test/s3/upload') { - return formDataBody(['path' => 'postman/test-file.png', 'expires_in_minutes' => '60'], ['file']); - } - if ($key === 'POST api/v1/adminapp/tenant/desfile/entries/image') { return formDataBody(['is_enabled' => '1'], ['image']); } @@ -194,7 +176,6 @@ function queryFor(string $uri): array ['key' => 'per_page', 'value' => '20'], ], 'api/v1/scanner/tickets' => [['key' => 'q', 'value' => '', 'disabled' => true], ['key' => 'page', 'value' => '1'], ['key' => 'per_page', 'value' => '20']], - 'api/storage-test/s3/temporary-url' => [['key' => 'path', 'value' => '{{s3_path}}'], ['key' => 'expires_in_minutes', 'value' => '60']], default => [], }; } @@ -213,14 +194,6 @@ function folderFor(string $uri, string $action): array return ['Scanner API', $domain]; } - if (str_starts_with($uri, 'api/webhooks/')) { - return ['Webhooks', $domain]; - } - - if (in_array($domain, ['StorageTest', 'MailTest'], true)) { - return ['Developer Utilities', $domain]; - } - if (in_array($domain, ['Client', 'Integration', 'Menu', 'Tenant'], true) && ! str_contains($uri, '{tenant:codigo}')) { return ['Platform Management', $domain]; } @@ -268,8 +241,7 @@ function pathFor(string $uri): string { $variables = [ 'tenant:codigo' => 'tenant_code', 'tenant' => 'tenant_id', 'client' => 'client_id', - 'integration_code' => 'integration_code', 'integration' => 'integration_id', 'menue' => 'menu_id', - 'menu_code' => 'menu_code', 'tenant_code' => 'tenant_code', 'catalogItem' => 'catalog_item_id', + 'integration_code' => 'integration_code', 'tenant_code' => 'tenant_code', 'catalogItem' => 'catalog_item_id', 'featuredGroup' => 'featured_group_id', 'category' => 'category_id', 'cartItem' => 'cart_item_id', 'compra' => 'purchase_id', 'item' => 'purchase_item_id', 'dominio' => 'tenant_domain', 'sale' => 'sale_id', 'staff' => 'staff_id', 'websiteExtraCode' => 'website_extra_code', @@ -420,14 +392,13 @@ $variables = [ 'admin_email' => 'admin@example.com', 'admin_password' => 'Password!123', 'scanner_email' => 'scanner@example.com', 'scanner_password' => 'Password!123', 'tenant_code' => 'demo', 'tenant_id' => '1', 'tenant_domain' => 'demo.test', - 'client_id' => '1', 'integration_id' => '1', 'integration_code' => 'telepagos', - 'menu_id' => '1', 'menu_code' => 'demo', 'catalog_item_id' => '1', 'variant_id' => '1', + 'client_id' => '1', 'integration_code' => 'telepagos', + 'catalog_item_id' => '1', 'variant_id' => '1', 'category_id' => '1', 'featured_group_id' => '1', 'cart_id' => '1', 'cart_item_id' => '1', 'purchase_id' => '1', 'purchase_item_id' => '1', 'sale_id' => '1', 'staff_id' => '1', 'website_extra_code' => 'hero', 'accommodation_id' => '1', 'entry_id' => '1', 'food_id' => '1', 'merchandise_id' => '1', 'ticket_uuid' => '00000000-0000-0000-0000-000000000000', 'oauth_code' => '00000000-0000-0000-0000-000000000000', 'reset_code' => '1234', - 's3_path' => 'postman/test-file.png', ]; $collection = [