### Initialize Swagger UI Source: https://github.com/sixnine-dotdev/dab-api-docs/blob/main/index.html This JavaScript code initializes the Swagger UI interface, loading the API specification from a specified URL. It configures deep linking, presets, and plugins for an interactive API exploration experience. ```javascript window.onload = function() { const ui = SwaggerUIBundle({ url: "https://raw.githubusercontent.com/sixnine-dotdev/dab-api-docs/main/openapi.yaml", dom_id: '#swagger-ui', deepLinking: true, presets: [ SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset ], plugins: [ SwaggerUIBundle.plugins.DownloadUrl ], layout: "StandaloneLayout" }); window.ui = ui; }; ``` -------------------------------- ### DAB Music Player API Specification Source: https://github.com/sixnine-dotdev/dab-api-docs/blob/main/index.html The DAB Music Player API specification, defined in OpenAPI format. This document details available endpoints, request/response schemas, authentication methods, and parameters for interacting with the music player service. ```APIDOC OpenAPI: 3.0.0 Info: title: DAB Music Player API version: 1.0.0 description: API for controlling and managing the DAB Music Player. Servers: - url: https://api.example.com/v1 Paths: /player/play: post: summary: Start playback operationId: playMusic requestBody: required: true content: application/json: schema: type: object properties: songId: type: string description: The ID of the song to play. volume: type: integer format: int32 description: The desired volume level (0-100). default: 50 responses: '200': description: Playback started successfully. content: application/json: schema: type: object properties: status: type: string example: "playing" currentSong: type: string example: "song-123" '400': description: Invalid request payload or song ID. /player/pause: post: summary: Pause playback operationId: pauseMusic responses: '200': description: Playback paused successfully. content: application/json: schema: type: object properties: status: type: string example: "paused" '404': description: No song is currently playing. /player/status: get: summary: Get current playback status operationId: getPlayerStatus responses: '200': description: Current player status. content: application/json: schema: type: object properties: status: type: string enum: [playing, paused, stopped] currentSong: type: string nullable: true volume: type: integer format: int32 nullable: true ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.