Bläddra i källkod

Actualización de Endpoints

Hugo Quijada 5 år sedan
förälder
incheckning
1c1d970fa1
1 ändrade filer med 410 tillägg och 24 borttagningar
  1. 410 24
      audiovalid.postman_collection.json

+ 410 - 24
audiovalid.postman_collection.json

@@ -1,11 +1,118 @@
 {
 	"info": {
-		"_postman_id": "e493c256-2196-40ab-a101-834fcba8ae8a",
-		"name": "AudioValid 2020",
+		"_postman_id": "56025a1d-d5fe-4829-b231-0e444257b5b1",
+		"name": "AudioValid",
 		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
 	},
 	"item": [
 		{
+			"name": "audio",
+			"item": [
+				{
+					"name": "/v1/audio",
+					"request": {
+						"method": "GET",
+						"header": [
+							{
+								"key": "Content-Type",
+								"name": "Content-Type",
+								"value": "application/x-www-form-urlencoded",
+								"type": "text"
+							}
+						],
+						"url": {
+							"raw": "{{url}}/v1/audio",
+							"host": [
+								"{{url}}"
+							],
+							"path": [
+								"v1",
+								"audio"
+							]
+						}
+					},
+					"response": []
+				},
+				{
+					"name": "/v1/audio/crear",
+					"request": {
+						"method": "POST",
+						"header": [
+							{
+								"key": "Content-Type",
+								"name": "Content-Type",
+								"value": "application/json",
+								"type": "text"
+							}
+						],
+						"body": {
+							"mode": "raw",
+							"raw": "{\n\t\"clave\": \"TVP0212020\",\n\t\"dependencia\": \"PROFECO\",\n\t\"nombre\": \"TVP0212020_PROFECO_RC2020_TV_REVISTA_No_08.mp3\",\n\t\"ruta\": \"/ruta/firebase/storage/-abcdef\",\n\t\"duracion\": 0\n}",
+							"options": {
+								"raw": {
+									"language": "json"
+								}
+							}
+						},
+						"url": {
+							"raw": "{{url}}/v1/audio/crear",
+							"host": [
+								"{{url}}"
+							],
+							"path": [
+								"v1",
+								"audio",
+								"crear"
+							]
+						}
+					},
+					"response": []
+				},
+				{
+					"name": "/v1/audio/editar",
+					"request": {
+						"method": "POST",
+						"header": [
+							{
+								"key": "Content-Type",
+								"name": "Content-Type",
+								"value": "application/json",
+								"type": "text"
+							}
+						],
+						"body": {
+							"mode": "raw",
+							"raw": "{\n\t\"clave\": \"TVP0212020\",\n\t\"dependencia\": \"PROFECO\",\n\t\"nombre\": \"TVP0212020_PROFECO_RC2020_TV_REVISTA_No_08.mp3\",\n\t\"ruta\": \"/ruta/firebase/storage/-abcdef\",\n\t\"duracion\": 0\n}",
+							"options": {
+								"raw": {
+									"language": "json"
+								}
+							}
+						},
+						"url": {
+							"raw": "{{url}}/v1/audio/editar?id=1",
+							"host": [
+								"{{url}}"
+							],
+							"path": [
+								"v1",
+								"audio",
+								"editar"
+							],
+							"query": [
+								{
+									"key": "id",
+									"value": "1"
+								}
+							]
+						}
+					},
+					"response": []
+				}
+			],
+			"protocolProfileBehavior": {}
+		},
+		{
 			"name": "archivo",
 			"item": [
 				{
@@ -44,28 +151,155 @@
 			"protocolProfileBehavior": {}
 		},
 		{
-			"name": "entidad",
+			"name": "campaña",
 			"item": [
 				{
-					"name": "/v1/entidad",
+					"name": "/v1/campana/crear",
 					"request": {
-						"method": "GET",
-						"header": [],
+						"method": "POST",
+						"header": [
+							{
+								"key": "Content-Type",
+								"name": "Content-Type",
+								"value": "application/json",
+								"type": "text"
+							}
+						],
+						"body": {
+							"mode": "raw",
+							"raw": "{\n\t\"estado\": \"SONORA\",\n\t\"siglas\": \"XENW-AM\",\n\t\"orden\": \"DTORT/0241/2020\",\n\t\"tipo\": \"FISCAL\",\n\t\"pautas\": [\n\t\t{\n\t\t\t\"clave\": \"RDF3662019\",\n\t\t\t\"dependencia\": \"COFECE\",\n\t\t\t\"campana\": \"La COFECE Trabaja en tu Favor\",\n\t\t\t\"version\": \"Panaderias\",\n\t\t\t\"duracion\": 30,\n\t\t\t\"fecha\": [\n\t\t\t\t\"2020-02-18 06:00:00\",\n\t\t\t\t\"2020-02-18 07:00:00\"\n\t\t\t],\n\t\t\t\"repeticiones\": 1\n\t\t}\n\t]\n}",
+							"options": {
+								"raw": {
+									"language": "json"
+								}
+							}
+						},
 						"url": {
-							"raw": "{{url}}/v1/entidad",
+							"raw": "{{url}}/v1/campana/crear",
 							"host": [
 								"{{url}}"
 							],
 							"path": [
 								"v1",
-								"entidad"
+								"campana",
+								"crear"
 							]
 						}
 					},
 					"response": []
+				}
+			],
+			"protocolProfileBehavior": {}
+		},
+		{
+			"name": "dependencia",
+			"item": [
+				{
+					"name": "/v1/dependencia",
+					"protocolProfileBehavior": {
+						"disableBodyPruning": true
+					},
+					"request": {
+						"method": "GET",
+						"header": [
+							{
+								"key": "Content-Type",
+								"value": "application/json",
+								"type": "text"
+							},
+							{
+								"key": "Accept",
+								"value": "application/json",
+								"type": "text"
+							}
+						],
+						"body": {
+							"mode": "raw",
+							"raw": "{\n\t\"nombre\": \"RTC\"\n}"
+						},
+						"url": {
+							"raw": "{{url}}/v1/dependencia",
+							"host": [
+								"{{url}}"
+							],
+							"path": [
+								"v1",
+								"dependencia"
+							]
+						}
+					},
+					"response": [
+						{
+							"name": "/v1/entidad",
+							"originalRequest": {
+								"method": "POST",
+								"header": [
+									{
+										"key": "Content-Type",
+										"value": "application/json",
+										"type": "text"
+									},
+									{
+										"key": "Accept",
+										"value": "application/json",
+										"type": "text"
+									}
+								],
+								"body": {
+									"mode": "raw",
+									"raw": "{\n\t\"nombre\": \"RTC\"\n}"
+								},
+								"url": {
+									"raw": "{{url}}/v1/entidad",
+									"host": [
+										"{{url}}"
+									],
+									"path": [
+										"v1",
+										"entidad"
+									]
+								}
+							},
+							"status": "OK",
+							"code": 200,
+							"_postman_previewlanguage": "json",
+							"header": [
+								{
+									"key": "Date",
+									"value": "Tue, 18 Feb 2020 16:51:12 GMT"
+								},
+								{
+									"key": "Server",
+									"value": "Apache/2.4.18 (Ubuntu)"
+								},
+								{
+									"key": "Vary",
+									"value": "Accept"
+								},
+								{
+									"key": "Keep-Alive",
+									"value": "timeout=5, max=100"
+								},
+								{
+									"key": "Connection",
+									"value": "Keep-Alive"
+								},
+								{
+									"key": "Transfer-Encoding",
+									"value": "chunked"
+								},
+								{
+									"key": "Content-Type",
+									"value": "application/json; charset=UTF-8"
+								}
+							],
+							"cookie": [],
+							"body": "[\n    {\n        \"id\": 1,\n        \"nombre\": \"RTC\"\n    }\n]"
+						}
+					]
 				},
 				{
-					"name": "/v1/entidad",
+					"name": "/v1/dependencia/crear",
 					"request": {
 						"method": "POST",
 						"header": [
@@ -82,16 +316,16 @@
 						],
 						"body": {
 							"mode": "raw",
-							"raw": "{\n\t\"nombre\": \"RTC\"\n}"
+							"raw": "{\n\t\"idEntidad\": 1,\n\t\"nombre\": \"Ejemplo\"\n}"
 						},
 						"url": {
-							"raw": "{{url}}/v1/entidad/crear",
+							"raw": "{{url}}/v1/dependencia/crear",
 							"host": [
 								"{{url}}"
 							],
 							"path": [
 								"v1",
-								"entidad",
+								"dependencia",
 								"crear"
 							]
 						}
@@ -165,20 +399,143 @@
 							"body": "[\n    {\n        \"id\": 1,\n        \"nombre\": \"RTC\"\n    }\n]"
 						}
 					]
+				},
+				{
+					"name": "/v1/dependencia/editar",
+					"request": {
+						"method": "POST",
+						"header": [
+							{
+								"key": "Content-Type",
+								"value": "application/json",
+								"type": "text"
+							},
+							{
+								"key": "Accept",
+								"value": "application/json",
+								"type": "text"
+							}
+						],
+						"body": {
+							"mode": "raw",
+							"raw": "{\n\t\"idEntidad\": 1,\n\t\"nombre\": \"Ejemplo\"\n}"
+						},
+						"url": {
+							"raw": "{{url}}/v1/dependencia/editar?id=1",
+							"host": [
+								"{{url}}"
+							],
+							"path": [
+								"v1",
+								"dependencia",
+								"editar"
+							],
+							"query": [
+								{
+									"key": "id",
+									"value": "1"
+								}
+							]
+						}
+					},
+					"response": [
+						{
+							"name": "/v1/entidad",
+							"originalRequest": {
+								"method": "POST",
+								"header": [
+									{
+										"key": "Content-Type",
+										"value": "application/json",
+										"type": "text"
+									},
+									{
+										"key": "Accept",
+										"value": "application/json",
+										"type": "text"
+									}
+								],
+								"body": {
+									"mode": "raw",
+									"raw": "{\n\t\"nombre\": \"RTC\"\n}"
+								},
+								"url": {
+									"raw": "{{url}}/v1/entidad",
+									"host": [
+										"{{url}}"
+									],
+									"path": [
+										"v1",
+										"entidad"
+									]
+								}
+							},
+							"status": "OK",
+							"code": 200,
+							"_postman_previewlanguage": "json",
+							"header": [
+								{
+									"key": "Date",
+									"value": "Tue, 18 Feb 2020 16:51:12 GMT"
+								},
+								{
+									"key": "Server",
+									"value": "Apache/2.4.18 (Ubuntu)"
+								},
+								{
+									"key": "Vary",
+									"value": "Accept"
+								},
+								{
+									"key": "Keep-Alive",
+									"value": "timeout=5, max=100"
+								},
+								{
+									"key": "Connection",
+									"value": "Keep-Alive"
+								},
+								{
+									"key": "Transfer-Encoding",
+									"value": "chunked"
+								},
+								{
+									"key": "Content-Type",
+									"value": "application/json; charset=UTF-8"
+								}
+							],
+							"cookie": [],
+							"body": "[\n    {\n        \"id\": 1,\n        \"nombre\": \"RTC\"\n    }\n]"
+						}
+					]
 				}
 			],
 			"protocolProfileBehavior": {}
 		},
 		{
-			"name": "dependencia",
+			"name": "entidad",
 			"item": [
 				{
-					"name": "/v1/dependencia",
-					"protocolProfileBehavior": {
-						"disableBodyPruning": true
-					},
+					"name": "/v1/entidad",
 					"request": {
 						"method": "GET",
+						"header": [],
+						"url": {
+							"raw": "{{url}}/v1/entidad",
+							"host": [
+								"{{url}}"
+							],
+							"path": [
+								"v1",
+								"entidad"
+							]
+						}
+					},
+					"response": []
+				},
+				{
+					"name": "/v1/entidad/crear",
+					"request": {
+						"method": "POST",
 						"header": [
 							{
 								"key": "Content-Type",
@@ -196,13 +553,14 @@
 							"raw": "{\n\t\"nombre\": \"RTC\"\n}"
 						},
 						"url": {
-							"raw": "{{url}}/v1/dependencia",
+							"raw": "{{url}}/v1/entidad/crear",
 							"host": [
 								"{{url}}"
 							],
 							"path": [
 								"v1",
-								"dependencia"
+								"entidad",
+								"crear"
 							]
 						}
 					},
@@ -277,7 +635,7 @@
 					]
 				},
 				{
-					"name": "/v1/dependencia",
+					"name": "/v1/entidad/editar",
 					"request": {
 						"method": "POST",
 						"header": [
@@ -294,17 +652,23 @@
 						],
 						"body": {
 							"mode": "raw",
-							"raw": "{\n\t\"idEntidad\": 1,\n\t\"nombre\": \"Ejemplo\"\n}"
+							"raw": "{\n\t\"nombre\": \"RTC\"\n}"
 						},
 						"url": {
-							"raw": "{{url}}/v1/dependencia/crear",
+							"raw": "{{url}}/v1/entidad/editar?id=1",
 							"host": [
 								"{{url}}"
 							],
 							"path": [
 								"v1",
-								"dependencia",
-								"crear"
+								"entidad",
+								"editar"
+							],
+							"query": [
+								{
+									"key": "id",
+									"value": "1"
+								}
 							]
 						}
 					},
@@ -382,5 +746,27 @@
 			"protocolProfileBehavior": {}
 		}
 	],
+	"event": [
+		{
+			"listen": "prerequest",
+			"script": {
+				"id": "c6e1c907-8527-41c3-a54d-29c153d91237",
+				"type": "text/javascript",
+				"exec": [
+					""
+				]
+			}
+		},
+		{
+			"listen": "test",
+			"script": {
+				"id": "345e8197-137f-460d-bbd5-3c11878035b8",
+				"type": "text/javascript",
+				"exec": [
+					""
+				]
+			}
+		}
+	],
 	"protocolProfileBehavior": {}
 }