0x213F / jukebox-radio-django

Part Jukebox. Part Radio.
Other
1 stars 0 forks source link

User profile page #14

Open 0x213F opened 3 years ago

0x213F commented 3 years ago

Summary

Each user must have a profile page, just like any social network.

Implementation

Step by step guide on implementation approach.

Preliminary groundwork

It would be nice if this were completed first: https://github.com/0x213F/jukebox-radio-django/issues/13

Functional groundwork

Schema

New model UserProfile. That model should have fields:

The model should be tracked using pghistory.

New API endpoints

User GET profile API endpoint should allow getting the user's profile information. A user's profile may be public or private, and the API endpoint should allow access accordingly.

User POST update profile should allow updating a user's profile. A user may only update their profile when properly authenticated.

GET API endpoint which lists all sessions belonging to a user. The user is queried by the request parameter username. If no user is found, nothing is returned.

Functional implementation

The rest of the implementation needs to happen on the front-end. More on that in a JR React issue: https://github.com/0x213F/jukebox-radio-react/issues/6

0x213F commented 3 years ago

@op1346 do not worry about #13