Add API endpoint to view details of the provided token
Recently there has been added a new endpoint to delete a token provided in the header of the request https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/api/personal_access_tokens/self_revocation.rb
Similarly, add GET /personal_access_token/self
to view provided token details. It's particularly useful in ~"group::import" which can be used in GitLab Migration feature, where we need to check and see provided token scopes. Such endpoint allows us to bounce off some of the import attempts early, without failing mid migration (if provided token doesn't have sufficient scope).
Edited by George Koltsov