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

Enhance data retrived through API call on /users/{username} #7197

Open
5 tasks
William-LP opened this issue Jun 13, 2019 · 6 comments
Open
5 tasks

Enhance data retrived through API call on /users/{username} #7197

William-LP opened this issue Jun 13, 2019 · 6 comments
Labels
modifies/api This PR adds API routes or modifies them type/enhancement An improvement of existing functionality

Comments

@William-LP
Copy link
Contributor

William-LP commented Jun 13, 2019

  • Gitea version 1.8.2
  • Git version: 2.16.1
  • Operating system: Windows Server 2012 R2
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • [ x ] SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • [ x ] Not relevant

Description

Today I had to delete all the users than never connected to the plateforme (and they were quite a lot).
I realized the API call on /users/{username} didn't provide the last-user-connection info.

What about giving the API the ability to provide the user's creation and last-connection date?

https://giteaSrv/api/v1/users/mylogin

{
  "id": 1,
  "login": "mylogin",
  "full_name": "My Full Name",
  "email": "[email protected]",
  "avatar_url": "https://secure.gravatar.com/avatar/myavatar?d=identicon",
  "language": "en-US",
  "is_admin": false,
  "username": "myusername",
  "creation_date": "YYYY-mm-dd HH:MM:SS",
  "last_connection_date": "YYYY-mm-dd HH:MM:SS"
}
@jolheiser
Copy link
Member

#7196 accomplishes last login

@zeripath
Copy link
Contributor

it also now includes created.

@lunny lunny added the type/enhancement An improvement of existing functionality label Jun 15, 2019
@William-LP
Copy link
Contributor Author

William-LP commented Jun 19, 2019

What about adding the source_id (authentication source) as well ?

@gary-kim
Copy link
Member

gary-kim commented Jul 9, 2019

What about adding the source_id (authentication source) as well ?

I'm working on another pull request at the moment but once that's done, I'll try this.

@stale
Copy link

stale bot commented Sep 7, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Sep 7, 2019
@lunny lunny added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Sep 15, 2019
@stale stale bot removed the issue/stale label Sep 15, 2019
@6543 6543 added the modifies/api This PR adds API routes or modifies them label Jun 23, 2021
@6543
Copy link
Member

6543 commented Jun 23, 2021

ref: https://try.gitea.io/api/swagger#/user/userGetCurrent

hat specific is missing?

@6543 6543 removed the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modifies/api This PR adds API routes or modifies them type/enhancement An improvement of existing functionality
Projects
None yet
Development

No branches or pull requests

6 participants