Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ljbatwh/nodejs-rest-blog-api

A blog API build with node.js, express, mongoose and mongodb.
https://github.com/ljbatwh/nodejs-rest-blog-api

Last synced: 14 days ago
JSON representation

A blog API build with node.js, express, mongoose and mongodb.

Awesome Lists containing this project

README

        

#### This is not completed yet! I am Working on it!
___

## A blog API build with node.js, express, mongoose and mongodb.
___
**Documentation - Blog API - v0.1**

**Routes**
- Users
- Posts

User endpoints:

|TYPE|PATH|DESCRIPTION|
|--|--|--|
|POST|/users|Create a new user|
|GET|/users|Get all users|
|GET|/users/{:id}|Get a user by id|
|GET|/users/{:id}/posts|Get all posts of a user|
|PATCH|/users/{:id}|Update a user by id|
|DELETE|/users/{:id}|Delete a user by id|

Post endpoints:

|TYPE|PATH|DESCRIPTION|
|--|--|--|
|POST|/posts|Create a new post|
|GET|/posts|Get all posts|
|GET|/posts/{:id}|Get a post by id|
|PATCH|/posts/{:id}|Update a post by id|
|DELETE|/posts/{:id}|Delete a post by id|