Hi, I'm a full stack dev and music producer. Find more on my website.
codecademy_build_web_apis's Introduction
codecademy_build_web_apis's People
codecademy_build_web_apis's Issues
Database object
https://github.com/aletna/Codecademy_Build_Web_APIs/blob/master/project-3-the-scoop/server.js#L6-L7
Properly updated the database object to start storing and tracking Comments ๐
Updating and deleting comments
https://github.com/aletna/Codecademy_Build_Web_APIs/blob/master/project-3-the-scoop/server.js#L291
Nice job chaining split
and filter
to extract the comment ID from the URL and using it to verify if the specified comment exists in the database object. ๐
Properly updated and deleted the specified object and returned the appropriate status code as a response.
Summary
Satisfactory ๐
You've demonstrated a clear proficiency with JavaScript objects and arrays as well as the general procedure of accessing requests and serving responses.
If a lot of this seems repetitive, know that it is. A key part of designing a RESTful API is being able to expose resources in a very specific, standardized way. You want your API to be as normalized as possible so that others have an easy time using your service.
You're well on your way to designing and developing APIs, great job!
Routes object
Properly updated the routes object, using standard REST convention, to start serving requests involving the Comments resource ๐
Upvoting and downvoting comments
https://github.com/aletna/Codecademy_Build_Web_APIs/blob/master/project-3-the-scoop/server.js#L337
Again, nice job chaining split
and filter
to extract the comment ID from the URL and using it to verify if the specified comment exists in the database object! ๐
Good thinking using the provided upvote
and downvote
functions. Definitely no need to reinvent the wheel!
And again, you've properly set and returned the appropriate status codes as a response. ๐ฏ
Creating comments
Nice job checking for the required comment information via the comment property of the request body. ๐
Properly created and stored the new comment, if possible, and returned the appropriate status code as a response.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.