Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom REST API (Yes, Node_modules got included 🙈)

This is a small Node.js API project. Confession: I accidentally pushed node_modules—classic beginner move.

Getting Started

Run the API locally with:

npm install   # optional if you already have node_modules 😅
npm run dev

Overview

The 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

Note

  • Updates ad improvements coming...eventually.

About

Practice on APIs

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages