Back to Activities

Activity 5: RESTful API Testing

Tumauini AgriRice System

Back-End Web Development and Databases

Base URL

https://tumauini-agri-rice.online/php/

Database

janine_rice (MySQL)

Endpoints

17 RESTful API Endpoints

Tables

6 Database Tables (CRUD)

CRUD Operations Testing

Products Management

GET

Get All Products

Retrieve all rice products

GET

Get Single Product

POST

Add New Product

PUT

Update Product

DELETE

Delete Product

Authentication

POST

User Login

POST

User Registration

Shopping Cart

GET

Get Cart Items

POST

Add to Cart

DELETE

Remove from Cart

Orders Management

POST

Checkout (Create Orders)

GET

Get Buyer Orders

PUT

Update Order Status

Admin APIs

GET

Get All Users

GET

System Statistics

GET

All Transactions