From 5e6fd86a0ec0192a8936dbde7e8890e2f0506fa9 Mon Sep 17 00:00:00 2001 From: Marcos Alzate C Date: Wed, 17 Sep 2025 16:30:37 -0500 Subject: [PATCH 1/5] Este es el primero commit --- archivo1.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 archivo1.txt diff --git a/archivo1.txt b/archivo1.txt new file mode 100644 index 0000000..9af7ef8 --- /dev/null +++ b/archivo1.txt @@ -0,0 +1 @@ +Este es el primer archivo apra commitear From d1783c1d7bebe3aa7262c32dadf79d7a7119b70b Mon Sep 17 00:00:00 2001 From: Marcos Alzate C Date: Wed, 17 Sep 2025 16:31:54 -0500 Subject: [PATCH 2/5] Este es el segundo commit --- archivo2.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 archivo2.txt diff --git a/archivo2.txt b/archivo2.txt new file mode 100644 index 0000000..296cc53 --- /dev/null +++ b/archivo2.txt @@ -0,0 +1 @@ +Este es para que se diviertan leyendo From d4071c57cd4adb62c2c33b3bbd9d5a78cc35624d Mon Sep 17 00:00:00 2001 From: Marcos Alzate C Date: Wed, 17 Sep 2025 16:32:20 -0500 Subject: [PATCH 3/5] Este es el tercer commit --- archivo3.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 archivo3.txt diff --git a/archivo3.txt b/archivo3.txt new file mode 100644 index 0000000..6cee351 --- /dev/null +++ b/archivo3.txt @@ -0,0 +1 @@ +Acá ya se está logrando resolver todo el examen, y sería el último commit From c439261bfd39f3d69de0e5c506066569dc485860 Mon Sep 17 00:00:00 2001 From: Marcos Alzate C Date: Wed, 17 Sep 2025 16:41:28 -0500 Subject: [PATCH 4/5] =?UTF-8?q?Este=20ha=20sido=20el=20cambio=20de=20los?= =?UTF-8?q?=20m=C3=A9todos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app.py b/app.py index 7042ec7..6b29bf1 100644 --- a/app.py +++ b/app.py @@ -30,6 +30,15 @@ def get_day(day_id): def post_days(): return jsonify({"success": True}), 201 +#ESTE ES EL MÉTODO GET QUE SE PIDIÓ +@app.route("/", methods=["GET"]) +def get_days(): + return True + +#ESTE ES EL MÉTODO POST QUE SE PIDIÓ +@app.route("/", methods=["POST"]) +def post_days(): + return f"Posted to / with method POST" if __name__ == "__main__": app.run(debug=True) From 23b367561fcf7cb43cf8fc2d1a303fe01557c9db Mon Sep 17 00:00:00 2001 From: Marcos Alzate C Date: Wed, 17 Sep 2025 16:44:51 -0500 Subject: [PATCH 5/5] =?UTF-8?q?Comentarios=20sobre=20im=C3=A1gen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6137b27..6f1b62f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,12 @@ -FROM python:3.7.11-slim - +#ESTA ES L IMÁGEN EN DOCKER HUB +FROM python:3.7.11-slim +#ACÁ ES DONDE SE GUARDARÁ LA CREACIÓN DE LA IMAGEN WORKDIR /python-api - +#COPIAMOS EL ARCHIVO DE REQUERIMIENTOS COPY requirements.txt requirements.txt - +#INSTALAMOS LOS REQUERIMIENTOS RUN pip install -r requirements.txt - +#COPIAMOS TODO EL CÓDIGO COPY . . - +#EXPOSE EL PUERTO Y TODA LA DEFINICÓN DE LA CREACIÓN DE LA IMAGEN CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]