vasilakisfil / Introspected-REST

An alternative to REST and GraphQL
https://introspected.rest
Creative Commons Zero v1.0 Universal
381 stars 23 forks source link

Definition of object #13

Closed Flogex closed 6 years ago

Flogex commented 6 years ago

Users and User are 2 distinct resources which are often, mistankenly, misthought as a single, one, resource. Also, the fact that Users is a collection of User objects is because it suits our needs but it doesn’t have necessarily to be like that.

In my understanding, Users is one resource which serves as a collection of many User resources.

How do you define an object? Do you see a resource as the "class" and objects as the "instances" of it?

vasilakisfil commented 6 years ago

Yeah I would say an object is an instantiated resource, although there aren't concrete definitions for these things. Closing, feel free to re-open.