Methods
(static) create(name, name_jpopt, nicknameopt, birthdateopt, birthplaceopt, bloodtypeopt, descriptionopt, sourceopt, imageopt) → {JSON}
A function to add new personality information.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name |
String | Personality's full name. |
|
name_jp |
String |
<optional> |
Personality's name in Japanese. |
nickname |
String |
<optional> |
Personality's nickname. |
birthdate |
String |
<optional> |
Personality's birthdate. |
birthplace |
String |
<optional> |
Personality's birthplace. |
bloodtype |
String |
<optional> |
Personality's bloodtype. |
description |
String |
<optional> |
Personality's description. |
source |
String |
<optional> |
A link source to personality information. |
image |
String |
<optional> |
Personality's image. |
Returns:
An object that contains both an error message and a successful about personality information.
- Type
- JSON
(static) delete(id) → {JSON}
A function to delete a specific personality information stored in database by it's ID.
Parameters:
Name | Type | Description |
---|---|---|
id |
String | UUIDv4 which is represents an ID of personality information. |
Returns:
An object that contains a message about personality information deletion.
- Type
- JSON
(static) get(id) → {JSON}
A function to get a specific personality information stored in database by it's ID.
Parameters:
Name | Type | Description |
---|---|---|
id |
String | UUIDv4 which is represents an ID of personality information. |
Returns:
An object that contains a specific personality information.
- Type
- JSON
(static) getAll() → {JSON}
A function to get all of personality information stored in database.
Returns:
An object that contains personality information.
- Type
- JSON
(static) update(nameopt, name_jpopt, nicknameopt, birthdateopt, birthplaceopt, bloodtypeopt, descriptionopt, sourceopt, imageopt) → {JSON}
A function to update the personality information.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name |
String |
<optional> |
Personality's full name. |
name_jp |
String |
<optional> |
Personality's name in Japanese. |
nickname |
String |
<optional> |
Personality's nickname. |
birthdate |
String |
<optional> |
Personality's birthdate. |
birthplace |
String |
<optional> |
Personality's birthplace. |
bloodtype |
String |
<optional> |
Personality's bloodtype. |
description |
String |
<optional> |
Personality's description. |
source |
String |
<optional> |
A link source to personality information. |
image |
String |
<optional> |
Personality's image. |
Returns:
An object that contains both an error message and a successful about personality information.
- Type
- JSON