File tree Expand file tree Collapse file tree 6 files changed +10
-7
lines changed
Expand file tree Collapse file tree 6 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const docTemplate = `{
1515 "host": "{{.Host}}",
1616 "basePath": "{{.BasePath}}",
1717 "paths": {
18- "/api/v1/download:sourceId ": {
18+ "/api/v1/download": {
1919 "get": {
2020 "description": "Enables playback for song/file using http 206 partial content",
2121 "produces": [
Original file line number Diff line number Diff line change 77 },
88 "basePath" : " /api/v1" ,
99 "paths" : {
10- "/api/v1/download:sourceId " : {
10+ "/api/v1/download" : {
1111 "get" : {
1212 "description" : " Enables playback for song/file using http 206 partial content" ,
1313 "produces" : [
Original file line number Diff line number Diff line change 5252 title : MusicBoxApi API
5353 version : " 1.0"
5454paths :
55- /api/v1/download:sourceId :
55+ /api/v1/download :
5656 get :
5757 description : Enables playback for song/file using http 206 partial content
5858 parameters :
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # need to fix gopath...
4- sudo /root/go/bin/swag init
3+ # yml to readme
4+ # https://swagger-markdown-ui.netlify.app/
5+
6+ # works for me
7+ sudo $HOME /go/bin/swag init
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import (
1616// @Success 200 "serve song/file with range request (http 206)"
1717// @Success 0 {object} models.DownloadRequestModel
1818// @Failure 500 {object} models.ApiResponseModel
19- // @Router /api/v1/download:sourceId [get]
19+ // @Router /api/v1/download [get]
2020func DownloadRequest (ctx * gin.Context ) {
2121 var request models.DownloadRequestModel
2222 err := ctx .ShouldBindBodyWithJSON (& request )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ This project aims to create not just a music player but a universal music search
1313## Version: 1.0
1414
1515
16- ### /api/v1/download: sourceId
16+ ### /api/v1/download
1717
1818#### GET
1919##### Description:
You can’t perform that action at this time.
0 commit comments