LetsMesh / Site

Repository for the Website named Let's Mesh
https://letsmesh.vercel.app
6 stars 2 forks source link

Implement Profile Picture: HTTP Post Call Handling #284

Closed JRSiwiecki closed 1 year ago

JRSiwiecki commented 1 year ago

Resolves #7

FEATURES:

ProfilePicturesView:

ENDPOINTS:

POST /profile-pictures/

PATCH /profile-pictures/

DELETE /profile-pictures/

Note: Most migrations files can be ignored, the only change is the date they were created, except for the migrations for profile, which needed to be re-made to update existing tables.

tdang2180 commented 1 year ago

Hi @JRSiwiecki, I wasn't requested to review this PR, but I'm doing a similar task and I am confused about how the profile is set up. I looked at your code and noticed that you have code to check whether a profile exists in your POST method, but how would a profile exist if there is no method to create a profile in the first place?

I feel like there should be a task for implementing a POST method that creates a profile with all the fields and tasks like these to patch/change the individual fields. I don't know if this makes sense but I am confused because I don't see any task (HTTP post call handling) for creating a profile.