MicroKaraokeController
struct MicroKaraokeController : APIRouteCollectionMethods for accessing the list of boardgames available in the onboard Games Library.
- 
                  
                  Required. Registers routes to the incoming router. DeclarationSwift func registerRoutes(_ app: Application) throws
- 
                  retrieveMicroKaraokeOffer(_:Asynchronous) POST /api/v3/microkaraoke/offerRequests the server to generate an offer packet for a micro karaoke recording. The offer packet has information about the song to be sung, the particular lyric to be sung, and the audio files for the sound cues to be used. This method is a POST because it’s non-idempotent. There is no post data sent to the server, although it requires a logged-in user. Throws A 5xx response should be reported as a likely bug, please and thank you.DeclarationSwift func retrieveMicroKaraokeOffer(_ req: Request) async throws -> MicroKaraokeOfferPacketReturn ValueMicroKaraokeOfferPacketdescribing the song and lyric.
- 
                  uploadMicroKaraokeRecording(_:Asynchronous) POST /api/v3/microkaraoke/recordingUploads a video recording containing a person singing the snippet of a song given by the offer. Throws A 5xx response should be reported as a likely bug, please and thank you.DeclarationSwift func uploadMicroKaraokeRecording(_ req: Request) async throws -> HTTPStatusParametersrecordingDataMicroKaraokeRecordingDatain request bodyReturn ValueMicroKaraokeOfferPacketdescribing the song and lyric.
- 
                  getCompletedSongList(_:Asynchronous) GET /api/v3/microkaraoke/songlistRetuns the list of songs that can be viewed. If the user is a moderator, this list includes songs that are complete but need mod approval. Throws A 5xx response should be reported as a likely bug, please and thank you.DeclarationSwift func getCompletedSongList(_ req: Request) async throws -> [MicroKaraokeCompletedSong]Return Value[MicroKaraokeCompletedSong]with info on all the completed songs that can be viewed.
- 
                  getSongManifest(_:Asynchronous) GET /api/v3/microkaraoke/song/:song_idThrows A 5xx response should be reported as a likely bug, please and thank you.DeclarationSwift func getSongManifest(_ req: Request) async throws -> MicroKaraokeSongManifestParameterssong_idThe song to get a manifest for. Return ValueMicroKaraokeSongManifestwith a list of URLs to all the video clips that make up the song, in order.
- 
                  getUserVideoClip(_:Asynchronous) GET /api/v3/microkaraoke/video/:filenameGets a user-uploaded karaoke snippet video. This downloads the actual video file Throws A 5xx response should be reported as a likely bug, please and thank you.DeclarationSwift func getUserVideoClip(_ req: Request) async throws -> ResponseReturn ValueResponse.
- 
                  
                  DeclarationSwift func urlForSongDirectory(songName: String? = nil, snippetIndex: Int? = nil) -> URL
- 
                  
                  DeclarationSwift func getUserUploadedClipsDir() throws -> URL
- 
                  
                  DeclarationSwift func makeOfferPacket(from snippet: MKSnippet, song: MKSong) throws -> MicroKaraokeOfferPacket
- 
                  addSong(_:AsynchronouscurrentSong: ) DeclarationSwift func addSong(_ req: Request, currentSong: MKSong?) async throws
- 
                  getSongInfo(forSongNamed:Asynchronouson: ) DeclarationSwift func getSongInfo(forSongNamed songName: String, on req: Request) async throws -> SongInfoJSON
 View on GitHub
            View on GitHub
           MicroKaraokeController Structure Reference
      MicroKaraokeController Structure Reference