{"info":{"_postman_id":"833d64a3-3f1c-48d8-b612-297588781ee5","name":"playlist-generator api","description":"<html><head></head><body><h5 id=\"base-url\">Base URL:</h5>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">http://127.0.0.1:8000\n\n</code></pre>\n<hr>\n<h4 id=\"1-get-playlist\"><strong>1. Get Playlist</strong></h4>\n<ul>\n<li><p><strong>Endpoint:</strong> <code>/api/playlist</code></p>\n</li>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>Description:</strong> Retrieves a playlist based on the provided genre.</p>\n</li>\n</ul>\n<p><strong>Request:</strong></p>\n<ul>\n<li><p><strong>Query Parameter:</strong></p>\n<ul>\n<li><code>genre</code> (string, required): The music genre for the playlist (e.g., \"Jazz\").</li>\n</ul>\n</li>\n<li><p><strong>Headers:</strong></p>\n<ul>\n<li><code>Content-Type: application/json</code></li>\n</ul>\n</li>\n</ul>\n<p><strong>Example Request:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">GET http://127.0.0.1:8000/api/playlist?genre=Jazz\n\n</code></pre>\n<p><strong>Response:</strong></p>\n<ul>\n<li><strong>Status 200:</strong></li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"playlist\": [\n    {\"title\": \"Fall\", \"artist\": \"Davido\"},\n    {\"title\": \"Soco\", \"artist\": \"Wizkid\"},\n    {\"title\": \"Pana\", \"artist\": \"Terry G\"},\n    {\"title\": \"Lady\", \"artist\": \"Mr. Eazi\"},\n    {\"title\": \"Yeba\", \"artist\": \"Kizz Daniel\"}\n  ]\n}\n\n</code></pre>\n<ul>\n<li><strong>Status 400:</strong></li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"error\": \"Invalid genre parameter.\"\n}\n\n</code></pre>\n<hr>\n<hr>\n<h4 id=\"how-to-use-this-api\"><strong>How to Use This API</strong></h4>\n<ul>\n<li><p><strong>Development Environment:</strong> Use the Base URL above.</p>\n</li>\n<li><p><strong>Hosted Front-End:</strong> <a href=\"https://null\">Vercel Deployment</a> (server hosting pending)</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"21537862","collectionId":"833d64a3-3f1c-48d8-b612-297588781ee5","publishedId":"2sAYBbf9ef","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-12-07T15:06:04.000Z"},"item":[{"name":"http://127.0.0.1:8000/api/playlist?genre=Afrobeats","id":"78a8c0ad-1531-40ff-99b0-7649f3b47024","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/playlist?genre=Afrobeats","urlObject":{"protocol":"http","port":"8000","path":["api","playlist"],"host":["127","0","0","1"],"query":[{"key":"genre","value":"Afrobeats"}],"variable":[]}},"response":[],"_postman_id":"78a8c0ad-1531-40ff-99b0-7649f3b47024"}]}