Giter VIP home page Giter VIP logo

nisum-integracion-bci's Introduction

NISUM INTEGRATION BCI - JAVA EXAM

Getting started

Stack

Reference Value
JDK 17
Gradle 8.1.1

BULD

Para compilar el proyecto se debe usar el siguiente comando:

gradle build

RUN

Para ejecutar el proyecto se debe usar el siguiente comando:

gradle bootRun

TEST

Para ejecutar las test del proyecto se debe usar el siguiente comando:

gradle test

Para probar el endpoint de registro puede ejeuctar el siguiente curl o importarlo en postman.

Contract validation

Regex por defecto como validacion de negocio.

      email: "^[a-z0-9](\\.?[a-z0-9]){5,}@g(oogle)?mail\\.com$" #Minimum six characters, can use a dot before @ and ending with google.com or gmail.com
      password: "^(?=.*[A-Za-z])(?=.*\\d)[A-Za-z\\d]{8,}$" #Minimum eight characters, at least one letter and one number

Request

curl --location 'http://localhost:8080/v1/users/register' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Carlos Montoya",
    "email": "[email protected]",
    "password": "a123456789",
    "phones": [
        {
            "number": "300",
            "cityCode": "1",
            "countryCode": "57"
        }
    ]
}'

Response

{
    "id": "55e18805-3495-48d2-80a4-9a4f5f18c422",
    "token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJuaXN1bSIsInN1YiI6ImFuZHJlcy5tb250b3lhQGdtYWlsLmNvbSIsImlhdCI6MTY4ODU5MzEyMywiZXhwIjoxNjg4NTk0MzIzfQ.C6iV5z-JT2jNhYWSkc0PnUPFXrAuVoL7MBQNUTyKEYgDWRRBuIzaOVdaqkaqPf24sX2Zs4l5srGOdcinGAvFkGXSa5gVUbVt_QZsZ8TbpnoqXvP97ZVC8PNky-lg2scMPb9gTS9HNv9QTJHZrPpdA8copkqTipx9HQy7bmqCAkuHye_4qmM7qbO_gGBqkZZ_Y-TwzavDEF4TXOwzMuRsI0ZRutYl8IHVL93FgHLnnnWR73jxdCOU0ujdccIFmTqm_3nWQXM-oqSt6jVbnmh9wtCAZlih3QXUhKlscR1YITJtkDhyP0aLIesd8UCgguKORNiDtKJLqUWtCulSrnj6lg",
    "created": "2023-07-05T16:38:43.774023",
    "modified": null,
    "lastLogin": "2023-07-05T16:38:43.774023",
    "active": false
}

DIAGRAM

Diagram

nisum-integracion-bci's People

Contributors

andresmontoyat avatar

Watchers

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