apostrophe icon indicating copy to clipboard operation
apostrophe copied to clipboard

Implemented API endpoint to return current users info

Open sombitganguly opened this issue 10 months ago • 3 comments

Implemented GET /api/v1/@apostrophecms/login/whoami route such that it returns the details of the current user.

sombitganguly avatar Feb 24 '25 16:02 sombitganguly

I haven't really checked out the code yet, but can you add two things to this PR:

  1. Update the CHANGELOG to reflect the changes being added - this should be added to the ## UNRELEASED section.
  2. Add tests to show correct functionality. Let me know if you need help with either of these and thanks again!

BoDonkey avatar Feb 24 '25 16:02 BoDonkey

Great stuff. Please run npx eslint . --fix to update the code style to match probably 100% of our guidelines without manual effort. Also please add it to the changelog.

I have added it to the changelog as well as added test cases as instructed.

sombitganguly avatar Feb 25 '25 18:02 sombitganguly

I have made all the requested changes, kindly review them. Thank you!

sombitganguly avatar Feb 25 '25 20:02 sombitganguly

@sombitganguly are you interested in finishing your tests so this can be merged?

boutell avatar Jun 19 '25 12:06 boutell

@sombitganguly are you interested in finishing your tests so this can be merged?

absolutely, and i apologize for my sudden disappearance i got busy with some stuff.

sombitganguly avatar Jun 19 '25 15:06 sombitganguly

No worries, looking forward to it!

boutell avatar Jun 20 '25 14:06 boutell