La version 5 de Planète Casio. Regroupe le forum, les programmes, les tutoriel, les sprites et tous les autres outils développés par nos soins.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

users.txt 2.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # User management
  2. User information:
  3. Name Unique, no space, at least one letter
  4. Avatar Stored in a server folder. Size limit?
  5. Password Hashed, of course
  6. Email Mail address, used to send newsletters
  7. Points Participation measure (mainly number of posts)
  8. Innovation points A different kind of participation measure
  9. Biography Description of the user
  10. Signature Short signature added at the end of every post
  11. Birthday Birthday date
  12. Newsletter Subscription to newsletter
  13. Settings...
  14. Relations:
  15. Notifications 1 to many
  16. Groups 1 to many
  17. Sent PMs 1 to many
  18. Received PMs 1 to many
  19. Trophies/Titles 1 to many
  20. All posts many to many (tutorials can have several authors)
  21. Privileges many to many
  22. Rest API for users:
  23. Requests where "Search" is set to "Yes" accept search patterns. The syntax
  24. needs to be chosen, it could be something like "/users[name~=/*storm*/i]".
  25. Method URL Search Description
  26. -----------------------------------------------------------------------------
  27. GET /users Yes Query users
  28. -----------------------------------------------------------------------------
  29. GET /users/<id> - Get user information/settings
  30. PATCH /users/<id> - Update user information/settings
  31. -----------------------------------------------------------------------------
  32. GET /users/<id>/trophies - Get unlocked trophies
  33. -----------------------------------------------------------------------------
  34. GET /users/<id>/messages Yes Query private messages
  35. POST /users/<id>/messages - Send PM (<id> is sender)
  36. DELETE /users/<id>/messages Required Delete PMs matching pattern
  37. -----------------------------------------------------------------------------
  38. GET /users/<id>/groups - Get user groups
  39. -----------------------------------------------------------------------------
  40. GET /users/<id>/privs - Get user privileges
  41. -----------------------------------------------------------------------------
  42. Updating the participation scores is not a request, it's tied to posting
  43. contents, so it has nothing to do in the API.
  44. (*) Not sure if this is relevant, since these are administrator duties.
  45. Rest API for groups:
  46. Method URL Search Description
  47. -----------------------------------------------------------------------------
  48. GET /groups - Get list of groups
  49. GET /groups/<id> - Get list of users in groups
  50. -----------------------------------------------------------------------------
  51. There are no methods to change the privileges associated to each groups
  52. because this task is clearly for administrators, not API users.