anand-harsh / Edumi

Edumi, Place to learn and grow skills with proper maintenance
https://edumi.vercel.app/
9 stars 29 forks source link

[Feature]: API Endpoint to Update User Details #117

Closed JavidSumra closed 4 months ago

JavidSumra commented 4 months ago

Guidelines

Description

API Endpoint: /api/user/details/update

Description: This endpoint allows clients to update user details, including name, email, organization, contact number, address, office address, and social media profiles.

Problem

There is No API Endpoint to Handle This Request

Proposed Solution

1. Update User Details

2. Request Body Schema:

{
    "type": "object",
    "properties": {
        "name": { "type": "string" },
        "email": { "type": "string" },
        "organization": { "type": "string" },
        "contactNumber": { "type": "string" },
        "address": { "type": "string" },
        "officeAddress": { "type": "string" },
        "social": {
            "type": "object",
            "properties": {
                "linkedin": { "type": "string" },
                "github": { "type": "string" },
                "twitter": { "type": "string" },
                "instagram": { "type": "string" }
            }
        }
    },
    "required": ["name", "email", "contactNumber", "address"]
}

3. Authentication and Authorization:

4. Validation:

Alternatives Considered

I Think There is no Alrenatives

JavidSumra commented 4 months ago

Hey @anand-harsh Sir I Would Like to Work on this Issue Under JWOC 2024