Closed
Description
Create a new endpoint GET /taas-teams/me
which would return details about the logged-in user form V5.
- Any logged-in user should be able to call this endpoint (same like any user can get skills)
- This endpoint should internally call endpoint
GET {TC_API}/users?externalProfile.organizationId={config.ORG_ID}&externalProfile.externalId={currentUser.userId}
- use U-Bahn M2M token to call it
- We should be able to optionally pass a query param
enrich=true
likeGET /taas-teams/me?enrich=true
, which should be passed to the u-bahn endpoint - Instead of array
GET /taas-teams/me
endpoint should return one object of the user if it's found - If the user is not found (i. e. response of u-bahn endpoint is an empty array), then return error 404
- Update Swagger
- Update Postman
Update
Removed support for enrich
param as per #170