Hugo Quijada 5 lat temu
rodzic
commit
6fce60f814
1 zmienionych plików z 183 dodań i 2 usunięć
  1. 183 2
      audiovalid.postman_collection.json

+ 183 - 2
audiovalid.postman_collection.json

@@ -1,6 +1,6 @@
 {
 	"info": {
-		"_postman_id": "56025a1d-d5fe-4829-b231-0e444257b5b1",
+		"_postman_id": "0a004ee8-1c34-4a7f-b332-056ee5557880",
 		"name": "AudioValid",
 		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
 	},
@@ -131,7 +131,7 @@
 							}
 						},
 						"url": {
-							"raw": "{{url}}/v1/audio/crear",
+							"raw": "{{url}}/v1/audio/crear?=",
 							"host": [
 								"{{url}}"
 							],
@@ -225,6 +225,67 @@
 			"name": "Campaña",
 			"item": [
 				{
+					"name": "/v1/campana",
+					"request": {
+						"method": "GET",
+						"header": [
+							{
+								"key": "Content-Type",
+								"name": "Content-Type",
+								"value": "application/x-www-form-urlencoded",
+								"type": "text"
+							},
+							{
+								"key": "Authorization",
+								"value": "Bearer {{token}}",
+								"type": "text"
+							}
+						],
+						"url": {
+							"raw": "{{url}}/v1/campana",
+							"host": [
+								"{{url}}"
+							],
+							"path": [
+								"v1",
+								"campana"
+							]
+						}
+					},
+					"response": []
+				},
+				{
+					"name": "/v1/campana/ordenes",
+					"request": {
+						"method": "GET",
+						"header": [
+							{
+								"key": "Content-Type",
+								"name": "Content-Type",
+								"value": "application/x-www-form-urlencoded",
+								"type": "text"
+							},
+							{
+								"key": "Authorization",
+								"value": "Bearer {{token}}",
+								"type": "text"
+							}
+						],
+						"url": {
+							"raw": "{{url}}/v1/campana/ordenes",
+							"host": [
+								"{{url}}"
+							],
+							"path": [
+								"v1",
+								"campana",
+								"ordenes"
+							]
+						}
+					},
+					"response": []
+				},
+				{
 					"name": "/v1/campana/crear",
 					"request": {
 						"method": "POST",
@@ -406,6 +467,56 @@
 						],
 						"body": {
 							"mode": "raw",
+							"raw": "{\n\t\"correo\": \"hquijada@edesarrollos.com\",\n\t\"clave\": \"hquijada\"\n}",
+							"options": {
+								"raw": {
+									"language": "json"
+								}
+							}
+						},
+						"url": {
+							"raw": "{{url}}/v1/cuenta/iniciar-sesion",
+							"host": [
+								"{{url}}"
+							],
+							"path": [
+								"v1",
+								"cuenta",
+								"iniciar-sesion"
+							]
+						}
+					},
+					"response": []
+				},
+				{
+					"name": "/v1/cuenta/recuperar",
+					"event": [
+						{
+							"listen": "test",
+							"script": {
+								"id": "96c4d830-6243-4290-a423-107b4e9b3b02",
+								"exec": [
+									"var jsonData = pm.response.json();",
+									"if(jsonData[\"token\"] !== undefined && jsonData[\"token\"] !== \"\") {",
+									"    pm.environment.set(\"token\", jsonData[\"token\"]);",
+									"}"
+								],
+								"type": "text/javascript"
+							}
+						}
+					],
+					"request": {
+						"method": "POST",
+						"header": [
+							{
+								"key": "Content-Type",
+								"name": "Content-Type",
+								"value": "application/json",
+								"type": "text"
+							}
+						],
+						"body": {
+							"mode": "raw",
 							"raw": "{\n\t\"correo\": \"hquijada@edesarrollos.com\"\n}",
 							"options": {
 								"raw": {
@@ -1306,6 +1417,76 @@
 				}
 			],
 			"protocolProfileBehavior": {}
+		},
+		{
+			"name": "Perfil",
+			"item": [
+				{
+					"name": "/v1/perfil",
+					"request": {
+						"method": "GET",
+						"header": [
+							{
+								"key": "Content-Type",
+								"name": "Content-Type",
+								"value": "application/x-www-form-urlencoded",
+								"type": "text"
+							},
+							{
+								"key": "Authorization",
+								"value": "Bearer {{token}}",
+								"type": "text"
+							}
+						],
+						"url": {
+							"raw": "{{url}}/v1/perfil",
+							"host": [
+								"{{url}}"
+							],
+							"path": [
+								"v1",
+								"perfil"
+							]
+						}
+					},
+					"response": []
+				},
+				{
+					"name": "/v1/perfil/editar",
+					"request": {
+						"method": "POST",
+						"header": [
+							{
+								"key": "Content-Type",
+								"value": "application/json",
+								"type": "text"
+							},
+							{
+								"key": "Authorization",
+								"value": "Bearer {{token}}",
+								"type": "text"
+							}
+						],
+						"body": {
+							"mode": "raw",
+							"raw": "{\n\t\"nombre\": \"Hugo Quijada García\"\n}"
+						},
+						"url": {
+							"raw": "{{url}}/v1/perfil/editar",
+							"host": [
+								"{{url}}"
+							],
+							"path": [
+								"v1",
+								"perfil",
+								"editar"
+							]
+						}
+					},
+					"response": []
+				}
+			],
+			"protocolProfileBehavior": {}
 		}
 	],
 	"event": [