Code Monkey home page Code Monkey logo

bank-crud's Introduction

BANK CRUD

Simple HttpServer app to perform CRUD operations on the clients of bank.

Endpoints

  • GET /clients | get clients with pagination, filters and sorts | parameters:
    • (required) size = page size
    • (required) page = number of page
    • adult = flag indicating if we want to get only adults or only children
    • sortBy = indication of sorting, possibilities: name, surname, birthYear, money
    • sort = asc (default) or desc
  • POST /clients | create client with money=0 | parameters:
    • (required) name
    • (required) surname
    • (required) birthYear
  • GET /clients/:id | get client with id=:id
  • POST /clients/:id | update client with additional money | parameters:
    • (required) money = money to add, can be negative also
  • DELETE /clients/:id | delete client with id=:id
  • GET /metrics | returns metrics in text format for Prometheus

Modules

  1. api - provides basic, abstract traits
  2. bank - implements api
  3. rest - provides rest api using bank implementations

How to run

docker-compose up -d

sbt run

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.