CLOGBLOG (Blog App) Client Side
In the project directory, you can run:
Runs the app in the development mode.
Open https://localhost:3000 to view it in your browser.
POST /api/v1/users/signup
Parameter | Type | Description |
---|---|---|
username |
string |
Required. Your user name |
email |
string |
Required. Your email address |
password |
string |
Required. Your given password |
passwordConfirm |
string |
Required. Your password confirmation |
POST /api/v1/users/login
Parameter | Type | Description |
---|---|---|
email |
string |
Required. Your email address |
password |
string |
Required. Your given password |
PATCH /api/v1/users/updateMe
Parameter | Type | Description |
---|---|---|
username |
string |
Required. Your user name |
fullname |
string |
Required. Your full name |
email |
string |
Required. Your email address |
id |
string |
Required. Your user id |
photo |
file |
Not Required. Your image |
cloudinary_id |
string |
Not Required. photo cloudinary id |
PATCH /api/v1/users/updateMyPassword
Parameter | Type | Description |
---|---|---|
currentPassword |
string |
Required Users current password |
password |
string |
Required. Users password |
passwordConfirm |
string |
Required. Users password Confirmation |
GET /api/v1/post
Parameter | Type | Description |
---|---|---|
jwt |
string |
Required. Your jwt token |
GET /api/v1/post/${id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of post to fetch |
jwt |
string |
Required. Your jwt token |
POST /api/v1/posts
Parameter | Type | Description |
---|---|---|
jwt |
string |
Required. Your jwt token |
title |
string |
Required. Your post title |
description |
string |
Required. Your post description |
categories |
Array |
Not Required. Your post categories |
photo |
file |
Not Required. Your post photo |
PATCH /api/v1/post/${id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of post to update |
jwt |
string |
Required. Your jwt token |
title |
string |
Required. Your post title |
description |
string |
Required. Your post description |
categories |
Array |
Not Required. Your post categories |
photo |
file |
Not Required. Your post photo |
DELETE /api/v1/posts/${id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of post to delete |
jwt |
string |
Required. Your jwt token |