First, excellent tutorials, thank you!

Running into a slight problem. In tutorial 4, in the section adding login, 
it is written that if you "navigate to the '/users/' endpoint" the 
"representation includes a list of the snippet ids that are associated with 
each user, in each user's 'snippets' field".

I'm not seeing this.  I only see basic info on each user.  This is the 
result when I go to the /users/ endpoint:

*HTTP 200 OK**Allow:* GET, POST, HEAD, OPTIONS*Content-Type:* 
application/json*Vary:* Accept
{
    "count": 2,
    "next": null,
    "previous": null,
    "results": [
        {
            "url": "http://localhost:8000/users/2/";,
            "username": "doug",
            "email": "",
            "groups": []
        },
        {
            "url": "http://localhost:8000/users/1/";,
            "username": "bfalk",
            "email": "",
            "groups": []
        }
    ]}


Did I miss something in the tutorial?  Or should it read: go to the 
"/snippets/" endoint (where I do see a connection between each user and a 
snippet), eg:

        {
            "id": 2,
            "title": "",
            "code": "for x in range(y):\r\n    x",
            "linenos": true,
            "language": "python",
            "style": "friendly",
            "owner": "bfalk"
        },


https://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/#adding-login-to-the-browsable-api

Thanks, very much.

Ben

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/a108e2dc-cf79-4f0c-86a8-28a2fbe6b023%40googlegroups.com.

Reply via email to