Code Monkey home page Code Monkey logo

e-commerce's Introduction

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": "[email protected]",
         "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": "[email protected]",
         "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

e-commerce's People

Contributors

yusufcakal avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.