CoachingsController

CoachingsController

new CoachingsController()

Source:

Controller for the @namespace /coachings

Extends

Methods

(async) create(payload) → {CoachingModel}

Source:

POST / Create an instance of coaching from a Calendly event

Parameters:
Name Type Description
payload object

| payload from the event_created endpoint in the Calendly API

Returns:
Type
CoachingModel

(async) delete(id) → {CoachingModel}

Source:

DELETE / Delete an instance of coaching

Parameters:
Name Type Description
id int
Returns:
Type
CoachingModel

(async) index(emailAddress) → {CoachingModel}

Source:

GET / Fetches all coaching by user email address

Parameters:
Name Type Description
emailAddress int

| Identifiers reference to the user instance

Returns:

[]

Type
CoachingModel

(async) show(id) → {CoachingModel}

Source:

GET /:id Fetch specific user exercise by id

Parameters:
Name Type Description
id int
Returns:
Type
CoachingModel

(async) update(completed, progress, like, doneAt, lastVisit) → {CoachingModel}

Source:

PUT / Update an instance of coaching

Parameters:
Name Type Description
completed boolean
progress int
like boolean
doneAt date
lastVisit date
Returns:
Type
CoachingModel