Diarys
Users
Images
| METHOD | URL |
|---|---|
| POST | https://127.0.0.1:8080/image/new |
| PUT | https://127.0.0.1:8080/image/{id} |
| DELETE | https://127.0.0.1:8080/image/{id} |
DiaryFiles
| METHOD | URL |
|---|---|
| GET | https://127.0.0.1:8080/diaryfiles |
| POST | https://127.0.0.1:8080/diaryfile/{id} |
| GET | https://127.0.0.1:8080/diaryfile/{id} |
-
URL Params
Required:
id=[Long Type]
Data Params
Diary Class:
| Parameter Name | Data Type | Description |
|---|---|---|
| id | Long int | primary key of Diary class |
| title | String | title of diary |
| content | String | content of diary |
| createdAt | LocalDateTime | created date and time of diary |
| updatedAt | LocalDateTime | updated date and time of diary |
| deletedAt | LocalDateTime | deleted date and time of diary |
| bookmark | boolean | whether it is bookmarked |
| User | user | Foreign key of Many to One relation with User class |
User Class:
| Parameter Name | Data Type | Description |
|---|---|---|
| id | Long int | primary key of User class |
| account | String | account of user |
| password | String | encrypted password of user |
| name | String | name of user |
| String | email address of user | |
| auth | String | authentication of user |
| createdAt | LocalDateTime | created date and time of user |
| updatedAt | LocalDateTime | updated date and time of user |
| deletedAt | LocalDateTime | deleted date and time of user |
| List | diaryList | One to Many relation with Diary class |
| List | diaryFileList | One to Many relation with DiaryFile class |
Image Class:
| Parameter Name | Data Type | Description |
|---|---|---|
| id | Long int | primary key of Image class |
| originalFileName | String | original file name |
| storedFilePath | String | stored file path |
| fileSize | Long | size of file |
| diary | Diary | one to one relation with diary class |
DiaryFile class:
| Parameter Name | Data Type | Description |
|---|---|---|
| id | Long int | primary key of Diaryfile class |
| diarylFileName | String | diary file name |
| storedFilePath | String | stored file path |
| fileSize | Long | size of diary file |
| diary | Diary | one to one relation with diary class |
| User | User | one to many relation with diaryfile class |