{ "info": { "_postman_id": "582a6d73-020c-49da-8398-dda286c84785", "name": "Platzi", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Carreras", "item": [ { "name": "Consultar carreras por _id", "request": { "method": "GET", "header": [], "url": { "raw": "http://127.0.0.1:5000/carreras?id=5c76c5605f627d4121047b20", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "5000", "path": [ "carreras" ], "query": [ { "key": "id", "value": "5c76c5605f627d4121047b20" } ] } }, "response": [] }, { "name": "Consultar carreras", "request": { "method": "GET", "header": [], "url": { "raw": "http://127.0.0.1:5000/carreras?limit=5&skip=0", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "5000", "path": [ "carreras" ], "query": [ { "key": "limit", "value": "5" }, { "key": "skip", "value": "0" } ] } }, "response": [] }, { "name": "Crear carreras", "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n\t\"nombre\": \"Especialidad AWS\",\n\t\"descripcion\": \"Desarrollar habilidades dentro de AWS.\"\n}" }, "url": { "raw": "http://127.0.0.1:5000/carreras", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "5000", "path": [ "carreras" ] } }, "response": [] }, { "name": "Actualizar carreras", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"_id\": \"5c75fbc55f627d40a6c8e6ca\",\n\t\"nombre\": \"Apple Fullstack Developer 2019\",\n\t\"descripcion\": \"Desarrolla apps para iPhone o iPad. Programa en Objective-C y Swift. Publica tus apps en la App Store y gana dinero con ellas. ACTUALIZADO 2019\"\n}" }, "url": { "raw": "http://127.0.0.1:5000/carreras", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "5000", "path": [ "carreras" ] } }, "response": [] }, { "name": "Borrar carreras", "request": { "method": "DELETE", "header": [], "url": { "raw": "http://127.0.0.1:5000/carreras?id=5c75fbc55f627d40a6c8e6ca", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "5000", "path": [ "carreras" ], "query": [ { "key": "id", "value": "5c75fbc55f627d40a6c8e6ca" } ] } }, "response": [] }, { "name": "Agregar curso a carrera", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"id_carrera\": \"5c76c5605f627d4121047b20\",\n\t\"id_curso\": \"5c771ac15f627d3abff87f57\"\n}" }, "url": { "raw": "http://127.0.0.1:5000/carreras/agregar-curso", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "5000", "path": [ "carreras", "agregar-curso" ] } }, "response": [] }, { "name": "Borrar curso de carrera", "request": { "method": "DELETE", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"id_carrera\": \"5c76c5605f627d4121047b20\",\n\t\"id_curso\": \"5c76c5e55f627d41ec4e4d2f\"\n}" }, "url": { "raw": "http://127.0.0.1:5000/carreras/agregar-curso", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "5000", "path": [ "carreras", "agregar-curso" ] } }, "response": [] } ] }, { "name": "Cursos", "item": [ { "name": "Consultar cursos por nombre", "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "accessToken", "type": "any" }, { "key": "addTokenTo", "value": "queryParams", "type": "string" }, { "key": "callBackUrl", "type": "any" }, { "key": "authUrl", "type": "any" }, { "key": "accessTokenUrl", "type": "any" }, { "key": "clientId", "type": "any" }, { "key": "clientSecret", "type": "any" }, { "key": "clientAuth", "type": "any" }, { "key": "grantType", "type": "any" }, { "key": "scope", "type": "any" }, { "key": "username", "type": "any" }, { "key": "password", "type": "any" }, { "key": "tokenType", "type": "any" }, { "key": "redirectUri", "type": "any" }, { "key": "refreshToken", "type": "any" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"nombre\": \"aws\"\n}" }, "url": { "raw": "http://127.0.0.1:5000/cursos/porNombre", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "5000", "path": [ "cursos", "porNombre" ] } }, "response": [] }, { "name": "Consultar cursos por _id", "request": { "method": "GET", "header": [], "url": { "raw": "http://127.0.0.1:5000/cursos?id=5c771ac15f627d3abff87f57", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "5000", "path": [ "cursos" ], "query": [ { "key": "id", "value": "5c771ac15f627d3abff87f57" } ] } }, "response": [] }, { "name": "Crear cursos", "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"nombre\": \"AWS Avanzado\",\n\t\"descripcion\": \"Curso de MongoDB\",\n\t\"clases\": [\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t1,\n\t\t\t\t\"nombre\": \"Clase 1\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 1\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t2,\n\t\t\t\t\"nombre\": \"Clase 2\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 2\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t3,\n\t\t\t\t\"nombre\": \"Clase 3\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 3\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t4,\n\t\t\t\t\"nombre\": \"Clase 4\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 4\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t5,\n\t\t\t\t\"nombre\": \"Clase 2\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 2\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t6,\n\t\t\t\t\"nombre\": \"Clase 3\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 3\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t7,\n\t\t\t\t\"nombre\": \"Clase 4\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 4\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t}\n\t\t\n\t\t]\n}" }, "url": { "raw": "http://127.0.0.1:5000/cursos", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "5000", "path": [ "cursos" ] } }, "response": [] }, { "name": "Actualizar cursos", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"_id\": \"5c7721045f627d3abff87f5e\",\n\t\"nombre\": \"Curso de MongoDB\",\n\t\"descripcion\": \"Curso de MongoDB\",\n\t\"clases\": [\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t1,\n\t\t\t\t\"nombre\": \"Clase 1\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 1\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t2,\n\t\t\t\t\"nombre\": \"Clase 2\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 2\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t3,\n\t\t\t\t\"nombre\": \"Clase 3\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 3\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t4,\n\t\t\t\t\"nombre\": \"Clase 4\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 4\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t5,\n\t\t\t\t\"nombre\": \"Clase 2\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 2\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t6,\n\t\t\t\t\"nombre\": \"Clase 3\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 3\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t7,\n\t\t\t\t\"nombre\": \"Clase 4\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 4\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t}\n\t\t\n\t\t]\n}" }, "url": { "raw": "http://127.0.0.1:5000/cursos", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "5000", "path": [ "cursos" ] } }, "response": [] }, { "name": "Borrar cursos", "request": { "method": "DELETE", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"nombre\": \"Fundamentos de AWS\",\n\t\"descripcion\": \"Aprenderás a desplegar soluciones en la nube de AWS\",\n\t\"clases\": [\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t1,\n\t\t\t\t\"nombre\": \"Clase 1\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 1\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t2,\n\t\t\t\t\"nombre\": \"Clase 2\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 2\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t3,\n\t\t\t\t\"nombre\": \"Clase 3\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 3\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t4,\n\t\t\t\t\"nombre\": \"Clase 4\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 4\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t5,\n\t\t\t\t\"nombre\": \"Clase 5\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 5\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"orden\"\t:\t6,\n\t\t\t\t\"nombre\": \"Clase 6\",\n\t\t\t\t\"descripcion\": \"Descripción de la clase 6\",\n\t\t\t\t\"video\": \"https://video.video\"\n\t\t\t}\n\t\t\n\t\t]\n}" }, "url": { "raw": "http://127.0.0.1:5000/cursos?id=5c76c3765f627d3eb75a46c5", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "5000", "path": [ "cursos" ], "query": [ { "key": "id", "value": "5c76c3765f627d3eb75a46c5" } ] } }, "response": [] } ] }, { "name": "Utilidades", "item": [ { "name": "Estadísticas de conexión", "request": { "method": "GET", "header": [], "url": { "raw": "http://127.0.0.1:5000/cursos/stats", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "5000", "path": [ "cursos", "stats" ] } }, "response": [] }, { "name": "Probar conexión", "request": { "method": "GET", "header": [], "url": { "raw": "http://127.0.0.1:5000/carreras/test", "protocol": "http", "host": [ "127", "0", "0", "1" ], "port": "5000", "path": [ "carreras", "test" ] } }, "response": [] } ] } ] }