Skip to content

Spring Cloud Stream based REST API for customer management in insurance applications.

Notifications You must be signed in to change notification settings

labcabrera/hodei-customers-api

Repository files navigation

Hodei Customers API

Ejemplo de consulta:

{
  customer(id : "5f9c5500e930620621202e89") {
    id
    idCard {
      type
      number
    }
    name
    surname1
    surname2
    birth
    birthCountry {
      id
      name
    }
    fiscalAddress {
      country {
        id
        name
      }
      province {
        id
        name
      }
      locality
      zipCode
      road
    }
    professionInfo {
      profession {
        id
        name
      }
    }
  }
}

Que produce la siguiente respuesta:

{
  "data": {
    "customer": {
      "id": "5f9c5500e930620621202e89",
      "idCard": {
        "type": "NIF",
        "number": "11111111H"
      },
      "name": "John",
      "surname1": "Doe",
      "surname2": "Smith",
      "birth": "1980-08-30",
      "birthCountry": {
        "id": "ESP",
        "name": "Spain"
      },
      "fiscalAddress": {
        "country": {
          "id": "ESP",
          "name": "Spain"
        },
        "province": {
          "id": "ESP-28",
          "name": "Madrid"
        },
        "locality": "Madrid",
        "zipCode": "28013",
        "road": "Serrano 2, 3ºA"
      },
      "professionInfo": {
        "profession": {
          "id": "artist",
          "name": "Artist"
        }
      }
    }
  }
}
{
  customerByIdCard(idCard: "11111111H") {
    id
    idCard {
      type
    }
    name
    surname1
    surname2
  }
}
{
  customers(page: 0, size: 2) {
    id
    idCard {
      number
      type
    }
  }
}

About

Spring Cloud Stream based REST API for customer management in insurance applications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published