Skip to content

hanniel09/desafiopicpay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Picpay challenge

Challenge from the company picpay which consists of a program that creates other users of two types, common and logistician. The common person can receive and send transfers, the logistician can only receive transfers.

  • The transfer must go through a mocky if it is in that mocky that you have "authorized" the transfer will be sent.

  • You can only have one user with one document and email. Another user cannot be created with the same data.

API Reference

Get user

  GET /users
Parameter Type Description
- - Required. Server running

Create a user

  POST /users
Parameter Type Description
firstName, lastName, document, email, password, balance, userType JSON Required. Parameters to create a user

Sender a transaction

  POST /transactions
Parameter Type Description
amount, sender_id, receiver_id JSON Required. Be a common user and have sufficient balance in your account

Tech Stack

Server: Spring, Java, H2(In memory database), maven

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages