documentation.py 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # the general syntax is
  2. # {attribute1: value, attribute2: value, ...}
  3. #
  4. # for example a valid request to /register would look like
  5. # {"email": "user123@example.org", "username": "user123", "password": "FILTERED", "preferred_language": "german"}
  6. # while a valid request to /events would be the empty object {}
  7. cache_translation_required_attributes = ['original_language_iso', 'original_text', 'target_language_iso']
  8. cache_translation_possible_attributes = ['original_language_iso', 'original_text', 'target_language_iso', 'translated_text']
  9. cities_required_attributes = []
  10. cities_possible_attributes = []
  11. confirm_translation_required_attributes = ['session_id', 'translation_id']
  12. confirm_translation_possible_attributes = ['session_id', 'translation_id']
  13. create_location_required_attributes = ['city', 'house_number', 'phone_number', 'street', 'zip_code']
  14. create_location_possible_attributes = ['city', 'house_number', 'name', 'phone_number', 'room_number', 'street', 'zip_code']
  15. create_organization_required_attributes = ['location_id', 'name']
  16. create_organization_possible_attributes = ['location_id', 'name']
  17. create_person_required_attributes = ['email', 'first_name', 'location_id', 'name']
  18. create_person_possible_attributes = ['email', 'first_name', 'location_id', 'name', 'preferred_language_id']
  19. edit_translation_required_attributes = ['new_text', 'session_id', 'translation_id']
  20. edit_translation_possible_attributes = ['new_text', 'session_id', 'translation_id']
  21. languages_required_attributes = []
  22. languages_possible_attributes = []
  23. location_info_required_attributes = ['location_id', 'session_id']
  24. location_info_possible_attributes = ['location_id', 'session_id']
  25. login_required_attributes = ['email', 'password']
  26. login_possible_attributes = ['email', 'password']
  27. logout_required_attributes = ['session_id']
  28. logout_possible_attributes = ['session_id']
  29. organization_name_exists_required_attributes = ['name']
  30. organization_name_exists_possible_attributes = ['name']
  31. promote_required_attributes = ['promoted_user_id', 'role', 'session_id']
  32. promote_possible_attributes = ['promoted_user_id', 'role', 'session_id']
  33. register_required_attributes = ['password', 'person_id']
  34. register_possible_attributes = ['password', 'person_id']
  35. translations_required_attributes = []
  36. translations_possible_attributes = ['confirmed']
  37. update_location_required_attributes = ['location_id', 'session_id']
  38. update_location_possible_attributes = ['additional_information', 'city', 'house_number', 'location_id', 'name', 'person_id', 'phone_number', 'room_number', 'session_id', 'street', 'zip_code']
  39. update_organization_required_attributes = ['name', 'organization_id', 'session_id']
  40. update_organization_possible_attributes = ['name', 'organization_id', 'person_id', 'session_id']
  41. update_person_required_attributes = ['person_id', 'session_id']
  42. update_person_possible_attributes = ['first_name', 'name', 'new_email', 'new_organization_id', 'new_preferred_language_id', 'person_id', 'session_id']
  43. update_user_required_attributes = ['new_password', 'session_id', 'user_id']
  44. update_user_possible_attributes = ['new_password', 'session_id', 'user_id']
  45. user_info_required_attributes = ['user_id']
  46. user_info_possible_attributes = ['user_id']
  47. users_required_attributes = ['session_id']
  48. users_possible_attributes = ['session_id']