Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/calebmadrigal/expressjs-messageboard
A simple RESTful API with ExpressJS on NodeJS to provide a very simple message board functionality.
https://github.com/calebmadrigal/expressjs-messageboard
Last synced: about 1 month ago
JSON representation
A simple RESTful API with ExpressJS on NodeJS to provide a very simple message board functionality.
- Host: GitHub
- URL: https://github.com/calebmadrigal/expressjs-messageboard
- Owner: calebmadrigal
- License: mit
- Created: 2013-12-24T05:51:40.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-27T14:17:03.000Z (about 10 years ago)
- Last Synced: 2024-04-14T09:02:06.870Z (7 months ago)
- Language: JavaScript
- Size: 140 KB
- Stars: 6
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# expressjs-messageboard
## Live Demo
## Description
Creates a simple message board API using ExpressJS.## How to run locally
npm install
node .## Example usage of API
Get all messages:curl -X GET http://expressjs-messageboard.herokuapp.com/messages
Get a single message:
curl -X GET http://expressjs-messageboard.herokuapp.com/messages/0
Add message:
curl -X POST -H 'Content-Type: application/json' -d '{ "text": "Test 1" }' http://expressjs-messageboard.herokuapp.com/messages
Modify a message:
curl -X PUT -H 'Content-Type: application/json' -d '{ "text": "Updated message" }' http://expressjs-messageboard.herokuapp.com/messages/3