Skip to content

lab-steven#1

Open
BatemanVO wants to merge 35 commits intocodefellows-seattle-javascript-401d12:masterfrom
BatemanVO:master
Open

lab-steven#1
BatemanVO wants to merge 35 commits intocodefellows-seattle-javascript-401d12:masterfrom
BatemanVO:master

Conversation

@BatemanVO
Copy link
Copy Markdown

No description provided.

bnates and others added 30 commits December 21, 2016 15:58
Created post route, started work on put route.
As of version 4.0, you need to explicitly pass in the new:true option with a  findByIdAndUpdate and findOneAndUpdate call.
Also added GET test with no ID passed in.
Updated PUT route to throw 400 error if no content is passed in.
Amended student.js to properly save the tempStudent, not the tempAssignment.
Amended assignment-route.js to throw the correct error codes.
Amended student-route.js to properly .populate on get requests.
Added assignment-route POST tests.
Amended server.js to require in assignment router.
Comment thread lab-steven/README.md
This is an app that will allow you to practice POST, PUT, GET, and DELETE requests using HTTPIE against a database created with MongoDB that tracks a single resource, in the form of students with a name and age field.

###Installation
####Dependencies
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably shouldn't list httpie as a hard dependency, since you don't really NEED it for this project to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants