A Simple Payments server written in Rust using the Axum Web Framework and Diesel ORM.
The Database used is PostgresDB, which is run in a docker container
Run the following:
$ docker compose up -d
$ cargo install diesel
$ diesel migrations run
$ cargo run
$ diesel migrations redo --all
The following endpoints can be used with bruno in SmplPaymentsBrunoCollection
folder:
POST /sign_up
: Sign up to servicePOST /sign_in
: Authenticate and get JWTGET /profile
: Get profilePUT /profile
: Update profileGET /wallet
: Get walletPUT /wallet
: Deposit/Withdraw walletPOST /transactions
: Create transactionGET /transactions
: List transactionGET /transactions/:id
: Get transaction