Skip to content

eskil4152/DevSolutionsAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevSolutions API / Backend

Coverage Status Codacy Badge

The server for DevSolutions website and services

HTTP Response Codes Used

  • 200 - OK
  • 401 - Unable to authenticate
  • 403 - Authenticated, but unauthorized
  • 404 - Not found
  • 405 - Method not allowed, when trying to GET on POST endpoints, or other way around
  • 409 - Conflict occurred, as of right now, only when registering with registered username
  • 422 - Not Processable - Data received as expected, but something still went wrong
  • 501 - Not implemented

Parts-Explanation

  • UserController - Handles user-related functions, as login and register.

  • OrdersController - Handles order-related functions, as getting users order history, and order details

  • UserOrders - Middleman between users and their orders

  • ProductController - Handles products, as getting products, retrieving detailed info, updating and such

  • FaqController - Handles faq-related functions, as fetch faq and edit

  • CheckoutController - Handles users cart, middle-man between orders and payment?

  • PaymentController - Handles the payment, most likely via 3rd party

TODO

  • Admin > viewAll -> Pageable

  • Admin controller

    • FAQ
      • Add
      • Remove
    • Products edit
      • Add products
      • Remove products
      • Edit products
      • Update for better efficiency and cost
    • Orders
      • View all orders
      • Update orders
      • Cancel orders
    • View all users / mods
      • View all users
      • View all moderators
      • Grant moderator status
      • Revoke moderator status
      • Grant admin status
      • Revoke admin status
    • Update Orders status
  • FAQ Controller

    • Get all
  • FAQ Error handling?

  • Order Controller

    • Make new order
    • Get all orders from user
    • Get specific order from user
  • Products Controller

    • View all products
    • View a specific product
  • User controller

    • Log in
    • Register
    • View profile
    • Update profile
  • Payment possible

  • Update payment status automatically

  • UserOrder appropriately

  • Properly pass token

  • Make proper security/token checks

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published