GithubHelp home page GithubHelp logo

reservahotel's Introduction

Elaboración de Workshop reserva de hotel.


Para utilizar el siguiente aplicativo, recomendamos agregar primero los datos de los clientes y habitaciones a la base de datos MySQL a través de los scripts cliente y habitación que puede encontrar en src/main/resources. También puede agregarlos mediante los siguientes endpoints

Cliente

http://localhost:8080/api/clientes/crear

{
    "nombres": "Juan",
    "apellidos": "Perez",
    "cedula": "1234567890",
    "direccion": "Calle 123, Ciudad",
    "edad": 30,
    "email": "[email protected]"
}

Habitacion

http://localhost:8080/api/habitaciones/crear

{
  "tipoHabitacion": "PREMIUM",
  "precioBase": 180.0
}

Reserva

No es recomendable crear directamente las reservas en las bases de datos MySQL, se recomienda hacerlo a través del siguiente endpoint:

http://localhost:8080/api/habitaciones/crear

  {
    "clienteCedula": "3333333333",
    "habitacionId": 9,
    "fechaReserva": "2023-11-24"
  }

En la carpeta resources pueden tambier encontrar otros ejemplos para agregar reservas de acuerdo a la información de los clientes y habitaciones que se proporcionó, lo encuentra en un JSON llamado reserva.

Endpoints

En src/main/resources puede también encontrar un JSON llamado endpoints, ahí se encuentran todos los métodos HTTP para realizar el CRUD de todas las entidades, lo único que tiene que hacer es descargarlo e importarlo a una herramienta tal como Postman o Insomnia.

reservahotel's People

Contributors

nickskyline avatar nicolasmahecha1125 avatar romairosanchez avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.