WebThingsIO / registration_server

The registration server for WebThings Gateway.
Mozilla Public License 2.0
79 stars 34 forks source link

Need list of registered subdomain from Registration server #87

Closed viren-moradiya closed 4 years ago

viren-moradiya commented 4 years ago

Hello Folks,

Good day to you! I am looking for one solution regarding to get list of registered subdomain by calling API to registration server.

Currently Registration server is not providing any API to get registered subdomain list. Can registration server provide this detail by exposing API or we required code changes to expose API and this detail list?

Looking forward for your expert advice.

Thanks, Viren

mrstegeman commented 4 years ago

Are you looking to get a list of all registered subdomains, or subdomains registered to a specific account?

viren-moradiya commented 4 years ago

Hello @mrstegeman,

I am looking for to get a list of all registered subdomains.

mrstegeman commented 4 years ago

That would require a sort of admin account to be added to the registration server, as there is currently no concept of that. It's pretty straightforward to get a list from the database, though.

viren-moradiya commented 4 years ago

@mrstegeman Can you suggest me piece of code area to get this list?

mrstegeman commented 4 years ago

If you connect to your database from the command line (or a script), you can do SELECT name FROM domains.