Skip to content

lambdaschoolcoursework/build-a-web-api-sprint-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Questions

Mention two parts of Express that you learned about this week.

I learned a ton, but two things are: needing to use express.json() so that Express can handle JSON and creating custom middleware that can be reused in different endpoints.

Describe Middleware.

Middleware extends the functionality of Express.

Describe a Resource.

A resource refers to the URI that is accessed via HTTP methods such as post, get, put, and delete.

What can an API return to help clients know if a request was successful?

The API can return a status code of 200 or similar for different meanings.

How can we partition our application?

We can create seperate router files where it makes sense to.

About

Creating an API with routers and custom middleware in Express

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •