Closed atakanyasar closed 4 months ago
Users should be able to update their profile details including:
username
firstName
lastName
bio
gender
profilePicture
Request URL:
PUT /api/v1/users/[userId}
Requst Body:
{ "id": 2, "username": "test", "name": "Takoyaki Lover", "bio": "I love takoyaki!", "gender": "unknown", "profilePicture": "https://images.unsplash.com/photo-1633790450512-98e68a55ef15?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&dl=brunno-tozzo-GAIC2WHxm5A-unsplash.jpg&w=640", "diets": [ "keto" ] }
* Response:
{ "id": 1, "username": "takoyaki_lover", "name": "Takoyaki Lover", "bio": "I love takoyaki!", "followersCount": 100, "followingCount": 100, "gender": "unknown", "profilePicture": "https://images.unsplash.com/photo-1633790450512-98e68a55ef15?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&dl=brunno-tozzo-GAIC2WHxm5A-unsplash.jpg&w=640", "diets": [ "keto" ], "selfFollowing": true, "recipeCount": 10, "bookmarks": [ { "id": 1, "name": "My Takoyaki Recipe", "description": "A delicious takoyaki recipe that I learned from my grandmother.", "cookTime": 30, "images": [ "http://commons.wikimedia.org/wiki/Special:FilePath/Takoyaki%20by%20yomi955.jpg" ], "rating": 4.5, "dish": { "id": "http://www.wikidata.org/entity/Q905527", "name": "takoyaki" } } ], "recipes": [ { "id": 1, "name": "My Takoyaki Recipe", "description": "A delicious takoyaki recipe that I learned from my grandmother.", "cookTime": 30, "images": [ "http://commons.wikimedia.org/wiki/Special:FilePath/Takoyaki%20by%20yomi955.jpg" ], "rating": 4.5, "dish": { "id": "http://www.wikidata.org/entity/Q905527", "name": "takoyaki" } } ] }
{ "status": 204, "message": "User not found" }
📌 Feature request
📝 Description
Users should be able to update their profile details including:
username
firstName
lastName
bio
gender
profilePicture
Request URL:
Requst Body:
{ "id": 1, "username": "takoyaki_lover", "name": "Takoyaki Lover", "bio": "I love takoyaki!", "followersCount": 100, "followingCount": 100, "gender": "unknown", "profilePicture": "https://images.unsplash.com/photo-1633790450512-98e68a55ef15?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&dl=brunno-tozzo-GAIC2WHxm5A-unsplash.jpg&w=640", "diets": [ "keto" ], "selfFollowing": true, "recipeCount": 10, "bookmarks": [ { "id": 1, "name": "My Takoyaki Recipe", "description": "A delicious takoyaki recipe that I learned from my grandmother.", "cookTime": 30, "images": [ "http://commons.wikimedia.org/wiki/Special:FilePath/Takoyaki%20by%20yomi955.jpg" ], "rating": 4.5, "dish": { "id": "http://www.wikidata.org/entity/Q905527", "name": "takoyaki" } } ], "recipes": [ { "id": 1, "name": "My Takoyaki Recipe", "description": "A delicious takoyaki recipe that I learned from my grandmother.", "cookTime": 30, "images": [ "http://commons.wikimedia.org/wiki/Special:FilePath/Takoyaki%20by%20yomi955.jpg" ], "rating": 4.5, "dish": { "id": "http://www.wikidata.org/entity/Q905527", "name": "takoyaki" } } ] }
{ "status": 204, "message": "User not found" }