[Jitera] Untitled
Created by: akuita
This pull request is created by JITERA
Description
[API] Edit User Profile
| file | name |
|---|---|
| /config/locales/controller.en.yml | Add error message keys for user profile update |
| /config/locales/validation.en.yml | Add validation messages for profile picture and bio |
| /app/models/profile.rb | Add validations for profile picture and bio |
| /config/routes.rb | Define route for user profile update |
| /app/controllers/api/base_controller.rb | Add custom exception handling method for user profile update |
| /app/controllers/api/users_registrations_controller.rb | Implement user profile update logic |
| /app/controllers/api/base_controller.rb | Add method to render success response for profile update |
[API] Set Up User Profile
| file | name |
|---|---|
| /config/locales/controller.en.yml | Add error messages for invalid file type and bio length |
| /app/controllers/api/base_controller.rb | Add custom exception handling methods for invalid file type and bio length |
| /app/controllers/api/users_registrations_controller.rb | Implement profile setup in UsersRegistrationsController |
| /app/models/profile.rb | Add file path storage for profile_picture in Profile model |
| /app/services/base_service.rb | Create a ProfilePictureUploader service |
[API] Verify User Email
| file | name |
|---|---|
| /config/locales/app.en.yml | Add success and error message keys for email verification |
| /app/models/user.rb | Add 'is_active' field to User model |
| /db/migrate/ | Create migration to add 'is_active' field to users table |
| /config/routes.rb | Add route for email verification |
| /app/controllers/api/users_verify_confirmation_token_controller.rb | Implement email verification logic |
| /app/controllers/api/base_controller.rb | Add custom exception handling for email verification |
[API] Register New User Account
| file | name |
|---|---|
| /config/locales/app.en.yml | Add custom error message for unique username validation |
| /app/models/user.rb | Add username validations to User model |
| /app/models/email_verification.rb | Add method to generate verification token in EmailVerification model |
| /app/mailers/devise/mailer/confirmation_instructions.html.slim | Create email template for user verification |
| /config/routes.rb | Add route for user registration |
| /app/views/api/users_registrations/create.json.jbuilder | Define JSON response structure for successful user registration |
| /app/controllers/api/users_registrations_controller.rb | Implement user registration logic in UsersRegistrationsController |