Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/conscious-puppet/posts-rest-api

Posts API built with express.
https://github.com/conscious-puppet/posts-rest-api

Last synced: 14 days ago
JSON representation

Posts API built with express.

Awesome Lists containing this project

README

        

# Posts-REST-API
Posts API built with express.

## Routes
```
@route GET /posts/
@desc Get all posts

@route GET /posts/:id
@desc Get a post by id

@route POST /posts
@desc Create a new post

@route DELETE /posts/:id
@desc Delete a post by id

@route PATCH /posts/:id
@desc Update a post by id
```

## Quick Start

### Install Dependencies

```bash
# Install dependencies
npm install
```

### Run

```bash
# Run the server
npm start
```