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

Expose users via API #140

Open
fracek opened this issue Jun 6, 2013 · 5 comments
Open

Expose users via API #140

fracek opened this issue Jun 6, 2013 · 5 comments

Comments

@fracek
Copy link

fracek commented Jun 6, 2013

Expose the list of existing users at the /api/users endpoint.

It should return a json like this:

{
  "users": [
    {
      "username": "Tizio",
      "ctime": "1370468376",
      "karma": 100,
      "about": "baobab"
    },
    {
      "username": "Caio",
      "ctime": "1370468376",
      "karma": 100,
      "about": "bho"
    },
  ],
  "status": "ok",
  "count": 2
}

What do you think?

@fcambus
Copy link
Collaborator

fcambus commented Jun 20, 2013

This could be nice for generating statistics, is that the use case you have in mind?

I fear this could be abused though, so maybe if the feature is accepted, it should be restricted to only allow admins to access it? In this case, it could also be nice to include the number of news and comments posted for each user.

@fracek
Copy link
Author

fracek commented Jun 20, 2013

This could be nice for generating statistics, is that the use case you have in mind?

My idea (born on http://www.hackingitalia.com/ ) was to generate a map of the users. Each user puts a code (antirez idea was to add something like geo:72.2,83.3 ) in the about field, then we parse it and generate the map.

I fear this could be abused though, so maybe if the feature is accepted, it should be restricted to only allow admins to access it?

I did include only informations that are already public for this reason.

@fcambus
Copy link
Collaborator

fcambus commented Jun 26, 2013

So, I think this should be implemented, as there is already two use case for this :

  • Generating map of users for Hacking Italia
  • General purpose statistics (and for this purpose, we should also add the number of news and comments posted for each user)

In any case, we can add config file options to enable / disable the feature, and make it public / restrict it to admins only.

@mulderp
Copy link
Contributor

mulderp commented Aug 10, 2013

  • 1

Additionally, an admin UI for sorting users on email, karma, etc. might be nice. This could maybe done with Backbone.js similarly to https://github.com/documentcloud/documentcloud/blob/master/public/javascripts/model/accounts.js

@lplume
Copy link

lplume commented Jan 19, 2015

also, would be nice in client application
[edit]
along with /user/:username
[/edit]

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

No branches or pull requests

4 participants