radenska / 14-mongo_express_two_resource_api

Lab 14 - Mongo & Express Two Resource API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CF Lab 14 - Mongo & Express Two Resource API

To Submit this Assignment

  • Fork this repository
  • Write all of your code in a directory named lab- + <your name> e.g. lab-brian
  • Push to your repository
  • Submit a pull request to this repository
  • Submit a link to your PR in canvas
  • Write a question and observation on canvas

Include

  • package.json
  • .eslintrc
  • gulpfile.js
  • .gitignore
  • README.md

Description

  • Continue working on the express and mongoDB REST API that you started yesterday
  • Include an additional resource that contains a "relationship" to the single resource that has already been created
  • Create GET, POST, PUT, and DELETE routes for your newly added resource
  • Test your application to ensure that it meets the standard criteria of a working full CRUD REST API
  • Use populate in the get() route logic your /api/new-resource-name/:id route to populate the associated property used to house related resources (ex: List.findById(req.params.id).populate('notes'))

About

Lab 14 - Mongo & Express Two Resource API


Languages

Language:JavaScript 100.0%