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

https://github.com/geekgurudev/todos-api


https://github.com/geekgurudev/todos-api

express-js expressjs mongodb mongoose node-js nodejs rest rest-api restful restful-api

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# Todos API
A simple Todos REST API built using:
* NodeJS
* Express
* MongoDB
* Mongoose

# Installation and Run
1. Clone the repository
```
https://github.com/Gurpreeet-Singh/todos-api
```
2. To install the dependencies, simply write
```
npm install
```
3. To run the app in development, simply write
```
npm run dev
```

# Endpoints
* GET `api/todos` - Get all Todos
* POST `api/todos` - Create new Todo
* GET `api/todos/:id` - Get Todo by id
* PATCH `api/todos/:id` - Update Todo by id
* DELETE `api/todos/:id` - Delete Todo by id