Table of Contents
This service includes JWT login and registration. The purpose of the service is to create an order, edit the created order, view all orders and present the order details via API for the customer logged in with JWT.
You can follow the simple guidelines below to get the project working.
To run this project, PHP 7.4 (or higher) and composer must be installed.
Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services._
- Clone the repo
git clone https://github.com/Mhmmdkyr/symfony-order.git
- Install composer packages
composer install
- Edit the .env file yourself.
DATABASE_URL=mysql://root:root@127.0.0.1:3309/symfony_case
All field required.
/api/register
Param | Type | Default | Description |
---|---|---|---|
username | string | null | Username |
password | string | null | Password |
string | null | E-mail address |
All field required.
/api/login_check
Param | Type | Default | Description |
---|---|---|---|
username | string | null | Username |
password | string | null | Password |
/api/order
/api/order/show/{order_code}
/api/order/add
Param | Type | Required | Description |
---|---|---|---|
orderCode | string | yes | Order Code |
productId | integer | yes | Product ID |
quantity | integer | yes | Quantity to order |
address | string | yes | Order delivery address |
As all parameters update know, only one parameter can also be updated.
/api/order/edit/{order_code}
Param | Type | Required | Description |
---|---|---|---|
orderCode | string | no | Order Code |
productId | integer | no | Product ID |
quantity | integer | no | Quantity to order |
address | string | no | Order delivery address |
- JWT Login and Register
- Show all orders
- Add an order
- Show an order
- Edit an order
- Add README.md file
- Add Postman Collection
- Unit Tests
- Docker Image
Muhammed Kayar - @mhmmdkyr - mail@muhammedkayar.com.tr
Project Link: https://github.com/Mhmmdkyr/symfony-order