Closed draganczukp closed 5 years ago
I do like this idea and have made videos on it before! https://shiffman.net/a2z/node-api/ Unfortunately I think this is out of the scope of what the mission is for this course. (Though I agree it's a great topic for a course!)
Oh, also take a look at this example / tutorial from @joeyklee!
https://github.com/joeyklee/simple-express-api
I think elements will come in about this for the two "full stack" scenarios in #12. Thank you!
It would be nice to have a lesson about designing and maybe creating an API. Maybe with some examples of good and bad APIs.
One example you could use would be a fictional API for a stock keeping service, that would allow for things like checking and updating an amount of a product, adding and removing products etc.
An example of a good API definition
An example of a bad API definition: All routes use only
GET
and and always return 200, even if there was an error. The result is always a JSON object that look like this:Routes: