Tueingia kwenye server

This commit is contained in:
Bryson Mmari 2025-09-03 16:46:30 +03:00
parent 2719b5a5fb
commit 04cbde0fda
2 changed files with 44 additions and 1 deletions

27
src/api.req.http Normal file
View File

@ -0,0 +1,27 @@
GET http://localhost:3000/api/product
POST http://localhost:3000/user
Content-Type: application/json
{
"username": "bryTheOwner",
"password": "bry@123"
}
POST http://localhost:3000/signin
Content-Type: application/json
{
"username": "bryTheOwner",
"password": "bry@123"
}
POST http://localhost:3000/api/product
Content-Type: application/json
{
"name": "Sample Product",
"description": "This is a sample product description.",
"price": 29.99,
"category": "Sample Category"
}

View File

@ -1 +1,17 @@
GET http://localhost:3000
GET http://localhost:3000/api/product
POST http://localhost:3000/user
Content-Type: application/json
{
"username": "bry",
"password": "bry@2030"
}
POST http://localhost:3000/user/signin
Content-Type: application/json
{
"username": "john",
"password": "securepassword123"
}