Get your profile or another user's roadmaps.
- userId: ID of the user to get roadmaps of. (optional - included in path)
None
- cookie: token=... (required if userId is not included in path)
{
"success": true,
"message": "Roadmaps found",
"data": [
{
"id": "string",
"name": "string",
"description": "string",
"topic": "string: programming, math, physics, biology",
"isFeatured": "boolean",
"isPublic": "boolean",
"isDraft": "boolean",
"createdAt": "string: date",
"updatedAt": "string: date",
"userId": "string",
"userAvatar": "string | null",
"userName": "string",
"likeCount": "number",
"viewCount": "number",
"isLiked": "boolean"
},
{ "Other Items": "..." }
],
"total": "number"
}
Example:
Code | Description |
---|---|
200 | Success |
404 | Not Found. |
500 | Internal Server Error. |
None