/** * _.._..,_,_ * ( ) * ]~,"-.-~~[ * .=])' (; ([ * | ]:: ' [ * '=]): .) ([ * |:: ' | * ~~----~~ */
Instalar o composer.phar (já existe para facilitar instalação Jelastic):
https://getcomposer.org/doc/00-intro.md#downloading-the-composer-executable
$ curl -sS https://getcomposer.org/installer | php
Utilizamos composer para carregar os projetos que vamos usar
- Rodar o php composer.phar install no diretório do projeto
- Criar o arquivo index.php e rotas OU baixar do github
-
Ver palestra http://slideshare.net/ivanrosolen/rest-beer-v2
-
Respect Website http://respect.github.io
-
Inpirado na palestra https://github.com/eminetto/restbeer
- GET - http://hostname/cerveja/
- POST - http://hostname/cerveja/
- cerveja[nome]
- cerveja[estilo]
- PUT - http://hostname/cerveja/NOME
- cerveja[nome]
- cerveja[estilo]
- DELETE - http://hostname/cerveja/NOME