User:Ncarthy: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
'''Returns:''' | '''Returns:''' | ||
<div style="margin-left: 20px; width: 60%; padding: 0px 5px 0px 5px; border-width: 1px; border-style: solid; border-color: #AAAAAA"> | <div style="margin-left: 20px; width: 60%; padding: 0px 5px 0px 5px; border-width: 1px; border-style: solid; border-color: #AAAAAA"> | ||
'''Type:''' ''object''<br /> | |||
'''Properties:''' | |||
* ''[[#List.LimitsReturned|List.LimitsReturned]]'' limits | |||
* [ ''[[#Audio.Details.Song|Audio.Details.Song]]''[] songs ] | |||
</div> | </div> | ||
{{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript" enclose="div">{ | {{hidden|style = width: 60%;|headerstyle = background: #cccccc;|contentstyle = text-align: left; border: 0px solid #AAAAAA;|JSON Schema Description|<syntaxhighlight lang="javascript" enclose="div">{ | ||
Line 55: | Line 44: | ||
], | ], | ||
"returns": { | "returns": { | ||
"type": "object", | |||
"properties": { | "properties": { | ||
"limits": { | "limits": { | ||
"$ref": "List.LimitsReturned" | "required": true, | ||
"$ref": "List.LimitsReturned" | |||
}, | }, | ||
"songs": { | "songs": { | ||
Line 64: | Line 54: | ||
"$ref": "Audio.Details.Song" | "$ref": "Audio.Details.Song" | ||
}, | }, | ||
"type": "array" | "type": "array", | ||
"required": false | |||
} | } | ||
} | } | ||
} | } | ||
}</syntaxhighlight>}} | }</syntaxhighlight>}} |
Revision as of 01:24, 19 February 2017
Retrieve recently added songs
Permissions:
- ReadData
Parameters:
- [ List.Amount albumlimit = -1 ]
- [ Audio.Fields.Song properties ]
- [ List.Limits limits ]
- [ List.Sort sort ]
Returns:
Type: object
Properties:
- List.LimitsReturned limits
- [ Audio.Details.Song[] songs ]
JSON Schema Description |
---|
{ "description": "Retrieve recently added songs", "permission": "ReadData", "type": "method", "params": [ { "default": "-1", "name": "albumlimit", "required": false, "$ref": "List.Amount" }, { "name": "properties", "required": false, "$ref": "Audio.Fields.Song" }, { "name": "limits", "required": false, "$ref": "List.Limits" }, { "name": "sort", "required": false, "$ref": "List.Sort" } ], "returns": { "type": "object", "properties": { "limits": { "required": true, "$ref": "List.LimitsReturned" }, "songs": { "items": { "$ref": "Audio.Details.Song" }, "type": "array", "required": false } } } } |