https://github.com/mirajehossain/blog-api
Blog API in Node, Express, MySQL
https://github.com/mirajehossain/blog-api
blog expressjs mysql nodejs rest-api
Last synced: 1 day ago
JSON representation
Blog API in Node, Express, MySQL
- Host: GitHub
- URL: https://github.com/mirajehossain/blog-api
- Owner: mirajehossain
- Created: 2018-03-01T17:25:39.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-02T09:11:17.000Z (almost 6 years ago)
- Last Synced: 2025-08-09T23:51:32.304Z (8 months ago)
- Topics: blog, expressjs, mysql, nodejs, rest-api
- Language: JavaScript
- Homepage:
- Size: 107 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blog-API
## Prerequisites
- > Install [NodeJS](https://nodejs.org/en/download/).
- > Install and connect [mysql](https://www.mysql.com/).
## After complete installation Node and mysql.
```shell
git clone https://github.com/mirajehossain/blog-api.git
cd blog-api
npm install
npm start
```
## APIs
### Posts endpoints
* GET
* /api/posts
* /api/post/:id
* /api/post/find_by_category/:id
* POST
* /api/post/add_post
* PUT
* /api/post/update_post/:id
* DELETE
* /api/post/delete_post/:id
### Category endpoints
* GET
* /api/category/get_categories
* POST
* /api/category/add_category
* PUT
* /api/category/update_category/:id
* DELETE
* /api/category/delete_category/:id
### About endpoints
* GET
* /api/about/get_about
* POST
* /api/about/add_about
* PUT
* /api/about/update_about/:id
* DELETE
* /api/about/delete_about/:id