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

Upgrade the User & Group APIs to Version 2 #2709

Open
dushimsam opened this issue Apr 3, 2024 · 1 comment
Open

Upgrade the User & Group APIs to Version 2 #2709

dushimsam opened this issue Apr 3, 2024 · 1 comment

Comments

@dushimsam
Copy link
Contributor

dushimsam commented Apr 3, 2024

Upgrade the /users & /groups APIs to Version 2

In accordance with our new policy documented here, we want to enhance our REST APIs to Version 2 migrating all /users APIs. The setup for the Version 2 is already in place.

1. /users, POST

Screenshot 2024-04-03 at 05 43 58
  • Change these fields to camelCase: copyright_email_author, user_pass

2. /users & /users/{id}, GET

Screenshot 2024-04-03 at 05 46 23
  • Change these fields to camelCase: copyright_email_author

3. /users/{id}, PUT

Screenshot 2024-04-03 at 05 43 58
  • Change these fields to camelCase: copyright_email_author, user_pass

4. /users/self, GET

Screenshot 2024-04-03 at 05 51 49
  • Change these fields to camelCase: copyright_email_author, default_group

5. /users/tokens, POST

Screenshot 2024-04-03 at 05 57 04
  • Change these fields in requestBody to camelCase: token_name, token_scope, token_expire

6. /users/tokens/{type}, GET

Screenshot 2024-04-03 at 05 58 58
  • Change these fields to camelCase: active_tokens, token_name, token_expire

7. /groups, POST

Screenshot 2024-04-03 at 06 22 02
  • Move name from the headers to query parameters.

8. /groups/{id}/members, GET

Screenshot 2024-04-03 at 06 26 13
  • Change these fields to camelCase: copyright_email_author, group_perm

Cc: @GMishx @shaheemazmalmmd

@dvjsharma
Copy link
Contributor

I'll look into this

@dushimsam dushimsam changed the title Upgrade the User APIs to Version 2 Upgrade the User & Group APIs to Version 2 Apr 3, 2024
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

2 participants