Skip to content

Smart-Recycling/smartrecycling-backend

Repository files navigation

Smart Recycling API Docs

Smart Recycling API is built using Express.js and MySQL. Below is the documentation for the available endpoints.

Full documentation right here

Installation

Install the required dependencies:

npm i

yarn install

pnpm install


Run testing

Follow the following steps to run the test on this file

Usage

Test the API using POSTMAN or any other API testing tool.

IMPORT FIRST TO SEE ENDPOINTS

Table of Endpoints

No. Endpoints Method
1 /api/signup POST
2 /api/signin POST
3 /api/user GET
4 /api/users [admin] GET
5 /api/user/points POST
6 /api/user/change-role GET
7 /api/reports GET
8 /api/reports POST
9 /api/events GET
10 /api/events POST
11 /api/events/:id PUT
12 /api/exchange POST
12 /api/exchange POST
13 /api/exchange/:user_id POST
14 /api/payment-history/:user_id GET
15 /api/transaction-history/:user_id GET
16 /api/payment-method POST
17 /api/transaction-payment POST
18 /api/items GET
19 /api/items POST
20 /api/items/:id PUT

Credit to Jody Yuantoro and Syauqi

MIT LICENSE

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published