Code Monkey home page Code Monkey logo

challenge-clip's Introduction

Clip Challenge

Table of Contents

  1. Prerequisites
  2. Challenge
  3. run test on postman

Prerequisites

  • Spring Boot
  • JPA
  • H2
  • Maven 4
  • Java 11

Challenge

This applications consist of the following:

  • Controller package: where the basic endpoint is.
  • Repository package: repository package for
  • Model package: where entities are stored.
  • Request package: objects that represent request.

The project contains a simple API that saves a payment in an in-memory database (for the sake of this example lets use a in-memory-database). The challenge consists of completing as many of the following steps as possible:

  1. Create a new endpoint to list all users that have a payment saved in the database (information about payments should be already filled).
  2. Create a new endpoint so the api can support a disbursement process:
    • A disbursement process gets all transactions with status new and subtracts a fee of 3.5% per transaction.
    • It updates all transactions with a status NEW to PROCESSED.
    • Returns a list of users and the amount the'll get -- Example - User_1 payment: 100, Disbursement: User_1:97.5 (Discount the fee)
  3. Create an endpoint that returns a report per user:
    • Report: { user_name - user name payments_sum: - sum of all payments (no mater what's the status) new_payments: sum of all new payments new_payments_amount: sum of the amount of each payment }
  4. Add security for the disbursement process endpoint.

Notes

  • The expected minimum is that you complete steps 1,2,3. 4 is optional (Completing all is an extra).
  • We want see your skills and abilities to code so if at any moment you want to change or refactor anything go ahead.
  • We are considering as reviewers that your code challenge is code-prod-quality and it will review under this impression.
  • Please initialize the directory with the challenge as a git repo so you can commit new features and we check on your thought process.
  • Please upload the code-challenge to a git-repository and share the access with the reviewers thavt recruitment team indicates.

run test on postman

import the collections, the file is inside in the folder postman, run the project and run the collection to insert the transactions

challenge-clip's People

Contributors

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