SIMEN backend example
Getting Started
Install composer in your path, then clone the repository
$ git clone http://gogs.ragnarok.yvan.hu/SIMEN/simen-backend-zf3mw.git simen-backend
Install the dependencies
$ composer install
Set up your webserver to point to the public folder of the project
Create a copy of the default doctrine configuration template:
$ cp config/autoload/doctrine.local.dist.php config/autoload/doctrine.local.php
Edit doctrine.local.php and set up your database connection.
You can do the same with
errorhandler.local.dist.phpif you want to set up a fancy error handler
In development you can install the initial database with
$ vendor/bin/doctrine orm:schema-tool:create
API endpoints are:
- list all: HTTP GET /api/article
- get one: HTTP GET /api/article/:id
- insert: HTTP POST /api/article
- update: HTTP PUT /api/article/:id
- delete: HTTP DELETE /api/article/:id
Description
Languages
PHP
100%