
Las siguientes clases son los modelos:
- Long id
- String nombre
- String apellido
- int edad
- List listaMascotas
- Long id
- String nombre
- String especie
- String raza
- String color
En donde una persona puede tener varias mascotas y varias mascotas pueden pertenecer a una persona.
GET localhost:8080/personas/traer
POST localhost:8080/persona/crear
Descripcion |
Requerido |
Se requiere un objeto para crear un registro |
Objeto por Body |
DELETE localhost:8080/persona/eliminar/{id}
Descripcion |
Requerido |
Se requiere un id para eliminar un registro |
Id de tipo Long |
PUT localhost:8080/persona/editar
Descripcion |
Requerido |
Se edita un registro ya creado |
Objeto por Body |
GET localhost:8080/mascotas/traer
POST localhost:8080/mascota/crear
Descripcion |
Requerido |
Se requiere un objeto para crear un registro |
Objeto por Body |
DELETE localhost:8080/mascota/eliminar/{id}
Descripcion |
Requerido |
Se requiere un id para eliminar un registro |
Id de tipo Long |
PUT localhost:8080/mascota/editar
Descripcion |
Requerido |
Se edita un registro ya creado |
Objeto por Body |