Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

wpcom/v2 endpoints do not autocomplete #26

Open
sirbrillig opened this issue May 29, 2017 · 3 comments
Open

wpcom/v2 endpoints do not autocomplete #26

sirbrillig opened this issue May 29, 2017 · 3 comments
Labels

Comments

@sirbrillig
Copy link
Member

To reproduce:

  1. Open the dev console.
  2. Change the endpoint path to wpcom/v2 (see screenshot below).
  3. Type /sites into the path field.

What I expected: to see a list of /sites endpoints.

What I saw instead: nothing happens, but there's an error in the dev console.

screen shot 2017-05-29 at 3 33 48 pm

screen shot 2017-05-29 at 3 35 23 pm

I believe the line in question is this un-guarded regexp reference:

var paramName = '$' + explodedParameter[1];

@sirbrillig sirbrillig added the bug label May 29, 2017
@youknowriad
Copy link
Contributor

Should this be moved to the new console repository https://github.com/Automattic/wp-api-console? This repo is for the previous one?

@sirbrillig
Copy link
Member Author

@youknowriad hm... I was thinking that, but the regexp that produces the error (in the wpcom dev console) seems to not be in the new repository. Because of that I assumed that the dev console must be running this version. Am I mistaken?

@sirbrillig
Copy link
Member Author

Oh! Maybe I'm wrong. This line might have the same issue. I'll move the bug report over there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants