You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Endpoints GET /v5/projects/:projectId/members, GET /v5/projects/:projectId/members/:id, PATCH /v5/projects/:projectId/members/:id can return additional member details like 'photoURL', 'workingHourStart', 'workingHourEnd', 'timeZone', 'handle', 'email', 'firstName', 'lastName' if we explicitly list them in the fields query param. For example: https://api.topcoder-dev.com/v5/projects/17076/members/?fields=id%2CuserId%2Crole%2CisPrimary%2CdeletedAt%2CcreatedAt%2CupdatedAt%2CdeletedBy%2CcreatedBy%2CupdatedBy%2Chandle%2CphotoURL%2CworkingHourStart%2CworkingHourEnd%2CtimeZone%2Cemail
But the endpoint for creating new members POST /v5/projects/:projectId/members doesn't support returninig these additional fields. So if we want to get these additional details client-side, we would have to make 2 requests: create members and get member details.
We would like to update POST /v5/projects/:projectId/members to also support returning additional member details if they are explicitly listed in the fields query param.
Notes:
we already have a reusable method to implement this util.getObjectsWithMemberDetails and we only have to properly apply it here
if this method fails to get additional data, we still have to return a response without additional data
this method returns 'email', 'firstName', 'lastName' only to admins, which should work the same for this endpoint (nothing to do here as it works automatically, just FYI)
Task:
Update method to return members' details.
Update Postman if needed.
Verify that it works properly.
The text was updated successfully, but these errors were encountered:
Endpoints
GET /v5/projects/:projectId/members
,GET /v5/projects/:projectId/members/:id
,PATCH /v5/projects/:projectId/members/:id
can return additional member details like 'photoURL', 'workingHourStart', 'workingHourEnd', 'timeZone', 'handle', 'email', 'firstName', 'lastName' if we explicitly list them in thefields
query param. For example:https://api.topcoder-dev.com/v5/projects/17076/members/?fields=id%2CuserId%2Crole%2CisPrimary%2CdeletedAt%2CcreatedAt%2CupdatedAt%2CdeletedBy%2CcreatedBy%2CupdatedBy%2Chandle%2CphotoURL%2CworkingHourStart%2CworkingHourEnd%2CtimeZone%2Cemail
But the endpoint for creating new members
POST /v5/projects/:projectId/members
doesn't support returninig these additional fields. So if we want to get these additional details client-side, we would have to make 2 requests: create members and get member details.We would like to update
POST /v5/projects/:projectId/members
to also support returning additional member details if they are explicitly listed in thefields
query param.Notes:
util.getObjectsWithMemberDetails
and we only have to properly apply it hereTask:
The text was updated successfully, but these errors were encountered: