mhmmd-ysf / mini-wp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mini Wordpress

User Routes:

Route HTTP Header(s) Request(s) Response(s) Description
/register POST none Body
name: String
email: String
password: String
Success
201 Created
Fail
500 Internal server error
Create a new user
/users GET none none Success
200 OK
Fail
500 Internal server error
Get all the users
/users/:id GET none Headers
_id: String
Success
200 OK
Fail
500 Internal server error
Get one user
/users/:id PUT none Headers
_id: String
body
name: String
email: String
password: String
Success
200 OK
Fail
401 Unauthorized
500 Internal server error
Update a user
/users/:id DELETE none Headers
id: String
Success
204 No content
Fail
401 Unauthorized
500 Internal server error
Delete a user

Article Routes:

Route HTTP Header(s) Request(s) Response(s) Description
/articles GET none none Success
200 OK
Fail
500 Internal server error
Get all the articles
/articles/:id GET none Headers
_id: String
Success
200 OK
Fail
500 Internal server error
Get one article
/articles/:id PUT none Headers
_id: String
body
title: String
content: String
author: String
featuredImg: String
Success
200 OK
Fail
401 Unauthorized
500 Internal server error
Update an article
/articles/:id DELETE none Headers
id: String
Success
204 No content
Fail
401 Unauthorized
500 Internal server error
Delete an article

About


Languages

Language:JavaScript 42.4%Language:CSS 31.4%Language:HTML 26.2%