This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "products": [ | |
| { | |
| "id": 110, | |
| "name": "PINK PANTHER™ T-SHIRT", | |
| "category": "T-SHIRTS", | |
| "regularPrice": 124.99, | |
| "promotions": [ | |
| { | |
| "looks": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| create or replace function tipo(varchar) | |
| returns setof notas as | |
| ' | |
| SELECT n.* FROM notas n, tiponota t | |
| where t.nome = $1 | |
| and t.codigo = n.tipo_nota; | |
| ' | |
| language 'sql'; | |
| -- select tipo('p1'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Crie o arquivo dentro de /etc/apache2/sites/available | |
| -> vim mvc.conf // Este comando criara um arquivo com o nome mvc.conf | |
| Dentro deste arquivo coloque o seguinte codigo | |
| <VirtualHost *:80> | |
| ServerName mvc.com.br // Nome da URL que voce quer usar | |
| DocumentRoot /var/www/REST_MVC/public // Aponta a pasta onde estao os arquivos | |
| <Directory /var/www/REST_MVC/public> // Aplica as regras para os arquivos que estao na pasta | |
| DirectoryIndex index.php // Primeira pagina a ser executada | |
| AllowOverride All // |