Implementação de API REST PHP com Framework Phalcon
1 For use this code you need to install cPhalcon in your webserver
- Follow the Phalcon Installation Guide instructions
2 Add configuration for in your apache vHosts
<VirtualHost *:80>
ServerAdmin youremail@yourhost.com
DocumentRoot "PATH_FOR_YOUR_API"
ServerName www.yourapi.com.br
ServerAlias www.yourapi.com.br
ErrorLog "logs/api-error.log"
CustomLog "logs/api-access.log" combined
RewriteEngine On
<Directory "PATH_FOR_YOUR_API">
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
- Add User Guide
- Add Running Migrations Guide
- Add Methods Explanation
- Table migrations
- Add Token authorization
- Add Middleware Content-type Verification
- Add Middleware Authorization
- User ACL