Skip to content

Stories.API

Phips Peter edited this page Jul 11, 2014 · 5 revisions

Class: Stories

Stories

new Stories(dispatcher)

Access to the Stories resource

Parameters:
Name Type Description
dispatcher Dispatcher

The API dispatcher

Source:

Methods

createOnTask(taskId, data) → {Promise}

Creates a story on the task

Parameters:
Name Type Description
taskId Number

The task id

data Object

The data for the story

Source:
Returns:

The result of the API call

Type
Promise

findById(storyId, params) → {Promise}

Returns the story

Parameters:
Name Type Argument Description
storyId Number

The story id

params Object <optional>

Extra params for the dispatcher

Source:
Returns:

The result of the API call

Type
Promise

findByTask(taskId, params) → {Promise}

Returns the stories on a task

Parameters:
Name Type Argument Description
taskId Number

The task id

params Object <optional>

Extra params for the dispatcher

Source:
Returns:

The result of the API call

Type
Promise

Generated with wicked.
Clone this wiki locally