Sistemas Web II
  • JavaScript 69.8%
  • JSON 30.2%
Find a file
2025-02-27 16:47:17 +01:00
routes feat: initial commit 2025-02-27 15:29:39 +01:00
schemas feat: initial commit 2025-02-27 15:29:39 +01:00
.gitattributes feat: initial commit 2025-02-27 15:29:39 +01:00
.gitignore feat: initial commit 2025-02-27 15:29:39 +01:00
index.js feat: initial commit 2025-02-27 15:29:39 +01:00
package-lock.json feat: initial commit 2025-02-27 15:29:39 +01:00
package.json feat: initial commit 2025-02-27 15:29:39 +01:00
README.md docs(readme): add Postman screenshots 2025-02-27 16:47:17 +01:00

Ejercicio AJV - Sistemas Web II

Este ejercicio tiene como finalidad hacer uso del validador de JSON schemas AJV.

Uso

Primero instale las dependencias con el comando:

npm install

Para lanzar el servidor, use el comando:

npm start

Nota: Por el contexto de este ejercicio, para testear los schemas, al lanzar el servidor se hacen automaticamente 2 peticiones POST hacia el endpoint de validación, envíando los 2 schemas que se encuentran en schemas.

Endpoint

POST http://localhost:8080/validate

Parametros (body): El JSON schema que se quiera validar

image

Schema válido (200)


image

Schema inválido (400)