Giter VIP home page Giter VIP logo

challengefravega's Introduction

Fravega Challenge

Technologies

  • Java 13
  • Postgres 13
  • Spring Boot 2
  • Spring Data JPA
  • Spring Web
  • Flyway Migrations
  • Docker
  • Gradle

Preconditions

  • JDK 13
  • Postgres 13
  • Database client like DBeaver for database creation
  • Docker (is necessary to run the tests)
  • Create postgres database: challengeFravega
  • Authentication to postgres server is username: postgres & password: rootroot
  • Change application.properties according the current postgres server configuration.

Compile & Run

  • ./gradlew bootRun

Api documentation per endpoint

/api/v1.0/branch-office

  • Description: Create a branch office.
  • Example Request: POST API/branch-office
  • Example Request Json Body:
{
  "attention":  "LU/SA: 10:00 a 18:00hs",
  "location" : {
    "address":  "Av. Corrientes 3889, Capital Federal",
    "latitude": "-11.603001",
    "longitude": "-45.419087"
  }
}
  • Example Response 200 OK:
{
  "message": "Branch Office created.",
  "details": null,
  "data": {
    "id": 30,
    "attention": "LU/SA: 10:00 a 18:00hs",
    "location": {
      "id": 47,
      "address": "Av. Corrientes 3889, Capital Federal",
      "latitude": -11.603001,
      "longitude": -45.419087
    }
  }
}

PUT /api/v1.0/branch-office/{id}

GET /api/v1.0/branch-office/{id}

DELETE /api/v1.0/branch-office/{id}

POST /api/v1.0/withdrawal-point

PUT /api/v1.0/withdrawal-point/{id}

GET /api/v1.0/withdrawal-point/{id}

DELETE /api/v1.0/withdrawal-point/{id}

GET api/v1.0/location/nearest-location?latitude={qParam1}={qParam2}

  • Example localhost:8080/api/v1.0/location/nearest-location?latitude=-7.111984&longitude=-45.419087

challengefravega's People

Contributors

danielchungara1 avatar

Watchers

James Cloos 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.