Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
What are HTTP resources supposed to be?
I have taken the HTTP Basics and Rest API Basics courses and with further research I still do not understand what resources are supposed to be. All I have found is that it is a "concept at the end of a URI." But is it a file that is being written to or retrieved from? A directory of some sort?
Any elaboration on this would be great. Thanks!
Steven Parker228,001 Points
A "resource" is simply a source of information. It might be a file, or just some data in the server's memory. It might not be possible to tell what the exact resource is. But the server that hosts the URI conveys a representation of the information when requested. That's the important part from the client perspective, and what would be described in the API documentation.