This is a small Node.js API project. Confession: I accidentally pushed node_modules—classic beginner move.
Run the API locally with:
npm install # optional if you already have node_modules 😅
npm run devThe API endpoints and schemas are listed below.
- GET - /post/id : To retrieve a single blog post from the database.
- GET - /posts : Returns all available posts in the database.
- PUT - /posts/id: Update existing post.
- DELETE -/posts/id: remove post.
- POST -/post/id: Create new post
- Updates ad improvements coming...eventually.