Blend Your Music Playlists

Blend Your Music Playlists · GPT-Aktionen

Spotify Playlist Shuffler

App for Spotify to create new playlists from existing playlists or selection of Spotify artists.

  • GET /playlistsGet user playlists

    Get all the playlists that the user has created.

  • POST /playlistCreate playlist from blend of existing playlists

    Create new playlist from the selection of users playlists.

  • POST /artistsCreate playlist from blend of artists

    Create new playlist from the list of provided artists.

Ursprüngliches API-Schema
{
  "openapi": "3.0.1",
  "info": {
    "title": "Spotify Playlist Shuffler",
    "description": "App for Spotify to create new playlists from existing playlists or selection of Spotify artists.",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://playlist-shuffler.vercel.app/"
    }
  ],
  "paths": {
    "/playlists": {
      "get": {
        "summary": "Get user playlists",
        "description": "Get all the playlists that the user has created.",
        "operationId": "getUserPlaylists",
        "responses": {
          "200": {
            "description": "Returned if the request is successful."
          },
          "401": {
            "description": "Returned if the user is unauthorized."
          }
        }
      }
    },
    "/playlist": {
      "post": {
        "summary": "Create playlist from blend of existing playlists",
        "description": "Create new playlist from the selection of users playlists.",
        "operationId": "createBlendOfPlaylists",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "length": {
                    "type": "integer",
                    "default": 20
                  },
                  "ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "name": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  }
                },
                "required": [
                  "ids",
                  "name",
                  "description"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returned if the request is successful."
          },
          "401": {
            "description": "Returned if the user is unauthorized."
          }
        }
      }
    },
    "/artists": {
      "post": {
        "summary": "Create playlist from blend of artists",
        "description": "Create new playlist from the list of provided artists.",
        "operationId": "createBlendOfArtists",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "length": {
                    "type": "integer",
                    "default": 20
                  },
                  "artists": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "name": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  }
                },
                "required": [
                  "artists",
                  "name",
                  "description"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returned if the request is successful."
          },
          "401": {
            "description": "Returned if the user is unauthorized."
          }
        }
      }
    }
  }
}