v1

package
v0.0.0-...-b8661fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EditSong

func EditSong(c *gin.Context)

@Summary Update song @Produce json @Success 200 {object} model.Song @Failure 500 {string} string @Router /api/v1/song/{id} [put]

func GetSong

func GetSong(c *gin.Context)

@Summary Get single song @Produce json @Success 200 {object} model.Song @Failure 500 {string} string @Router /api/v1/song/{id} [post]

func GetSongs

func GetSongs(c *gin.Context)

@Summary Get all songs @Produce json @Success 200 {object} []model.Song @Failure 500 {string} string @Router /api/v1/songs [get]

func GetUpdatedSongs

func GetUpdatedSongs(c *gin.Context)

@Summary Get updated songs @Produce json @Success 200 {object} []model.Song @Failure 500 {string} string @Router /api/v1/songs/updated/{time} [get]

func SaveSong

func SaveSong(c *gin.Context)

@Summary Create song @Produce json @Success 200 {object} model.Song @Failure 500 {string} string @Router /api/v1/song [post]

func SaveSongs

func SaveSongs(c *gin.Context)

@Summary Create multiple songs at once @Produce json @Success 200 {object} []model.Song @Failure 500 {string} string @Router /api/v1/songs [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL