import NoteDataservice from 'Template-HapiRESTServer/src/dataservices/note.service.js'
NoteDataservice
Note Dataservice for interacting with the storage system for saving notes
Test:
Static Method Summary
Static Public Methods | ||
public static |
async createNote(name: String): Note Creates a new note with a name TODO: add (optional) content param and attribute |
|
public static |
async createNotes(notes: Array): Promise Create multiple notes |
|
public static |
Returns a note, specified by the caller by id |
Static Public Methods
public static async createNote(name: String): Note source
Creates a new note with a name TODO: add (optional) content param and attribute
Params:
Name | Type | Attribute | Description |
name | String | name of note |
Return:
Note | Note Object |