Skip to content

dayllanmaza/zend-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zend-rest

resources are as requested. Proper form would be

/restaurant
/restaurant/:id/reservation

as requested

|GET|/restaurant| |Retrieve all restaurants |
|POST|/restaurant|name| Insert restaurant info into db | 
|POST|/reservation|restaurantId, reservationDate, numberOfPeople| Insert a reservation into the database|
|GET|/reservation| |Retrieve all reservations from the database|
|PATCH|/reservation/<id>|reservationDate, numberOfPeople|Update an existing reservation in the database|
|GET|/reservation/<id>| |Retrieve a reservation by a given id from the database|
|DELETE|/reservation/<id`| |Remove a reservation from the database|

Installation

cd /path/to/project
composer install
./vendor/bin/doctrine-module orm:schema-tool:update --force
php -S 0.0.0.0:8080 -t public/ public/index.php

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published