SteveyO / Hue-Emulator

A Bridge API Emulator for the Philips Hue (Personal Wireless System)
165 stars 41 forks source link

/api/config is missing #24

Open ArndBrugman opened 8 years ago

ArndBrugman commented 8 years ago

A normal bridge would return configuration on an api call to /api/config even without having a username supplied or being whitelisted. Would be great if you can add this too :+1:

SteveyO commented 8 years ago

Sure, I thought I had this but if not I will include in next release.

ArndBrugman commented 8 years ago

Note that this is without the whitelisting. I don't know if this is a regular api call, but it works as expected. It is (whithout the whitelisting) undocumented. [bridgeip]/api/config, not [bridgeip]/api/[whitelistedusername]/config.

SteveyO commented 8 years ago

Yes I know. Actually I wrote the documentation for this myself, about 2 months ago, although it's hidden a little in the below URL:. http://www.developers.meethue.com/documentation/message-structure-and-response-0#nonValidUsers

Also, I have just added a link to this from: http://www.developers.meethue.com/documentation/core-concepts (Under the "The hue username" heading) to make it a little more obvious. Steve

ArndBrugman commented 8 years ago

Yep! Exactly. Thx :)

On Mon, Dec 14, 2015 at 4:29 PM, Steve notifications@github.com wrote:

Yes I know. Actually I wrote the documentation for this myself, about 2 months ago, although it's hidden a little in the below URL:.

http://www.developers.meethue.com/documentation/message-structure-and-response-0#nonValidUsers

Also, I have just added a link to this from: http://www.developers.meethue.com/documentation/core-concepts (Under the "The hue username" heading) to make it a little more obvious. Steve

— Reply to this email directly or view it on GitHub https://github.com/SteveyO/Hue-Emulator/issues/24#issuecomment-164467404 .

SteveyO commented 8 years ago

Committed to github. As per your other issueI will close this when I release a new version. Note that some fields are missing (e.g. apiversion, swversion, replacesbridgeid, factorynew). None of these are likely to be added to the Emulator in the future as they are not relevant.

mynote commented 7 years ago

zigbeechannel is missing which is important ;-)