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

BE API Endpoint 2 #3

Open
hwryan12 opened this issue Apr 11, 2023 · 0 comments
Open

BE API Endpoint 2 #3

hwryan12 opened this issue Apr 11, 2023 · 0 comments
Assignees

Comments

@hwryan12
Copy link
Collaborator

hwryan12 commented Apr 11, 2023

POST /chordsapi/v1/themes/#{theme_id}/characters/#{character.id}/playlists?genre=hip-hop

this end point should return a playlist with a list of 10 songs in the following format (and add that playlist as a playlist object to the DB- in incremental order)

{
  "links": {
   " image": "http://example.com/vaderpic"
  },
  "data": [{
    "type": "character",
    "id": "1",
    "attributes": {
      "name": "Darth Vader",
      "quiz": "Star Wars",
      "alignment": "Neutral Evil"
    },

   {
    "type": "playlist",
     "attributes":{
       "id": "1"                             
       "titles": "["Song1", "Song2", "Song3", "Song4"]"
       }
   }]
}

@hwryan12 hwryan12 converted this from a draft issue Apr 11, 2023
@hadyematar23 hadyematar23 moved this from Todo to In Progress in CharacterChords Project Board Apr 12, 2023
@hadyematar23 hadyematar23 moved this from In Progress to Todo in CharacterChords Project Board Apr 13, 2023
@hadyematar23 hadyematar23 moved this from Todo to Done in CharacterChords Project Board Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants