Last active
March 12, 2021 13:04
-
-
Save andriyun/3f15a0edab5ccf8db53c1890e7007bd2 to your computer and use it in GitHub Desktop.
Revisions
-
andriyun revised this gist
Mar 12, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ curl --include \ --request POST \ --user admin:admin \ --header 'Content-type: application/hal+json' \ http://drift.docksal/entity/node?_format=hal_json \ --data-binary '{"_links":{"type":{"href":"http://drift.docksal/rest/type/node/article"}},"title":[{"value":"Example node title"}],"type":[{"target_id":"article"}]}' # Update -
andriyun revised this gist
Mar 11, 2021 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,15 +4,15 @@ curl --include \ --user admin:admin \ --header 'Content-type: application/hal+json' \ http://drift.docksal/node/1?_format=hal_json \ --data-binary '{"_links":{"type":{"href":"http://drift.docksal/rest/type/node/article"}},"title":[{"value":"Example node title"}],"type":[{"target_id":"article"}]}' # Update curl --include \ --request PATCH \ --user admin:admin \ --header 'Content-type: application/hal+json' \ http://drift.docksal/node/5?_format=hal_json \ --data-binary '{"_links":{"type":{"href":"http://drift.docksal/rest/type/node/article"}},"title":[{"value":"Example node title updated"}],"type":[{"target_id":"article"}]}' # Get -
andriyun created this gist
Mar 11, 2021 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ # Create curl --include \ --request POST \ --user admin:admin \ --header 'Content-type: application/hal+json' \ http://drift.docksal/node/1?_format=hal_json \ --data-binary '{"_links":{"type":{"href":"http://drift.docksal/rest/type/node/article"}},"title":[{"value":"Example node title updated again"}],"type":[{"target_id":"article"}]}' # Update curl --include \ --request PATCH \ --user admin:admin \ --header 'Content-type: application/hal+json' \ http://drift.docksal/node/5?_format=hal_json \ --data-binary '{"_links":{"type":{"href":"http://drift.docksal/rest/type/node/article"}},"title":[{"value":"test"}],"type":[{"target_id":"article"}]}' # Get curl --include \ --request GET \ --user admin:admin \ --header 'Content-type: application/hal+json' \ http://drift.docksal/rest-example?_format=hal_json