Skip to content

This repository serves as the backend for managing financial transactions and generating reports. Below is an overview of the available endpoints and their functionalities.

Notifications You must be signed in to change notification settings

CH2-PS188/CC_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Documentation

Instructions for Replication

  1. Clone the Repository:
    git clone https://github.com/CH2-PS188/CC_backend.git
  2. Navigate to the Project Directory:
    cd CC_backend
  3. Install Dependencies:
    npm install
  4. Database Setup (if applicable): Include instructions for database setup, migrations, and seed data.
  5. Run the Application:
    npm start
    

Rekening Endpoints

Add Rekening

  • Method: POST
  • Path: /:id_account/rekening
  • Handler: addRekening

Get All Rekening

  • Method: GET
  • Path: /:id_account/rekening
  • Handler: getAllRekening

Get Rekening by ID

  • Method: GET
  • Path: /:id_account/rekening/:id
  • Handler: getRekeningById

Edit Rekening by ID

  • Method: PUT
  • Path: /:id_account/rekening/:id
  • Handler: editRekeningById

Delete Rekening by ID

  • Method: DELETE
  • Path: /:id_account/rekening/:id
  • Handler: deleteRekeningById

Transaksi Endpoints

Add Transaksi (Pemasukan)

  • Method: POST
  • Path: /:id_account/transaksi/pemasukan
  • Handler: addTransaksi

Add Transaksi (Pengeluaran)

  • Method: POST
  • Path: /:id_account/transaksi/pengeluaran
  • Handler: addTransaksi

Get All Transaksi

  • Method: GET
  • Path: /:id_account/transaksi
  • Handler: getAllTransaksi

Get Transaksi by ID

  • Method: GET
  • Path: /:id_account/transaksi/:id
  • Handler: getTransaksiById

Update Transaksi by ID

  • Method: PUT
  • Path: /:id_account/transaksi/:id
  • Handler: updateTransaksiById

Delete Transaksi by ID

  • Method: DELETE
  • Path: /:id_account/transaksi/:id
  • Handler: deleteTransaksiById

Laporan Endpoints

Get All Laporan

  • Method: GET
  • Path: /:id_account/laporan
  • Handler: getAllLaporan

Get Detail Laporan

  • Method: GET
  • Path: /:id_account/detaillaporan
  • Handler: getDetailLaporan

About

This repository serves as the backend for managing financial transactions and generating reports. Below is an overview of the available endpoints and their functionalities.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published