Skip to content

Profile - Preferences Page #120

@Pallavi-Khabale

Description

@Pallavi-Khabale

Implement Profile - Preferences Page feature
Reference Link: saayam-for-all/ba#52

  1. Retrieve User Information
    Provide a REST API endpoint to fetch user information.
    Input: userId (received when the user clicks on a specific user ID).
    The backend will:
    Query the database using the provided userId.
    Retrieve user details.
    Output: Return user information in JSON format required to populate the UI page.

  2. Edit User Information
    When a user clicks Edit on the page:
    UI sends a request to the backend.
    Provide a PUT API endpoint to update user information.
    Backend will:
    Validate the request.
    Update the relevant records in the database.
    Return success or error response.

Testing Requirements

  1. Unit Testing
    Write unit test cases for:
    REST API endpoints
    Service layer logic
    Database interaction logic

  2. API Testing Using cURL
    Test APIs using cURL commands from the CLI.
    Include test cases for:
    Fetch user data API
    Update user data API
    Authentication using JWT token

Metadata

Metadata

Labels

enhancementNew feature or request
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions