Skip to content

mariaulfa33/mini-wp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

mini-wp

Title URL Method Request Body Request Header Sucsess Response Error Response notes
Register User /register POST
    attributes
  1. name(String)
  2. email(String)
  3. password(String)
none
    attributes
  1. name(String)
  2. email(String)
  3. password(String)
  4. type
    (String)
500 : internal server error type has enum auto for 3rd party registration and manual
Login for manual user /login POST
  1. Email(string)
  2. Password
none
  1. id(String)
  2. token(String)
  3. name(String)
500 : Internal server error
login for 3rdParty(google) /logingoogle POST
  1. Email(string)
  2. Password
none
  1. id(String)
  2. token(String)
  3. name(String)
500 : Internal server error
get public article /articles GET none none title, description, content, tags, author, feature_image 500 : Internal server error get first 10 recent articles
seacrh article /search?search= none none title, description, content, tags, author 500 : Internal server error
publish article /article/user POST title, description, content, tags, author, image token(string) title, description, content, tags, author, feature_image 500 : Internal server error post with formData
upload Image only /uploadImage POST image (in formData) token(string) ImageUrl 500 : Internal server error
Edit Article /articles/:id PATCH title, description, content, tags token(string) title, description, content, tags, author, feature_image 500 : Internal server error
Delete Article /articles/:id DELETE Articles._id token(string) title, description, content, tags, feature_image 500 : Internal server error

##Usage

npm install
create your 
SECRET_JWT= <secret jtw>
database= <database_url>
PORT=<port>
CLOUD_BUCKET=<cloud bucket from google>
GCLOUD_PROJECT= <project name for bucket>
KEYFILE_PATH=
http://ketiktak.mariaulfa.work/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.5%
  • CSS 33.1%
  • HTML 8.4%