Skip to content

Added profiles to the results of search #553

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

Merged
merged 1 commit into from
Dec 15, 2024
Merged

Conversation

burkaykinik
Copy link
Contributor

closes #552

An example query and response is following:
GET /search/?search=duman

{
    "content_results_count": 1,
    "profile_results_count": 1,
    "page": 1,
    "page_size": 10,
    "contents": [
        {
            "id": 2,
            "link": "https://open.spotify.com/track/5iHZGWJIDGPjnQEXpLnI3n",
            "content_type": "track",
            "artist_names": [
                "Duman"
            ],
            "playlist_name": "",
            "album_name": "Darmaduman",
            "song_name": "Sınana Sınana",
            "genres": [
                "Alternative Rock",
                "Indie Rock",
                "Grunge"
            ],
            "ai_description": "Sınana Sınana is a song by the Turkish rock band Duman from their album Darmaduman. Known for their alternative rock sound with poetic lyrics, Duman has been a prominent figure in the Turkish music scene since the early 2000s. Sınana Sınana showcases their signature blend of grunge and indie rock elements, with powerful vocals and raw instrumentation. The song's energetic and rebellious spirit resonated with a generation of Turkish youth, making it a standout track in Duman's discography.",
            "lyrics": null
        }
    ],
    "profiles": [
        {
            "id": 3,
            "user_id": 3,
            "name": "dumdum",
            "surname": "dumanf",
            "labels": "['Artist', 'Listener']"
        }
    ]
}

@burkaykinik burkaykinik added the enhancement New feature or request label Dec 15, 2024
@burkaykinik burkaykinik added this to the Milestone 3 milestone Dec 15, 2024
@burkaykinik burkaykinik self-assigned this Dec 15, 2024
@batuhansolmaz batuhansolmaz merged commit 2eb3e43 into main Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Add search functionality for users
2 participants