Skip to content

Instantly share code, notes, and snippets.

@coldfumonkeh
Created October 7, 2019 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coldfumonkeh/6f7f534edf3ac06b44dac982abcd5da6 to your computer and use it in GitHub Desktop.
Save coldfumonkeh/6f7f534edf3ac06b44dac982abcd5da6 to your computer and use it in GitHub Desktop.
component extends="taffy.core.resource" taffy_uri="/artists" {
/**
* Makes the GET request
*
* @limit The maximum number of records to return per call. Defaults to 5
* @offset The number of records to skip when making the request *used for pagination)
*/
function get(
numeric limit = 5,
numeric offset = 0
){
return rep( {
'data': [],
'params': {
'limit' : arguments.limit,
'offset': arguments.offset
}
} );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment