Skip to content

The-Black-Owl/user-role-authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

user-role-authentication

The HOST can vary

Mwethod POST localhost:8090/auth/register { "firstName":"test", "lastName":"Man", "email": "[email protected]", "password":"password" } example of the JSON payload the endpoint takes. the output payload. { "firstName": "test", "lastName": "Man", "email": "[email protected]", "token": "" }

method POST localhost:8090/auth/login uses bearer token authentication

{ "email": "[email protected]", "password":"password" }

return the response/ output payload of { "firstName": "test", "lastName": "Man", "email": "[email protected]", "token": "" }

method POST localhost:8090/admin/add_product This enpoint allows the administrator, to add an itme to the DB The input payload looks as follows. { "productName": "Example Product", "SKU": 123456, "productDescription": "This is an example product description", "category": "Example Category" }

The output payload looks as follows { "productName": "Example Product", "productDescription": "This is an example product description", "category": { "categoryID": 2, "categoryName": "Example Category", "products": null }, "sku": 123456 }

The SKU, is the stock unit number which serves as a unique identifier for the products.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages