Code Monkey home page Code Monkey logo

clients-generation's Introduction

馃殌 Clients Generation - API

Instrucciones de Ejecuci贸n.

  1. Clonar el Repositorio
git clone [email protected]:almsx/clients-generation.git
  1. Ejecutar el siguiente comando para poder levantar el API.
docker-compose up --build

馃殌 En caso de error ...

En caso de que haya un error con MySQL, comparto las siguientes instrucciones.

  1. Ingresar a la Consola de MySQL usando Docker
docker exec -it mysql mysql -u root -p

Y se ejecutan los siguientes comandos:

ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'appbuttons';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%';
FLUSH PRIVILEGES;
exit;
  1. Reiniciar el Contenedor de MySQL
docker-compose down
docker-compose up -d

馃尡 API Documentation Endpoints

馃憢 Crear nuevo Cliente

URL: http://localhost:8080/api/clients

Method: POST

Content-Type: application/json

Description: Este endpoint permite registrar un nuevo cliente en el sistema y devuelve la informaci贸n del cliente registrada.

Request Body:

{
  "name": "Alberto",
  "lastName": "Luebbert",
  "email": "[email protected]",
  "phone": "5511121314"
}

馃憢 Obtener todos los Clientes

URL: http://localhost:8080/api/clients

Method: GET

Content-Type: application/json

Description: Este endpoint permite obtener todos los registros de clientes almacenados en BD.

馃憢 Obtener un Cliente por n煤mero de id

URL: http://localhost:8080/api/clients/${id}

Method: GET

Content-Type: application/json

Description: Este endpoint permite obtener un cliente registrado en la base de datos.

馃憢 Actualizar un Cliente existente

URL: http://localhost:8080/api/clients/${id}

Method: PUT

Content-Type: application/json

Description: Este endpoint permite actualizar parcialmente un registro de un cliente existente.

Request Body:

{
  "name": "Pedro",
  "lastName": "L贸pez",
  "email": "[email protected]",
  "phone": "5512131415"
}

馃憢 Eliminar un Cliente existente

URL: http://localhost:8080/api/clients/${id}

Method: DELETE

Content-Type: application/json

Description: Este endpoint permite eliminar el registro de un cliente existente.

Happy Code 馃摤

clients-generation's People

Contributors

almsx 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.