hngprojects / hng_boilerplate_python_fastapi_web

Apache License 2.0
154 stars 136 forks source link

fix: Fixed user profile information retrieval #890

Closed johnson-oragui closed 1 month ago

johnson-oragui commented 1 month ago

This fix directly fixed the bug where a user profile is not returned when accessed. It correctly changes the endpoint from /profile/current_user to /profile/{user_d}, fixed the functionality for a user profile to be created on sign up. ​

Description

This fix directly fixed the bug where a user profile is not returned when accessed. It correctly changes the endpoint from /profile/current_user to /profile/{user_d}, fixed the functionality for a user profile to be created on sign up.

Related Issue (Link to issue ticket)

Motivation and Context

This fix directly fixed the bug where a user profile is not returned when accessed. It correctly changes the endpoint from /profile/current_user to /profile/{user_d}, fixed the functionality for a user profile to be created on sign up.

How Has This Been Tested?

This has been tested with pytest and postman.

Screenshots (if appropriate - Postman, etc):

user created successfully with profile profile user created

user profile retrieved successfully​ profile retrieved success

user profile regions retrieved successfully profile regions now created and associated with user

Types of changes

Checklist:

johnson-oragui commented 1 month ago

@trevorjob

Kindly review.