Skip to content

volkandogan/OrderApp

Repository files navigation

System Requirement

  • PHP Version 7.4 or Above
  • Composer
  • Git

Installation

Use the package manager (composer and npm) for installing

  1. Do the following commands for installing
git clone https://github.com/volkandogan/OrderApp.git
cd OrderApp
composer install
copy .env.example .env
  1. Create a database
  2. Setting database name, username, and password in your .env file
  3. Do the following instructions if you're done setting database in .env
php artisan migrate
php artisan key:generate

To run the application

php artisan serve

AVAILABLE ENDPOINTS

POST /api/login

Logs a user into the application

  • Form fields:
    • email: string
    • password: string
  • Response:
    • token

POST /api/order

store a order into the application

  • Form fields:

    • product_id: integer
    • user_id: integer
    • shipping_date:date
    • quantity:integer,
    • adress:string
  • Response:

    • status
    • data
    • message

PUT /api/order/{id}

update an order with order id

  • form fields: - quantity: integer

  • response:

    • status
    • data
    • message

GET /api/order

get all orders

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published