From 35e1d38859e5fabcfaf4d403be5c195b447e9023 Mon Sep 17 00:00:00 2001 From: minguezsanzjuanjose Date: Sat, 18 Apr 2026 14:11:39 +0200 Subject: [PATCH] fix: use native Postman auth field and declare collection variables Co-Authored-By: Claude Sonnet 4.6 --- postman_collection.json | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/postman_collection.json b/postman_collection.json index 7ad50a9..1ebb462 100644 --- a/postman_collection.json +++ b/postman_collection.json @@ -5,7 +5,10 @@ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_postman_id": "django-core-base-collection" }, - "variable": [], + "variable": [ + { "key": "access_token", "value": "", "type": "string" }, + { "key": "refresh_token", "value": "", "type": "string" } + ], "item": [ { "name": "Auth", @@ -51,10 +54,13 @@ { "name": "Obtener Promoción", "request": { + "auth": { + "type": "bearer", + "bearer": [{ "key": "token", "value": "{{access_token}}", "type": "string" }] + }, "method": "POST", "header": [ - { "key": "Content-Type", "value": "application/json" }, - { "key": "Authorization", "value": "Bearer {{access_token}}" } + { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", @@ -75,10 +81,13 @@ { "name": "Ejecutar Automatizaciones", "request": { + "auth": { + "type": "bearer", + "bearer": [{ "key": "token", "value": "{{access_token}}", "type": "string" }] + }, "method": "POST", "header": [ - { "key": "Content-Type", "value": "application/json" }, - { "key": "Authorization", "value": "Bearer {{access_token}}" } + { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", @@ -94,10 +103,13 @@ { "name": "Historial de Ejecuciones", "request": { + "auth": { + "type": "bearer", + "bearer": [{ "key": "token", "value": "{{access_token}}", "type": "string" }] + }, "method": "POST", "header": [ - { "key": "Content-Type", "value": "application/json" }, - { "key": "Authorization", "value": "Bearer {{access_token}}" } + { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", @@ -113,10 +125,13 @@ { "name": "Estado del Módulo", "request": { + "auth": { + "type": "bearer", + "bearer": [{ "key": "token", "value": "{{access_token}}", "type": "string" }] + }, "method": "POST", "header": [ - { "key": "Content-Type", "value": "application/json" }, - { "key": "Authorization", "value": "Bearer {{access_token}}" } + { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw",