[support] Getting restws configured

Jeff Greenberg listmail.ayendesigns at gmail.com
Thu Dec 12 14:11:27 UTC 2013


node/1.json from the browser yields:

The requested page "/node/1.json" could not be found


On Thu, Dec 12, 2013 at 8:33 AM, Lucas Hedding <lucashedding at gmail.com>wrote:

> Let's test if the module works. Can you simply hit /node/1.json from the
> browser? That should render up a json copy of the first node.
>
> Is person a node content type, a new entity type or the user entity? If it
> is node or user, then restws already supports those out of the box. All you
> have to do (for a GET) is append .json on the request. Also, make the user
> that you connect with has appropriate permissions. If you use basic
> authentication, that means crafting a BA header that includes the base64
> encoded REST application id and password and passing it along with the
> request.
>
> Another helpful feature I've used with restws; I run advanced rest client
> through xdebug. All that is necessary for that is to add the xdebug cookie
> to the headers. Then put a break point and step through the code.
>
> Cookie: XDEBUG_SESSION=%idekey%
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>



-- 
---
drupal.org/user/367108
linkedin.com/in/jeffrgreenberg
accidentalcoder.com / ayendesigns.com
@accidentalcoder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20131212/3c3241fa/attachment.html 


More information about the support mailing list