🏄♂️
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
| find . -type d -exec chmod 750 '{}' \; | |
| find . -type f -exec chmod 640 '{}' \; | |
| find . -type d -name files -exec chmod 770 '{}' \; |
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
| # GET Node in hal+json format | |
| curl -v -H "Accept:application/hal+json" --request GET http://127.0.0.1:8080/drupal/node/1?_format=hal_json | |
| # GET Node in json format | |
| curl -v -H "Accept:application/json" --request GET http://127.0.0.1:8080/drupal/node/1?_format=json | |
| # POST Node in hal+json format | |
| curl --include --request POST --user user:pass --header 'Content-type: application/hal+json' http://127.0.0.1:8080/drupal/entity/node --data-binary '{"_links":{"type":{"href":"http://127.0.0.1:8080/drupal/rest/type/node/article"}}, "title":[{"value":"Node created using curl at Drupalaton 2015"}], "body": [{"value":"This is the body of the node created using curl at Drupalaton 2015. Are you having fun?"}]}' | |
| # Update Node using PATCH | |
| curl --include --request PATCH --user user:pass --header 'Content-type: application/hal+json' http://127.0.0.1:8080/drupal/node/2 --data-binary '{"_links":{"type":{"href":"http://127.0.0.1:8080/drupal/rest/type/node/article"}}, "title":[{"value":"Welcome to Drupalaton 2015"}], "body": [{"valu |
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
| " Allow Vim-only settings even if they break vi keybindings. | |
| set nocompatible | |
| " Load plugins with Pathogen | |
| execute pathogen#infect() | |
| execute pathogen#helptags() | |
| " Enable filetype detection. | |
| filetype off | |
| filetype plugin indent on |