- [ ] Use express - [ ] CRUD for event management - [ ] **C**reate: POST /v1/events If I make a call to create an event at `http://localhost:3000/v1/events`, with the body: ``` JSON { "name": "Cool Concert", "location": "At the concert hall" } ``` then I would expect to get a response like: ``` JSON { "id": 1, "name": "Cool Concert", "location": "At the concert hall" } ``` - [ ] **R**ead: GET /v1/events, /v1/events/{:id} If I make a call to get all events at `http://localhost:3000/v1/events`, then I would expect to get a response like: ``` JSON { "events": [ { "id": 1, "name": "Cool Concert", "location": "At the concert hall" }, { "id": 2, "name": "Easter Egg Hunt", "location": "Bond Park" } ] } ``` If I make a call to get a single event at `http://localhost:3000/v1/event/1`, then I would expect to get a response like: ``` JSON { "id": 1, "name": "Cool Concert", "location": "At the concert hall" } ``` - [ ] **U**pdate: PUT /v1/events/{:id} If I make a call to create an event at `http://localhost:3000/v1/events/1`, with the body: ``` JSON { "id": 1, "name": "Super Cool Concert", "location": "At the concert hall" } ``` then I would expect to get a response like: ``` JSON { "id": 1, "name": "Super Cool Concert", "location": "At the concert hall" } ``` - [ ] **D**elete: DELETE /v1/events/{:id}
Activity
[-]Create NodeJS Server[/-][+]Add Events CRUD[/+]