Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raulespim/wiki-api-sample
Sample Wiki API for learning purposes
https://github.com/raulespim/wiki-api-sample
api api-rest express-js mongodb mongoose node-js rest-api wiki
Last synced: about 1 month ago
JSON representation
Sample Wiki API for learning purposes
- Host: GitHub
- URL: https://github.com/raulespim/wiki-api-sample
- Owner: raulespim
- Created: 2023-12-12T02:55:12.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-12T03:20:02.000Z (about 1 year ago)
- Last Synced: 2024-10-17T17:37:26.203Z (3 months ago)
- Topics: api, api-rest, express-js, mongodb, mongoose, node-js, rest-api, wiki
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wiki API - Sample
This is a project to learn how to build your own RESTful API from scratch using MongoDB and Mongoose
You'll be able to make a **GET, POST, PUT, PATCH** and **DELETE** requests
Example of ***GET*** request from **'localhost:3000/articles'**:
```
[
{
"_id": "6577aea87f0271a2b848cc4e",
"title": "REST",
"content": "REST is short for Representational State Transfer. It's an architectural style for designing APIs."
},
{
"_id": "6577af737f0271a2b848cc4f",
"title": "API",
"content": "API stands for Application Programming Interface. It is a set of subroutine definitions, communication protocols, and tools for building software."
},
{
"_id": "6577c2bfe23c4100160c3592",
"title": "DOM",
"content": "The Document Object Model is like an API for interacting with our HTML"
},
{
"_id": "6577ca5a2f53e63b4b4d99d1",
"title": "Bootstrap",
"content": "Bootstrap is the most popular CSS Framework for developing responsive and mobile-first websites.",
"__v": 0
}
]
```*Hope you enjoy it* 🙃