Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Questions and Answers for UserProfile #599

Conversation

EnesBaserr
Copy link
Contributor

Related Issue

Closes #598

🧪 Included Tests

{
    "status": 200,
    "message": "User retrieved successfully",
    "data": {
        "id": 1,
        "firstName": "atakan",
        "lastName": "atli",
        "username": "enes",
        "email": "[email protected]",
        "bio": "",
        "country": "USA",
        "answerCount": 4,
        "followersCount": 1,
        "followingCount": 0,
        "reputationPoints": 0,
        "questionCount": 5,
        "experienceLevel": "BEGINNER",
        "questions": [
            {
                "id": 1,
                "title": "Java Serializer 2 ",
                "content": "What is this explain me please ?  2",
                "difficulty": null,
                "upvoteCount": 0,
                "downvoteCount": 0,
                "answerCount": 3,
                "createdAt": "2024-12-05 00:17:47",
                "author": {
                    "id": 1,
                    "username": "enes",
                    "reputationPoints": 0,
                    "profilePicture": null,
                    "name": "atakan atli"
                },
                "tags": [
                    {
                        "id": 107,
                        "name": "Elixir"
                    },
                    {
                        "id": 339,
                        "name": "Pywikibot"
                    },
                    {
                        "id": 60,
                        "name": "Object REXX"
                    }
                ]
            },
            {
                "id": 2,
                "title": "Java Serializer 2 ",
                "content": "What is this explain me please ?  2",
                "difficulty": null,
                "upvoteCount": 0,
                "downvoteCount": 0,
                "answerCount": 1,
                "createdAt": "2024-12-05 00:17:49",
                "author": {
                    "id": 1,
                    "username": "enes",
                    "reputationPoints": 0,
                    "profilePicture": null,
                    "name": "atakan atli"
                },
                "tags": [
                    {
                        "id": 107,
                        "name": "Elixir"
                    },
                    {
                        "id": 339,
                        "name": "Pywikibot"
                    },
                    {
                        "id": 60,
                        "name": "Object REXX"
                    }
                ]
            },
            {
                "id": 3,
                "title": "Java Serializer 2 ",
                "content": "What is this explain me please ?  2",
                "difficulty": null,
                "upvoteCount": 0,
                "downvoteCount": 0,
                "answerCount": 0,
                "createdAt": "2024-12-05 00:17:50",
                "author": {
                    "id": 1,
                    "username": "enes",
                    "reputationPoints": 0,
                    "profilePicture": null,
                    "name": "atakan atli"
                },
                "tags": [
                    {
                        "id": 107,
                        "name": "Elixir"
                    },
                    {
                        "id": 339,
                        "name": "Pywikibot"
                    },
                    {
                        "id": 60,
                        "name": "Object REXX"
                    }
                ]
            },
            {
                "id": 4,
                "title": "Java Serializer 2 ",
                "content": "What is this explain me please ?  2",
                "difficulty": null,
                "upvoteCount": 0,
                "downvoteCount": 0,
                "answerCount": 0,
                "createdAt": "2024-12-05 00:17:50",
                "author": {
                    "id": 1,
                    "username": "enes",
                    "reputationPoints": 0,
                    "profilePicture": null,
                    "name": "atakan atli"
                },
                "tags": [
                    {
                        "id": 107,
                        "name": "Elixir"
                    },
                    {
                        "id": 339,
                        "name": "Pywikibot"
                    },
                    {
                        "id": 60,
                        "name": "Object REXX"
                    }
                ]
            },
            {
                "id": 5,
                "title": "Java Serializer 2 ",
                "content": "What is this explain me please ?  2",
                "difficulty": null,
                "upvoteCount": 0,
                "downvoteCount": 0,
                "answerCount": 0,
                "createdAt": "2024-12-05 00:17:51",
                "author": {
                    "id": 1,
                    "username": "enes",
                    "reputationPoints": 0,
                    "profilePicture": null,
                    "name": "atakan atli"
                },
                "tags": [
                    {
                        "id": 107,
                        "name": "Elixir"
                    },
                    {
                        "id": 339,
                        "name": "Pywikibot"
                    },
                    {
                        "id": 60,
                        "name": "Object REXX"
                    }
                ]
            }
        ],
        "answers": [
            {
                "id": 1,
                "content": "2222 Serialization is the conversion of the state of an object into a byte stream; deserialization does the opposite. Stated differently, serialization is the conversion of a Java object into a static stream (sequence) of bytes, which we can then save to a database or transfer over a network   ",
                "author": {
                    "id": 1,
                    "username": "enes",
                    "reputationPoints": 0,
                    "profilePicture": null,
                    "name": "atakan atli"
                },
                "createdAt": "2024-12-05 00:17:55",
                "updatedAt": "2024-12-05 00:17:55",
                "upvoteCount": 0,
                "downvoteCount": 0,
                "selfAnswer": true,
                "selfVoted": 0,
                "question": {
                    "id": 1,
                    "title": "Java Serializer 2 "
                }
            },
            {
                "id": 2,
                "content": "2222 Serialization is the conversion of the state of an object into a byte stream; deserialization does the opposite. Stated differently, serialization is the conversion of a Java object into a static stream (sequence) of bytes, which we can then save to a database or transfer over a network   ",
                "author": {
                    "id": 1,
                    "username": "enes",
                    "reputationPoints": 0,
                    "profilePicture": null,
                    "name": "atakan atli"
                },
                "createdAt": "2024-12-05 00:17:55",
                "updatedAt": "2024-12-05 00:17:55",
                "upvoteCount": 0,
                "downvoteCount": 0,
                "selfAnswer": true,
                "selfVoted": 0,
                "question": {
                    "id": 1,
                    "title": "Java Serializer 2 "
                }
            },
            {
                "id": 3,
                "content": "2222 Serialization is the conversion of the state of an object into a byte stream; deserialization does the opposite. Stated differently, serialization is the conversion of a Java object into a static stream (sequence) of bytes, which we can then save to a database or transfer over a network   ",
                "author": {
                    "id": 1,
                    "username": "enes",
                    "reputationPoints": 0,
                    "profilePicture": null,
                    "name": "atakan atli"
                },
                "createdAt": "2024-12-05 00:17:56",
                "updatedAt": "2024-12-05 00:17:56",
                "upvoteCount": 0,
                "downvoteCount": 0,
                "selfAnswer": true,
                "selfVoted": 0,
                "question": {
                    "id": 1,
                    "title": "Java Serializer 2 "
                }
            },
            {
                "id": 4,
                "content": "2222 Serialization is the conversion of the state of an object into a byte stream; deserialization does the opposite. Stated differently, serialization is the conversion of a Java object into a static stream (sequence) of bytes, which we can then save to a database or transfer over a network   ",
                "author": {
                    "id": 1,
                    "username": "enes",
                    "reputationPoints": 0,
                    "profilePicture": null,
                    "name": "atakan atli"
                },
                "createdAt": "2024-12-05 00:18:01",
                "updatedAt": "2024-12-05 00:18:01",
                "upvoteCount": 0,
                "downvoteCount": 0,
                "selfAnswer": true,
                "selfVoted": 0,
                "question": {
                    "id": 2,
                    "title": "Java Serializer 2 "
                }
            }
        ]
    },
    "error": null
}

@EnesBaserr EnesBaserr requested a review from mmtftr December 4, 2024 21:24
@EnesBaserr EnesBaserr linked an issue Dec 4, 2024 that may be closed by this pull request
1 task
@EnesBaserr EnesBaserr merged commit d55df31 into develop Dec 4, 2024
1 check passed
@EnesBaserr EnesBaserr deleted the backend/feature/598-backend-retrieve-questions-and-answers-in-user-profile branch December 4, 2024 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(Backend) Retrieve questions and answers in user profile
2 participants