Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API #61

Open
spinza opened this issue Feb 23, 2016 · 6 comments
Open

API #61

spinza opened this issue Feb 23, 2016 · 6 comments

Comments

@spinza
Copy link
Contributor

spinza commented Feb 23, 2016

A simple read-only API would be good. We have a few apps that use node locations for example and this would be good to have accessible via API.

Prefer if it were API key based or at least only show public info if not protected.

@jammin84
Copy link
Contributor

There is already some API used for the actual map / location data.

example
https://wind.ctwug.za.net/index.php/map/json?node=0&filter=p2p,ap,client

Might be some other useful bits already in there 😉

@spinza
Copy link
Contributor Author

spinza commented Feb 23, 2016

Excellent

@jammin84
Copy link
Contributor

jammin84 commented Mar 1, 2016

@spinza, can you provide more info on what kind of field your after from the api?

@spinza
Copy link
Contributor Author

spinza commented Mar 1, 2016

This is a nice to have.

Couple of things like:

  • Given an ip what is the node,location, etc.
  • Given a node who are the admins?
  • Given an admin what are their details? [If we have this it should be
    secured]
  • Given a node name what is the location?

Things of that nature. Returned as json or similar objects for easy usage
in other apps.

I have an app that runs and verifies that routers are running our standard
scripts etc on our network for example. If it finds problems it figures
out, by querying the wind db directly, which ip belongs to which node and
then who the relevant contacts are and then emails them.

I have another case for our monitoring solutions where I will be adding
many routers/devices for monitoring. The tool has the ability to map those
so will write something to update the locations from wind.

I can sneak directly into the db but it would be nice if that info can be
exposed.

On Tue, 1 Mar 2016 at 04:14 jammin84 [email protected] wrote:

@spinza https://github.com/spinza, can you provide more info on what
kind of field your after from the api?


Reply to this email directly or view it on GitHub
#61 (comment).

@ripkk
Copy link

ripkk commented Feb 8, 2017

@spinza, we could use something like SlimFramework for this?

@spinza
Copy link
Contributor Author

spinza commented Feb 12, 2017

I've got something up which is a simple flask-api based script just to allow API requests for IP locations. Not working 100% though.

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

No branches or pull requests

3 participants