https://github.com/omarmakled/symfony4-back-end
Symfony4 & Vue.js
https://github.com/omarmakled/symfony4-back-end
php7 rest-api symfony4 vuejs2
Last synced: about 1 year ago
JSON representation
Symfony4 & Vue.js
- Host: GitHub
- URL: https://github.com/omarmakled/symfony4-back-end
- Owner: OmarMakled
- Created: 2019-01-14T10:00:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-22T07:51:44.000Z (about 7 years ago)
- Last Synced: 2025-04-04T23:32:10.706Z (about 1 year ago)
- Topics: php7, rest-api, symfony4, vuejs2
- Language: PHP
- Homepage:
- Size: 52.7 KB
- Stars: 2
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# REST API Symfony4 & Vue.js

## APIS
| type | url | payload | description |
| ------ | --------------------------- | -------------- | ---------------------- |
| GET | /api/users | | get all users |
| POST | /api/users | {name: string} | add user |
| DELETE | /api/users/{id} | | delete user |
| GET | /api/groups | | get all groups |
| POST | /api/groups | {name: string} | add group |
| DELETE | /api/groups/{id} | | delete group |
| POST | /api/users/{id}/groups/{id} | | attach group to user |
| DELETE | /api/users/{id}/groups/{id} | | detach group from user |
## Project setup
```
git clone git@github.com:OmarMakled/symfony4-back-end.git
cd symfony4-back-end
composer install
set .env DATABASE_URL=
php bin/console doctrine:database:create --no-interaction
php bin/console doctrine:migrations:migrate
php vendor/bin/phpunit
php bin/console server:run
```
## DB

## See Also
[VueJS](https://github.com/OmarMakled/symfony4-front-end)