POST /api/users
Request | Access | Description |
---|---|---|
POST |
Public | Register a user |
POST /api/auth
Request | Access | Description |
---|---|---|
POST |
Public | Authenticate user and get token |
GET /api/auth
Request | Access | Description |
---|---|---|
GET |
Private | Get logged in user |
GET /api/journals
Request | Access | Description |
---|---|---|
GET |
Private | Get all Journals of a logged in user |
POST /api/journals
Request | Access | Description |
---|---|---|
POST |
Private | Add a new journal |
PUT /api/journals/:id
Request | Access | Params | Description |
---|---|---|---|
PUT |
Private | id |
Edit a journal specified by its id |
DELETE /api/journals/:id
Request | Access | Params | Description |
---|---|---|---|
DELETE |
Private | id |
Delete a journal specified by its id |
GET /api/journals/share/
Request | Access | Description |
---|---|---|
GET |
Private | Get all journals shared with the user |
POST /api/journals/share/:id
Request | Access | Params | Description |
---|---|---|---|
POST |
Private | id |
Share a journal specified by its id to a registered user via email (Required: Email of the user to share with) |
PUT /api/journals/favorites/:id
Request | Access | Params | Description |
---|---|---|---|
PUT |
Private | id |
Mark/Unmark your journals as favorites |