The Wayback Machine - https://web.archive.org/web/20200905114242/https://github.com/yusufcakal/e-commerce/
Skip to content
master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
Mar 25, 2018
Mar 1, 2018
Feb 26, 2018
Mar 26, 2018
Feb 26, 2018
Feb 26, 2018
Mar 10, 2018

README.md

basliksiz-1

Basic E-Commerce Service


It's open source project providers fundamental product and user management.


Table of Contents

Database Tables

ekran alintisi

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)
    

License

License: GPL v3

Acknowledgment

About

dolap.com interview project 💳

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.