Tueingia kwenye server
This commit is contained in:
parent
2719b5a5fb
commit
04cbde0fda
|
|
@ -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"
|
||||||
|
}
|
||||||
|
|
@ -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"
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue