YanniAlshoufiHTL / NiiC

A modular calendar for features beyond iCal.
MIT License
1 stars 0 forks source link

Account Deletion and Log Out #46

Closed YanniAlshoufiHTL closed 5 months ago

YanniAlshoufiHTL commented 5 months ago

Allow user to delete their account and to log out.

Data structure

Endpoints

Add endpoints for creating (registering), deleting and editing users. Add two further ones for logging in and out. These should be:

For adding, this should return the id if adding was successful.

POST /users

{
    "email": string,
    "name": string,
    "password": string
}

For editing:

PUT /users/:id

{
    "email": string,
    "name": string,
    "password": string
}

For deleting: DELETE /users/:id

For logging out: PUT /users/logout/:id

For logging in:

POST /users/login

{
    "email": string,
    "name": string,
    "password": string,
}
lalaibo commented 5 months ago

yay