radjan / petsfaq

Pets FAQ
2 stars 0 forks source link

General model object parser to a jsonifiable object #8

Closed radjan closed 11 years ago

radjan commented 11 years ago

The helper currently retrieves the properties of a domain object but does not include the collection_names which are referenced by other model. Sometimes it is very helpful to have those in api output.

samuelololol commented 11 years ago

entity

https://github.com/radjan/petsfaq/commit/6c2284cd89a881a2865fa33efa3c9d37df95fc6c https://github.com/radjan/petsfaq/commit/6a80a305d6b941eef6d70ab93df113232278e423 recursively display the full entity of resource

radjan commented 11 years ago

I tried /hospital/{h_id}. This goes a little bit too far. Do you think it is ok to stop at the second tier? Or leave the id only if the same object is parsed once in the parent?

samuelololol commented 11 years ago

https://github.com/radjan/petsfaq/commit/b776c548eeed1c9d49b60b42e9b599afe38e7495 request completed, bug fixed.