import {NoteController} from 'Template-HapiRESTServer/src/controllers/note.controller.js'Static Method Summary
| Static Public Methods | ||
| public static |
createNote(request: HapiRequest, handler: any): Note Create a new Note |
|
| public static |
deleteNote(request: HapiRequest): boolean Delete a note, specified by id |
|
| public static |
async getNoteById(request: HapiRequest, handler: any): Note Returns a note, specified by Id |
|
| public static |
updateNote(request: HapiRequest): Note Update a note, specified by id |
|
Static Public Methods
public static createNote(request: HapiRequest, handler: any): Note source
Create a new Note
Params:
| Name | Type | Attribute | Description |
| request | HapiRequest | RequestObject |
|
| handler | any | Hapi Handler |
Return:
| Note | [description] |
public static deleteNote(request: HapiRequest): boolean source
Delete a note, specified by id
Params:
| Name | Type | Attribute | Description |
| request | HapiRequest | RequestObject |
public static async getNoteById(request: HapiRequest, handler: any): Note source
Returns a note, specified by Id
Params:
| Name | Type | Attribute | Description |
| request | HapiRequest | RequestObject |
|
| handler | any | Hapi Handler object for rejecting/setting errors |
Return:
| Note | Note corresponding to Id passed in |
public static updateNote(request: HapiRequest): Note source
Update a note, specified by id
Params:
| Name | Type | Attribute | Description |
| request | HapiRequest | RequestObject |
Return:
| Note | [description] |
