https://github.com/leonardpepa/very-simple-rest-api
Very simple REST API made with node, express, mongoDB
https://github.com/leonardpepa/very-simple-rest-api
api mongodb node rest-api
Last synced: 7 months ago
JSON representation
Very simple REST API made with node, express, mongoDB
- Host: GitHub
- URL: https://github.com/leonardpepa/very-simple-rest-api
- Owner: Leonardpepa
- Created: 2021-04-01T17:42:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-13T00:13:03.000Z (over 4 years ago)
- Last Synced: 2025-01-17T08:45:44.727Z (9 months ago)
- Topics: api, mongodb, node, rest-api
- Language: JavaScript
- Homepage: https://github.com/Leonardpepa/Very-Simple-REST-API
- Size: 2.31 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Simple Wiki API
udemy course for rest api from angela yu 2021 complete web development bootcamp
## requirements
node.js,
mongoDB
## installation
```node.js
git clone https://github.com/Leonardpepa/Very-Simple-REST-API.git
npm install
mongod in terminal
node app.js
```
## article Schema
```JavaScript
const articleSchema = {
title: String,
content: String,
}
```
## usage
```JavaScript
app.get("articles")
app.post("articles")
app.delete("articles")
app.get("/articles/:articleTitle")
app.put("/articles/:articleTitle")
app.patch("/articles/:articleTitle")
app.delete("/articles/:articleTitle")
```