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
Admins should be able to list users who signed a particular Terms Of User. Additionally admins should be able to sign or unsign Terms for other users.
I suggest adding a new endpoint/terms/:termsOfUseId/users with GET/POST/DELETE commands.
List - GET /terms/:termsOfUseId/users
This endpoint should return a list of users who signed Terms specified by termsOfUseId.
As there might be a lot of users who signed one Terms, this endpoint should support pagination: page / perPage query params.
Additionally, it might be good to have filters by:
userId - so we can quickly check if a particular user has signed the Terms. Also, it might be great, if we can support filtering by multiple users by providing a comma-separated list of users like GET /terms/:termsOfUseId/users?userId=111111,222222,333333,444444.
2 query params signedAtFrom and signedAtTo to filter by the date when terms was signed. We can define one of these params or both of them. (UserTermsOfUseXref model has field created which could be used for this filter).
Sign - POST /terms/:termsOfUseId/users/
Should accept body in JSON format like:
{"userId": 123456// the id of user who should sign the Terms}
We need this feature to manage Terms in Admin App see topcoder-platform/admin-app#153.
Overview
Admins should be able to list users who signed a particular Terms Of User. Additionally admins should be able to
sign
orunsign
Terms for other users.I suggest adding a new endpoint
/terms/:termsOfUseId/users
withGET/POST/DELETE
commands.List -
GET /terms/:termsOfUseId/users
This endpoint should return a list of users who signed Terms specified by
termsOfUseId
.page
/perPage
query params.userId
- so we can quickly check if a particular user has signed the Terms. Also, it might be great, if we can support filtering by multiple users by providing a comma-separated list of users likeGET /terms/:termsOfUseId/users?userId=111111,222222,333333,444444
.signedAtFrom
andsignedAtTo
to filter by the date when terms was signed. We can define one of these params or both of them. (UserTermsOfUseXref model has fieldcreated
which could be used for this filter).Sign -
POST /terms/:termsOfUseId/users/
Should accept
body
in JSON format like:Unsign -
DELETE /terms/:termsOfUseId/users/:userId
Should unsign the terms
termsOfUseId
for user specified byuserId
The text was updated successfully, but these errors were encountered: