Skip to content

amjadkhan896/symfonyRestAPI

Repository files navigation

symfonyRestAPI

symfony Rest Api is a rest service to handle the CRUD for the Products, Discounts, Product Groups and Orders, The Data base Schema is very basic, And can be further enhanced and modified, Its Just a symfony Practice. There is no Visual interfaces, Its Just an API calls and the response is a Json Objects. Which can be further enhanced and modified

To run the Project

First Clone the project

git clone [email protected]:amjadkhan896/symfonyRestAPI.git

Then second step is

cd symfonyRestApi

Then

composer install

Then if you want to generate the data base with 0 entries

php bin/console make:migration
php bin/console doctrine:migrations:migrate
php bin/console doctrine:schema:update --force

Or if you want the database, I already put the database backup file. import it into mysql

The last step to run the project is

php bin/console server:run

To check the route end points

You can run the command to see the routes and their parameters

php bin/console debug:router

I have added all the api routes in routes-plus-params.txt and their inputs. So that if you use Postman or any other software. to check the response. The Params i speciefied or in the form of Json. So you will select

BODY->RAW->JSON

About

The Symfony Rest API for handling the products,

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published