Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 870 Bytes

readme.md

File metadata and controls

21 lines (14 loc) · 870 Bytes

RandomIdeas App

This is a fullstack application for sharing random ideas. It is a project with headstart from Brad Traverst.

This app includes a Node.js/Express REST API that uses MongoDB for a database. The client-side is built with Webpack.


## REST Endpoints

### Ideas

| Endpoint       | Description    | Method | Body                    |
| -------------- | -------------- | ------ | ----------------------- |
| /api/ideas     | Get all ideas  | GET    | None                    |
| /api/ideas/:id | Get idea by id | GET    | None                    |
| /api/ideas     | Add idea       | POST   | { text, tag, username } |
| /api/ideas/:id | Update idea    | PUT    | { text, tag, username } |
| /api/ideas/:id | Delete idea    | DELETE | username                |

When updating or deleting, the username must match the username of the idea creator.