Basic E-Commerce Service
It's open source project providers fundamental product and user management.
Table of Contents
Database Tables
Services
User
-
Register
url: ../user/register | POST
-
request
{ "name": "John Doe", "email": "info@johndoe.com", "password": "123456" }
-
response
if there is no user 201 (Http Created) other case already user 409 (Http Conflict)
-
-
Login
url: ../user/login | POST
-
request
{ "email": "info@johndoe.com", "password": "123456" }
-
response
200 (Http Ok), if token value -1 is user unauthorized.
-
-
Verify
url: ../user/verify/{token} | GET
-
request
User verify with email.
-
response
200 (Http Ok) will other requests sending user token.
-
Product
-
Add
url: ../products/add | POST
-
request
{ "name": "New Product", "price": 60.00, "stock": 30, "category": { "id": 1, "name": "Man" } } MultipartFile[] product images.
-
response
200 (Http Ok) and productlist
-
-
Edit
url: ../products/{productId} | PUT
-
request
Product Object
-
response
200 (Http Ok) and productlist
-
-
Delete
url: ../products/{productId} | DELETE
-
request
Product id send on url path variable.
-
response
200 (Http Ok) is product edited.
-
-
Get
url: ../products/{productId} | GET
-
request
Get request also if there is no productId all products. ../category/{category_id} products of category.
-
response
200 (Http Ok) product, category and productlist
-
-
Images
url: ../products//images/{productId} | GET
-
request
Product id send on url path variable.
-
response
200 (Http Ok) is images of product.
-
Category
-
get
url: ../categories/ | GET
-
request
native get request. /categories/{categoryId} -> related category response.
-
response
200 (Http Ok) and category list.
-
-
Add
url: ../categories/add | POST
-
request
{ "name": "Category" }
-
response
200 (Http Ok) and category list.
-
-
Delete
url: ../categories/delete/{categoryId} | DELETE
-
request
delete request with path variable is categoryId
-
response
200 (Http Ok)
-