You aren’t doing anything wrong, *but* the root /hub/api/ endpoint is new in 0.8. You’ll have to hit something like /hub/api/users in 0.7.2. You can use the 0.7.2 version of the REST API docs <https://jupyterhub.readthedocs.io/en/0.7.2/_static/rest-api/index.html> to make sure you don’t get misled.
-Min On Mon, Aug 21, 2017 at 10:50 PM, Maria Julia Lima <[email protected]> wrote: > Hi > > Certainly, I should be doing something wrong, but I can not access the > REST API of jupyterhub. I am using the version 0.7.2 and the following > configuration: > > c.Authenticator.admin_users = {'admin', 'mjulia'} > c.JupyterHub.api_tokens = { > '057d0e5a8a1b4190895834c6ad6ec01f': 'admin', > } > > I get 404 error when I try to call any API request. For example: > > curl -H "Authorization: Token 057d0e5a8a1b4190895834c6ad6ec01f" -H > "Content-Type: application/json" -XGET http://loc01/hub/api/ > > > I am testing in my own machine. > Is there some missing configuration or am I doing something wrong? > > Thanks in advance. > > -- Julia > > -- > You received this message because you are subscribed to the Google Groups > "Project Jupyter" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/jupyter/253cc9b4-4f9f-4183-965f-36cbdff2a906%40googlegroups.com > <https://groups.google.com/d/msgid/jupyter/253cc9b4-4f9f-4183-965f-36cbdff2a906%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAHNn8BX7P%3Dsh8cmc-HAhSMAe2kahG-Hek0yjgLtLUEVjsWHj8A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
